正在显示
1 个修改的文件
包含
8 行增加
和
8 行删除
| @@ -62,7 +62,7 @@ class CNoticeController extends BaseController | @@ -62,7 +62,7 @@ class CNoticeController extends BaseController | ||
| 62 | * @time :2023/9/12 14:46 | 62 | * @time :2023/9/12 14:46 |
| 63 | */ | 63 | */ |
| 64 | public function updateMaster(){ | 64 | public function updateMaster(){ |
| 65 | -// try { | 65 | + try { |
| 66 | $updateNotifyModel = new UpdateNotify(); | 66 | $updateNotifyModel = new UpdateNotify(); |
| 67 | if($this->param['page'] == UpdateNotify::PAGE_ALL){ | 67 | if($this->param['page'] == UpdateNotify::PAGE_ALL){ |
| 68 | //如果是更新所有 | 68 | //如果是更新所有 |
| @@ -81,9 +81,9 @@ class CNoticeController extends BaseController | @@ -81,9 +81,9 @@ class CNoticeController extends BaseController | ||
| 81 | $extent = json_encode(['url'=>$this->param['url']]); | 81 | $extent = json_encode(['url'=>$this->param['url']]); |
| 82 | $this->addProgress($count,$this->param['type'],$this->param['page'],$extent); | 82 | $this->addProgress($count,$this->param['type'],$this->param['page'],$extent); |
| 83 | } | 83 | } |
| 84 | -// }catch (\Exception $e){ | ||
| 85 | -// $this->response('error',Code::USER_ERROR); | ||
| 86 | -// } | 84 | + }catch (\Exception $e){ |
| 85 | + $this->response('error',Code::USER_ERROR); | ||
| 86 | + } | ||
| 87 | return true; | 87 | return true; |
| 88 | } | 88 | } |
| 89 | 89 | ||
| @@ -96,7 +96,7 @@ class CNoticeController extends BaseController | @@ -96,7 +96,7 @@ class CNoticeController extends BaseController | ||
| 96 | */ | 96 | */ |
| 97 | public function updateMinorLanguages(){ | 97 | public function updateMinorLanguages(){ |
| 98 | $updateNotifyModel = new UpdateNotify(); | 98 | $updateNotifyModel = new UpdateNotify(); |
| 99 | - try { | 99 | +// try { |
| 100 | if($this->param['page'] == UpdateNotify::PAGE_ALL){ | 100 | if($this->param['page'] == UpdateNotify::PAGE_ALL){ |
| 101 | $this->request->validate([ | 101 | $this->request->validate([ |
| 102 | 'language' => 'required', | 102 | 'language' => 'required', |
| @@ -122,9 +122,9 @@ class CNoticeController extends BaseController | @@ -122,9 +122,9 @@ class CNoticeController extends BaseController | ||
| 122 | $extent = json_encode(['url'=>$this->param['url'],'language'=>$this->param['language']]); | 122 | $extent = json_encode(['url'=>$this->param['url'],'language'=>$this->param['language']]); |
| 123 | $this->addProgress($count,$this->param['type'],$this->param['page'],$extent); | 123 | $this->addProgress($count,$this->param['type'],$this->param['page'],$extent); |
| 124 | } | 124 | } |
| 125 | - }catch (\Exception $e){ | ||
| 126 | - $this->response('error',Code::USER_ERROR); | ||
| 127 | - } | 125 | +// }catch (\Exception $e){ |
| 126 | +// $this->response('error',Code::USER_ERROR); | ||
| 127 | +// } | ||
| 128 | return true; | 128 | return true; |
| 129 | } | 129 | } |
| 130 | 130 |
-
请 注册 或 登录 后发表评论