正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -41,7 +41,6 @@ class CNoticeController extends BaseController | @@ -41,7 +41,6 @@ class CNoticeController extends BaseController | ||
| 41 | $this->response('非法参数!', Code::USER_ERROR); | 41 | $this->response('非法参数!', Code::USER_ERROR); |
| 42 | } | 42 | } |
| 43 | $list = $this->sendNotifyMessage($type,$page); | 43 | $list = $this->sendNotifyMessage($type,$page); |
| 44 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($list, true) . PHP_EOL, FILE_APPEND); | ||
| 45 | if(!empty($list)){ | 44 | if(!empty($list)){ |
| 46 | $this->response('当前页面正在生成了,请完成后再点击',Code::USER_ERROR,$list); | 45 | $this->response('当前页面正在生成了,请完成后再点击',Code::USER_ERROR,$list); |
| 47 | } | 46 | } |
| @@ -56,6 +55,7 @@ class CNoticeController extends BaseController | @@ -56,6 +55,7 @@ class CNoticeController extends BaseController | ||
| 56 | public function sendNotifyMessage($type,$page){ | 55 | public function sendNotifyMessage($type,$page){ |
| 57 | $updateProgressModel = new UpdateProgress(); | 56 | $updateProgressModel = new UpdateProgress(); |
| 58 | $progressInfo = $updateProgressModel->formatQuery(['project_id'=>$this->user['project_id'],'type'=>$type])->orderBy('id','desc')->first(); | 57 | $progressInfo = $updateProgressModel->formatQuery(['project_id'=>$this->user['project_id'],'type'=>$type])->orderBy('id','desc')->first(); |
| 58 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($progressInfo, true) . PHP_EOL, FILE_APPEND); | ||
| 59 | if((!empty($progressInfo))){ | 59 | if((!empty($progressInfo))){ |
| 60 | $progressInfo = $progressInfo->toArray(); | 60 | $progressInfo = $progressInfo->toArray(); |
| 61 | if(($progressInfo['total_num'] > $progressInfo['current_num'])){ | 61 | if(($progressInfo['total_num'] > $progressInfo['current_num'])){ |
-
请 注册 或 登录 后发表评论