public function _initialize() { parent::_initialize(); $this->canUseFunction('Service'); $this->m_service = M('service_setup'); $this->m_my = M('service_my'); $this->m_preferential = M('service_preferential'); $this->m_wechat = M('wechat_group_list'); $this->m_wxuser = M('wxuser'); $this->m_mywxuser = M('service_wxuser'); $this->apiurl['create'] = 'http://im-link.meihua.com/api/app_create.php'; $this->apiurl['status'] = 'http://im-link.meihua.com/api/app_edit.php'; $this->apiurl['data'] = 'http://im-link.meihua.com/api/app_service.php'; $serviceChange = new ServiceChange(); $serviceChange->index($this->token); }
public function _initialize() { parent::_initialize(); $this->canUseFunction("Service"); //加载数据库 $this->m_service = M("service_setup"); $this->m_my = M("service_my"); $this->m_preferential = M("service_preferential"); $this->m_wechat = M('wechat_group_list'); $this->m_wxuser = M('wxuser'); $this->m_mywxuser = M('service_wxuser'); //聊天接口 //开启 $this->apiurl['create'] = "http://im-link.meihua.com/api/app_create.php"; //关闭 $this->apiurl['status'] = "http://im-link.meihua.com/api/app_edit.php"; //发送数据 $this->apiurl['data'] = "http://im-link.meihua.com/api/app_service.php"; $serviceChange = new ServiceChange(); $serviceChange->index($this->token); }