合并分支 'lyh-server' 到 'master'
gx aiblog列表页拉取 查看合并请求 !1905
正在显示
2 个修改的文件
包含
3 行增加
和
1 行删除
| @@ -63,10 +63,11 @@ class AiBlogLogic extends BaseLogic | @@ -63,10 +63,11 @@ class AiBlogLogic extends BaseLogic | ||
| 63 | $aiBlogService->mch_id = $aiSettingInfo['mch_id']; | 63 | $aiBlogService->mch_id = $aiSettingInfo['mch_id']; |
| 64 | $aiBlogService->key = $aiSettingInfo['key']; | 64 | $aiBlogService->key = $aiSettingInfo['key']; |
| 65 | $aiBlogService->updateDetail(['task_id'=>$this->param['task_id'],'title'=>$this->param['new_title'],'thumb'=>$this->param['image'],'route'=>$this->param['route'],'author_id'=>$this->param['author_id']]); | 65 | $aiBlogService->updateDetail(['task_id'=>$this->param['task_id'],'title'=>$this->param['new_title'],'thumb'=>$this->param['image'],'route'=>$this->param['route'],'author_id'=>$this->param['author_id']]); |
| 66 | + $aiBlogTaskModel = new AiBlogTask(); | ||
| 67 | + $aiBlogTaskModel->edit(['status'=>AiBlogTask::STATUS_RUNNING],['task_id'=>$this->param['task_id']]);//重新走拉取流程 | ||
| 66 | }catch (\Exception $e){ | 68 | }catch (\Exception $e){ |
| 67 | $this->fail('保存失败,请联系管理员'); | 69 | $this->fail('保存失败,请联系管理员'); |
| 68 | } | 70 | } |
| 69 | - $this->sendHttpC([$this->param['route'],'top-blog']); | ||
| 70 | return $this->success(); | 71 | return $this->success(); |
| 71 | } | 72 | } |
| 72 | 73 |
| @@ -10,6 +10,7 @@ use App\Models\Com\UpdateNotify; | @@ -10,6 +10,7 @@ use App\Models\Com\UpdateNotify; | ||
| 10 | use App\Models\Devops\ServerConfig; | 10 | use App\Models\Devops\ServerConfig; |
| 11 | use App\Models\Devops\ServersIp; | 11 | use App\Models\Devops\ServersIp; |
| 12 | use App\Models\Project\Project; | 12 | use App\Models\Project\Project; |
| 13 | +use Illuminate\Support\Facades\Artisan; | ||
| 13 | use Illuminate\Support\Facades\Cache; | 14 | use Illuminate\Support\Facades\Cache; |
| 14 | use Illuminate\Support\Str; | 15 | use Illuminate\Support\Str; |
| 15 | 16 |
-
请 注册 或 登录 后发表评论