|
@@ -10,7 +10,7 @@ use think\Db;
|
|
|
*/
|
|
|
class Tenim extends Api
|
|
|
{
|
|
|
- protected $noNeedLogin = ['trtc_callback','callback',];
|
|
|
+ protected $noNeedLogin = ['trtc_callback','callback','aaa'];
|
|
|
protected $noNeedRight = ['*'];
|
|
|
|
|
|
|
|
@@ -41,8 +41,7 @@ class Tenim extends Api
|
|
|
*/
|
|
|
public function callback() {
|
|
|
// 主题信息
|
|
|
- $input = file_get_contents('php://input');
|
|
|
- $input = json_decode($input,true);
|
|
|
+ $input = input();
|
|
|
|
|
|
//配置
|
|
|
$config = config('tencent_im');
|
|
@@ -92,6 +91,10 @@ class Tenim extends Api
|
|
|
$res = ['ActionStatus'=>'OK','ErrorCode'=>0,'ErrorInfo'=>''];echo json_encode($res);exit;
|
|
|
}
|
|
|
|
|
|
+ public function aaa(){
|
|
|
+ $a = '{"CallbackCommand":"State.StateChange","ClientIP":"182.37.138.94","OptPlatform":"Android","RequestId":"crp5hq2r8lc58sqn92jg-144115245635848666-Disconnect-LinkClose","SdkAppid":"1600053964","contenttype":"json","Info":{"To_Account":"doctor24","Action":"Disconnect","Reason":"LinkClose"},"EventTime":"1727158505072"}';
|
|
|
+ dump(json_decode($a,true));
|
|
|
+ }
|
|
|
|
|
|
|
|
|
}
|