作者 lyh

ggx

... ... @@ -55,7 +55,6 @@ 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'])){
... ... @@ -74,6 +73,7 @@ class CNoticeController extends BaseController
if($count == 0){
return $this->success();
}
@file_put_contents(storage_path('logs/lyh_error.log'), var_export(1111111111, true) . PHP_EOL, FILE_APPEND);
// $this->addProgress($count,$type);
$updateNotifyModel->edit([$field => 1], ['project_id' => $this->user['project_id'], $field => 0]);
$urlStr = $this->getString($type,$page);
... ...