作者 李宇航

合并分支 'master-server' 到 'master'

Master server



查看合并请求 !1217
@@ -152,7 +152,7 @@ class AiBlogController extends BaseController @@ -152,7 +152,7 @@ class AiBlogController extends BaseController
152 public function delete(AiBlogLogic $aiBlogLogic) 152 public function delete(AiBlogLogic $aiBlogLogic)
153 { 153 {
154 $this->request->validate([ 154 $this->request->validate([
155 - 'ids'=>['required'] 155 + 'ids'=>['required'],
156 ],[ 156 ],[
157 'ids.required' => 'ID不能为空' 157 'ids.required' => 'ID不能为空'
158 ]); 158 ]);
@@ -55,7 +55,7 @@ class AiBlogLogic extends BaseLogic @@ -55,7 +55,7 @@ class AiBlogLogic extends BaseLogic
55 $aiBlogService = new AiBlogService(); 55 $aiBlogService = new AiBlogService();
56 $aiBlogService->mch_id = $aiSettingInfo['mch_id']; 56 $aiBlogService->mch_id = $aiSettingInfo['mch_id'];
57 $aiBlogService->key = $aiSettingInfo['key']; 57 $aiBlogService->key = $aiSettingInfo['key'];
58 - $aiBlogService->updateDetail(['title'=>$this->param['title'],'thumb'=>$this->param['image'],'route'=>$this->param['route'],'author_id'=>$this->param['author_id']]); 58 + $aiBlogService->updateDetail(['title'=>$this->param['new_title'],'thumb'=>$this->param['image'],'route'=>$this->param['route'],'author_id'=>$this->param['author_id']]);
59 }catch (\Exception $e){ 59 }catch (\Exception $e){
60 $this->fail('保存失败,请联系管理员'); 60 $this->fail('保存失败,请联系管理员');
61 } 61 }
@@ -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