|
@@ -21,6 +21,27 @@ class inoherbControl extends mobileControl
|
|
|
parent::__construct();
|
|
|
$this->mModInoherb = Model('inoherb');
|
|
|
}
|
|
|
+
|
|
|
+ public function indexOp()
|
|
|
+ {
|
|
|
+ $inoherb_id = intval($_GET['inoherb_id']);
|
|
|
+ if($inoherb_id > 0) {
|
|
|
+ $url = "http://p.lrlz.com/hfive/inoherb/index.html?#/share?inoherb_id={$inoherb_id}";
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ $url = "http://p.lrlz.com/hfive/inoherb/index.html";
|
|
|
+ }
|
|
|
+
|
|
|
+ if(session_helper::need_wechat_author())
|
|
|
+ {
|
|
|
+ $author = new thrid_author\wxauthor();
|
|
|
+ $author->enter($url);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ fcgi_header("location:{$url}");
|
|
|
+ }
|
|
|
+ }
|
|
|
public function listOp()
|
|
|
{
|
|
|
$items = $this->items($this->page_size(),false);
|