|
@@ -45,7 +45,7 @@ class AiBlogLogic extends BaseLogic |
|
@@ -45,7 +45,7 @@ class AiBlogLogic extends BaseLogic |
|
45
|
* @time :2023/7/5 14:46
|
45
|
* @time :2023/7/5 14:46
|
|
46
|
*/
|
46
|
*/
|
|
47
|
public function blogSave(){
|
47
|
public function blogSave(){
|
|
48
|
- try {
|
48
|
+// try {
|
|
49
|
if(!empty($this->param['image'])){
|
49
|
if(!empty($this->param['image'])){
|
|
50
|
$this->param['image'] = str_replace_url($this->param['image']);
|
50
|
$this->param['image'] = str_replace_url($this->param['image']);
|
|
51
|
}
|
51
|
}
|
|
@@ -56,9 +56,9 @@ class AiBlogLogic extends BaseLogic |
|
@@ -56,9 +56,9 @@ class AiBlogLogic extends BaseLogic |
|
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['title'],'thumb'=>$this->param['image'],'route'=>$this->param['route'],'author_id'=>$this->param['author_id']]);
|
|
59
|
- }catch (\Exception $e){
|
|
|
|
60
|
- $this->fail('保存失败,请联系管理员');
|
|
|
|
61
|
- }
|
59
|
+// }catch (\Exception $e){
|
|
|
|
60
|
+// $this->fail('保存失败,请联系管理员');
|
|
|
|
61
|
+// }
|
|
62
|
return $this->success();
|
62
|
return $this->success();
|
|
63
|
}
|
63
|
}
|
|
64
|
|
64
|
|