Commit fd7bcb19 by 王召彬

test

parent 46b4d664
...@@ -17,7 +17,7 @@ class BaseController ...@@ -17,7 +17,7 @@ class BaseController
* @param mixed $data * @param mixed $data
* @return array * @return array
*/ */
public static function error(int $errorCode, string $msg, mixed $data=null) { public static function error(int $errorCode, string $msg, $data=null) {
return [ return [
'error_code' => $errorCode, 'error_code' => $errorCode,
'msg' => $msg, 'msg' => $msg,
...@@ -32,7 +32,7 @@ class BaseController ...@@ -32,7 +32,7 @@ class BaseController
* @param string $msg * @param string $msg
* @return void * @return void
*/ */
public static function success(mixed $data, string $msg='') { public static function success($data, string $msg='') {
return [ return [
'data' => $data, 'data' => $data,
'msg' => $msg, 'msg' => $msg,
......
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