多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
* 处理回调函数 * 多用于接口回调信息 | 传入参 | 说明 | | --- | --- | | 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"}