|
@@ -97,7 +97,21 @@ class Baseconfig extends Api
|
|
|
$this->success('success',$config);
|
|
|
}
|
|
|
|
|
|
+ //给小程序端用的usersig
|
|
|
+ public function tenim_usersig(){
|
|
|
|
|
|
+ $chat_id = im_prefix($this->auth->id);
|
|
|
+
|
|
|
+ $im = new TencentIm();
|
|
|
+
|
|
|
+ $rs = [
|
|
|
+ 'usersig' => $im->get_usersig($chat_id),
|
|
|
+ 'sdkappid' => config('tencent_im.sdkappid'),
|
|
|
+ ];
|
|
|
+
|
|
|
+ $this->success(1,$rs);
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
|
|
|
}
|