合并分支 'master-server' 到 'master'
gx创建作者 查看合并请求 !1219
正在显示
2 个修改的文件
包含
4 行增加
和
4 行删除
此 diff 太大无法显示。
| @@ -70,7 +70,7 @@ class AiBlogLogic extends BaseLogic | @@ -70,7 +70,7 @@ class AiBlogLogic extends BaseLogic | ||
| 70 | * @time :2025/2/21 14:46 | 70 | * @time :2025/2/21 14:46 |
| 71 | */ | 71 | */ |
| 72 | public function saveBlogAuthor(){ | 72 | public function saveBlogAuthor(){ |
| 73 | -// try { | 73 | + try { |
| 74 | $aiAuthorModel = new AiBlogAuthor(); | 74 | $aiAuthorModel = new AiBlogAuthor(); |
| 75 | if(!empty($this->param['image'])){ | 75 | if(!empty($this->param['image'])){ |
| 76 | $this->param['image'] = str_replace_url($this->param['image']); | 76 | $this->param['image'] = str_replace_url($this->param['image']); |
| @@ -79,9 +79,9 @@ class AiBlogLogic extends BaseLogic | @@ -79,9 +79,9 @@ class AiBlogLogic extends BaseLogic | ||
| 79 | $aiAuthorModel->edit($this->param,['id'=>$this->param['id']]); | 79 | $aiAuthorModel->edit($this->param,['id'=>$this->param['id']]); |
| 80 | $aiBlogService = new AiBlogService(); | 80 | $aiBlogService = new AiBlogService(); |
| 81 | $aiBlogService->updateAuthorInfo(['author_id'=>$this->param['author_id'],'title'=>$this->param['title'],'picture'=>$this->param['image'],'description'=>$this->param['description']]); | 81 | $aiBlogService->updateAuthorInfo(['author_id'=>$this->param['author_id'],'title'=>$this->param['title'],'picture'=>$this->param['image'],'description'=>$this->param['description']]); |
| 82 | -// }catch (\Exception $e){ | ||
| 83 | -// $this->fail('保存失败,请联系管理员'); | ||
| 84 | -// } | 82 | + }catch (\Exception $e){ |
| 83 | + $this->fail('保存失败,请联系管理员'); | ||
| 84 | + } | ||
| 85 | return $this->success(); | 85 | return $this->success(); |
| 86 | } | 86 | } |
| 87 | 87 |
-
请 注册 或 登录 后发表评论