Commit 6dc9f7c2 by 王召彬

test

parent 0fb1c773
...@@ -19,7 +19,7 @@ class BaseController ...@@ -19,7 +19,7 @@ class BaseController
*/ */
public static function error(int $errorCode, string $msg, $data=null) { public static function error(int $errorCode, string $msg, $data=null) {
return [ return [
'error_code' => $errorCode, 'errorCode' => $errorCode,
'msg' => $msg, 'msg' => $msg,
'data' => $data, 'data' => $data,
]; ];
...@@ -36,7 +36,7 @@ class BaseController ...@@ -36,7 +36,7 @@ class BaseController
return [ return [
'data' => $data, 'data' => $data,
'msg' => $msg, 'msg' => $msg,
'error_code' => 0, 'errorCode' => 0,
]; ];
} }
} }
\ No newline at end of file
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 to comment