作者 lyh

ggx

@@ -41,6 +41,7 @@ class CNoticeController extends BaseController @@ -41,6 +41,7 @@ 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);
44 if(!empty($list)){ 45 if(!empty($list)){
45 $this->response('当前页面正在生成了,请完成后再点击',Code::USER_ERROR,$list); 46 $this->response('当前页面正在生成了,请完成后再点击',Code::USER_ERROR,$list);
46 } 47 }
@@ -73,7 +74,7 @@ class CNoticeController extends BaseController @@ -73,7 +74,7 @@ class CNoticeController extends BaseController
73 if($count == 0){ 74 if($count == 0){
74 return $this->success(); 75 return $this->success();
75 } 76 }
76 -// $this->addProgress($count,$type); 77 + $this->addProgress($count,$type);
77 $updateNotifyModel->edit([$field => 1], ['project_id' => $this->user['project_id'], $field => 0]); 78 $updateNotifyModel->edit([$field => 1], ['project_id' => $this->user['project_id'], $field => 0]);
78 $urlStr = $this->getString($type,$page); 79 $urlStr = $this->getString($type,$page);
79 $this->curlGet($urlStr); 80 $this->curlGet($urlStr);