正在显示
2 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -43,8 +43,8 @@ class AiCommandController extends BaseController | @@ -43,8 +43,8 @@ class AiCommandController extends BaseController | ||
| 43 | ],[ | 43 | ],[ |
| 44 | 'id.required' => 'ID不能为空' | 44 | 'id.required' => 'ID不能为空' |
| 45 | ]); | 45 | ]); |
| 46 | - $aiCommandLogic->ai_info(); | ||
| 47 | - $this->response('success'); | 46 | + $info = $aiCommandLogic->ai_info(); |
| 47 | + $this->response('success',Code::SUCCESS,$info); | ||
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | /** | 50 | /** |
| @@ -26,7 +26,7 @@ class AiCommandLogic extends BaseLogic | @@ -26,7 +26,7 @@ class AiCommandLogic extends BaseLogic | ||
| 26 | if($info === false){ | 26 | if($info === false){ |
| 27 | $this->fail('当前数据不存在'); | 27 | $this->fail('当前数据不存在'); |
| 28 | } | 28 | } |
| 29 | - return $this->success(); | 29 | + return $this->success($info); |
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | /** | 32 | /** |
-
请 注册 或 登录 后发表评论