Commit 2ae61334 by 叶明星

修改返回json方法

parent d8c5d83b
Showing with 1 additions and 1 deletions
......@@ -36,7 +36,7 @@ class Controller extends BaseController
}else{
$data['data'] = $dataArr;
}
return json_encode($data);
return response()->json($data);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment