正在显示
2 个修改的文件
包含
1 行增加
和
3 行删除
| @@ -143,7 +143,6 @@ class Count extends Command | @@ -143,7 +143,6 @@ class Count extends Command | ||
| 143 | } | 143 | } |
| 144 | } | 144 | } |
| 145 | } | 145 | } |
| 146 | - | ||
| 147 | //加上其他询盘 | 146 | //加上其他询盘 |
| 148 | ProjectServer::useProject($project_id); | 147 | ProjectServer::useProject($project_id); |
| 149 | $arr['inquiry_num'] += InquiryFormData::getCount(); | 148 | $arr['inquiry_num'] += InquiryFormData::getCount(); |
| @@ -155,8 +154,6 @@ class Count extends Command | @@ -155,8 +154,6 @@ class Count extends Command | ||
| 155 | $countryArr[$v1['country']] = $v1['count']; | 154 | $countryArr[$v1['country']] = $v1['count']; |
| 156 | } | 155 | } |
| 157 | } | 156 | } |
| 158 | - | ||
| 159 | - | ||
| 160 | arsort($countryArr); | 157 | arsort($countryArr); |
| 161 | $top20 = array_slice($countryArr, 0, 20, true); | 158 | $top20 = array_slice($countryArr, 0, 20, true); |
| 162 | $arr['country'] = json_encode($top20); | 159 | $arr['country'] = json_encode($top20); |
| @@ -87,6 +87,7 @@ class MonthReportController extends BaseController | @@ -87,6 +87,7 @@ class MonthReportController extends BaseController | ||
| 87 | ])->count(); | 87 | ])->count(); |
| 88 | $info['service_duration'] = $this->user['service_duration'];//服务天数 | 88 | $info['service_duration'] = $this->user['service_duration'];//服务天数 |
| 89 | $info['ip_total'] = (new Visit())->count();//ip总数 | 89 | $info['ip_total'] = (new Visit())->count();//ip总数 |
| 90 | + | ||
| 90 | $info['remain_day'] = $this->user['remain_day'];//剩余服务天数 | 91 | $info['remain_day'] = $this->user['remain_day'];//剩余服务天数 |
| 91 | $info['speed'] = round((0.3 + mt_rand()/mt_getrandmax() * (1-0.3)),2); | 92 | $info['speed'] = round((0.3 + mt_rand()/mt_getrandmax() * (1-0.3)),2); |
| 92 | $this->response('success',Code::SUCCESS,$info); | 93 | $this->response('success',Code::SUCCESS,$info); |
-
请 注册 或 登录 后发表评论