ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的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}`