作者 lyh

ggx

@@ -55,7 +55,6 @@ class CNoticeController extends BaseController @@ -55,7 +55,6 @@ class CNoticeController extends BaseController
55 public function sendNotifyMessage($type,$page){ 55 public function sendNotifyMessage($type,$page){
56 $updateProgressModel = new UpdateProgress(); 56 $updateProgressModel = new UpdateProgress();
57 $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))){ 58 if((!empty($progressInfo))){
60 $progressInfo = $progressInfo->toArray(); 59 $progressInfo = $progressInfo->toArray();
61 if(($progressInfo['total_num'] > $progressInfo['current_num'])){ 60 if(($progressInfo['total_num'] > $progressInfo['current_num'])){
@@ -74,6 +73,7 @@ class CNoticeController extends BaseController @@ -74,6 +73,7 @@ class CNoticeController extends BaseController
74 if($count == 0){ 73 if($count == 0){
75 return $this->success(); 74 return $this->success();
76 } 75 }
  76 + @file_put_contents(storage_path('logs/lyh_error.log'), var_export(1111111111, true) . PHP_EOL, FILE_APPEND);
77 // $this->addProgress($count,$type); 77 // $this->addProgress($count,$type);
78 $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]);
79 $urlStr = $this->getString($type,$page); 79 $urlStr = $this->getString($type,$page);