...
|
...
|
@@ -41,6 +41,17 @@ class FriendsController extends WeChatBaseController |
|
|
* @throws \think\exception\DbException
|
|
|
*/
|
|
|
public function friendList(){
|
|
|
|
|
|
$config=config('wechat_config');
|
|
|
$Wechat=new Application($config);
|
|
|
$js = $Wechat->js;
|
|
|
$api[]='chooseImage';
|
|
|
$api[]='previewImage';
|
|
|
$api[]='uploadImage';
|
|
|
$api[]='downloadImage';
|
|
|
$sdk=$js->config($api, true);
|
|
|
|
|
|
|
|
|
$group_id=input('id');
|
|
|
/*检查权限*/
|
|
|
$user_id=cmf_get_current_user_id();
|
...
|
...
|
@@ -58,6 +69,7 @@ class FriendsController extends WeChatBaseController |
|
|
foreach ($article as $k=>$v){
|
|
|
$article[$k]['pic']=cmf_get_image_url(json_decode($v['amore'],true)['thumbnail']);
|
|
|
}
|
|
|
$this->assign('sdk',$sdk);
|
|
|
$this->assign('silence',$silence);
|
|
|
$this->assign('info',$info);
|
|
|
$this->assign('userinfo',$user['0']);
|
...
|
...
|
|