stanley-king 7 anni fa
parent
commit
85a33a87bf
1 ha cambiato i file con 21 aggiunte e 0 eliminazioni
  1. 21 0
      mobile/control/inoherb.php

+ 21 - 0
mobile/control/inoherb.php

@@ -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);