企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
后台json输出【一般直接用于json对象输出】 * * * * * ~~~ return_json($type,$msg, $url ,$data,$wait) ~~~ ~~~ /** * 后台json输出 * @param $type * @param string $msg = '' * @param null $url = null * @param string $data = null * @param int $wait = 3 * @return \think\response\Json * / ~~~ * * * * * 例: ~~~ return return_json('success'); ~~~ =>`{"result":"success","code":0,"msg":"success","data":null,"url":null,"wait":3}` ~~~ return re_json('error'); ~~~ =>`{"result":"error","code":1,"msg":"error","data":null,"url":null,"wait":3}`