ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
* 处理回调函数 * 多用于接口回调信息 | 传入参 | 说明 | | --- | --- | | json | [ 必填 ] 导入数组 | | msg | [ 必填 ] 提示信息 | | type | [ 选填 ] 回调类型 <hr>0 阻断并json回调 <br>1 不阻断数组回调 <br>2 不阻断并json回调 | | succeed | [ 选填 ] 状态(0异常1正常2未登录) | | 回调参 | 说明 | | --- | --- | | [ json ] | 回调json | * 案例 ~~~ $json = []; $json['succeed'] = 1; $U_P->back($json, 'ok'); $U_P->back($json, 'ok',1); $U_P->back($json, 'ok',2); $U_P->back($json, 'ok',0,1); ~~~ > {"succeed":1,"msg":"ok"} > Array ( \[succeed\] => 1 \[msg\] => ok ) > {"succeed":1,"msg":"ok"} > {"succeed":1,"msg":"ok"}