正在显示
1 个修改的文件
包含
4 行增加
和
5 行删除
| @@ -59,7 +59,7 @@ class CNoticeController extends BaseController | @@ -59,7 +59,7 @@ class CNoticeController extends BaseController | ||
| 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'])){ |
| 62 | - return $this->success($progressInfo); | 62 | + return $progressInfo; |
| 63 | } | 63 | } |
| 64 | } | 64 | } |
| 65 | $updateNotifyModel = new UpdateNotify(); | 65 | $updateNotifyModel = new UpdateNotify(); |
| @@ -72,14 +72,13 @@ class CNoticeController extends BaseController | @@ -72,14 +72,13 @@ class CNoticeController extends BaseController | ||
| 72 | $count = $updateNotifyModel->formatQuery(['project_id' => $this->user['project_id'], $field => 0])->count(); | 72 | $count = $updateNotifyModel->formatQuery(['project_id' => $this->user['project_id'], $field => 0])->count(); |
| 73 | } | 73 | } |
| 74 | if($count == 0){ | 74 | if($count == 0){ |
| 75 | - return $this->success(); | 75 | + return []; |
| 76 | } | 76 | } |
| 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); |
| 80 | $this->curlGet($urlStr); | 80 | $this->curlGet($urlStr); |
| 81 | - return $this->success(); | ||
| 82 | - } | 81 | + return []; |
| 83 | 82 | ||
| 84 | /** | 83 | /** |
| 85 | * @remark :curl请求 | 84 | * @remark :curl请求 |
-
请 注册 或 登录 后发表评论