正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
| @@ -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 |
-
请 注册 或 登录 后发表评论