コード例 #1
0
 private function contructClassifyHyperLink($classify)
 {
     $token = $classify['token'];
     $linktype = $classify['linktype'];
     $link_param_l1 = $classify['link_param_l1'];
     $link_param_l2 = $classify['link_param_l2'];
     switch ($linktype) {
         case 'articles':
             return U('Wap/Index/lists', array('classid' => $classify['id'], 'token' => $token, 'wxref' => 'mp.weixin.qq.com', 'wecha_id' => $this->wecha_id));
             break;
         case 'subClassifies':
             return U('Wap/Index/lists', array('classid' => $classify['id'], 'token' => $token, 'wxref' => 'mp.weixin.qq.com', 'wecha_id' => $this->wecha_id));
             break;
         default:
             return LinkHelper::constructHyperLink($token, $this->wecha_id, $linktype, $link_param_l1, $link_param_l2);
     }
 }