class Test extends Controller{
function hello(){
$data = ['name' => 'thinkphp'];
return json($data);
}
function hello(){
$data = ['name' => 'thinkphp'];
return json($data);
}
}
$this->json([
'code' =>0,
'data' => [
'msg' =>'msg' => $res.$res1
]
]);