...
|
...
|
@@ -186,9 +186,16 @@ class IndexController extends WeChatBaseController |
|
|
|
|
|
$config=config('wechat_config');
|
|
|
$Wechat=new Application($config);
|
|
|
$userId=cmf_get_current_user_id();
|
|
|
$where['expert_id|user_id']=$userId;
|
|
|
$where1['user_id']=$userId;
|
|
|
$count['0']=db('inquiry')->where($where)->where('status',0)->count('id');
|
|
|
$count['1']=db('transfer')->where($where)->where('status',0)->count('id');
|
|
|
$count['2']=db('engage')->where($where1)->where('state',0)->count('id');
|
|
|
$this->assign('count',$count);
|
|
|
$js = $Wechat->js;
|
|
|
$api[]='openAddress';
|
|
|
$sdk=$js->config($api, false);
|
|
|
$sdk=$js->config($api, false);
|
|
|
$this->assign('sdk',$sdk);
|
|
|
$message_count=count($message);
|
|
|
$this->assign('user',$user);
|
...
|
...
|
|