|
...
|
...
|
@@ -103,4 +103,21 @@ class IndexController extends BaseController |
|
|
|
}
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 生成嵌套AICC企微的token
|
|
|
|
* @author zbj
|
|
|
|
* @date 2024/2/29
|
|
|
|
*/
|
|
|
|
public function generateAiCCToken(){
|
|
|
|
$data = [
|
|
|
|
'id' => $this->manage['id'],
|
|
|
|
'name' => $this->manage['name'],
|
|
|
|
'timestamp' => time(), // 接收到字符串解密出来以后需要 验证时间不超过30秒 超过时间视为无效授权
|
|
|
|
];
|
|
|
|
$common = new \App\Helper\Common();
|
|
|
|
$str = $common->encrypt($data);
|
|
|
|
$this->response('success',Code::SUCCESS,['str'=>$str]);
|
|
|
|
}
|
|
|
|
|
|
|
|
} |
...
|
...
|
|