正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -106,9 +106,9 @@ class BaseController extends Controller | @@ -106,9 +106,9 @@ class BaseController extends Controller | ||
| 106 | { | 106 | { |
| 107 | $code = Code::fromValue($code); | 107 | $code = Code::fromValue($code); |
| 108 | $result = [ | 108 | $result = [ |
| 109 | - 'message' => $msg == ' ' ? $code->description : $msg, | ||
| 110 | 'code' => $code->value, | 109 | 'code' => $code->value, |
| 111 | - 'data' => ($data), | 110 | + 'data' => $data, |
| 111 | + 'message' => $msg == ' ' ? $code->description : $msg, | ||
| 112 | ]; | 112 | ]; |
| 113 | $this->header['Content-Type'] = $type; | 113 | $this->header['Content-Type'] = $type; |
| 114 | $this->header['token'] = $this->token; | 114 | $this->header['token'] = $this->token; |
-
请 注册 或 登录 后发表评论