|
...
|
...
|
@@ -62,7 +62,7 @@ class CNoticeController extends BaseController |
|
|
|
* @time :2023/9/12 14:46
|
|
|
|
*/
|
|
|
|
public function updateMaster(){
|
|
|
|
// try {
|
|
|
|
try {
|
|
|
|
$updateNotifyModel = new UpdateNotify();
|
|
|
|
if($this->param['page'] == UpdateNotify::PAGE_ALL){
|
|
|
|
//如果是更新所有
|
|
...
|
...
|
@@ -81,9 +81,9 @@ class CNoticeController extends BaseController |
|
|
|
$extent = json_encode(['url'=>$this->param['url']]);
|
|
|
|
$this->addProgress($count,$this->param['type'],$this->param['page'],$extent);
|
|
|
|
}
|
|
|
|
// }catch (\Exception $e){
|
|
|
|
// $this->response('error',Code::USER_ERROR);
|
|
|
|
// }
|
|
|
|
}catch (\Exception $e){
|
|
|
|
$this->response('error',Code::USER_ERROR);
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -96,7 +96,7 @@ class CNoticeController extends BaseController |
|
|
|
*/
|
|
|
|
public function updateMinorLanguages(){
|
|
|
|
$updateNotifyModel = new UpdateNotify();
|
|
|
|
try {
|
|
|
|
// try {
|
|
|
|
if($this->param['page'] == UpdateNotify::PAGE_ALL){
|
|
|
|
$this->request->validate([
|
|
|
|
'language' => 'required',
|
|
...
|
...
|
@@ -122,9 +122,9 @@ class CNoticeController extends BaseController |
|
|
|
$extent = json_encode(['url'=>$this->param['url'],'language'=>$this->param['language']]);
|
|
|
|
$this->addProgress($count,$this->param['type'],$this->param['page'],$extent);
|
|
|
|
}
|
|
|
|
}catch (\Exception $e){
|
|
|
|
$this->response('error',Code::USER_ERROR);
|
|
|
|
}
|
|
|
|
// }catch (\Exception $e){
|
|
|
|
// $this->response('error',Code::USER_ERROR);
|
|
|
|
// }
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|