后台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}`