作者 lyh

ggx

... ... @@ -41,7 +41,6 @@ class CNoticeController extends BaseController
$this->response('非法参数!', Code::USER_ERROR);
}
$list = $this->sendNotifyMessage($type,$page);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($list, true) . PHP_EOL, FILE_APPEND);
if(!empty($list)){
$this->response('当前页面正在生成了,请完成后再点击',Code::USER_ERROR,$list);
}
... ... @@ -56,6 +55,7 @@ class CNoticeController extends BaseController
public function sendNotifyMessage($type,$page){
$updateProgressModel = new UpdateProgress();
$progressInfo = $updateProgressModel->formatQuery(['project_id'=>$this->user['project_id'],'type'=>$type])->orderBy('id','desc')->first();
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($progressInfo, true) . PHP_EOL, FILE_APPEND);
if((!empty($progressInfo))){
$progressInfo = $progressInfo->toArray();
if(($progressInfo['total_num'] > $progressInfo['current_num'])){
... ...