Merge branch 'master-lyh-edit' of http://47.244.231.31:8099/zhl/globalso-v6
正在显示
3 个修改的文件
包含
4 行增加
和
7 行删除
| @@ -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); |
| @@ -153,10 +153,9 @@ if (!function_exists('curl_get')) { | @@ -153,10 +153,9 @@ if (!function_exists('curl_get')) { | ||
| 153 | * @time :2024/6/5 10:38 | 153 | * @time :2024/6/5 10:38 |
| 154 | */ | 154 | */ |
| 155 | function contains_russian($text) { | 155 | function contains_russian($text) { |
| 156 | - // 正则表达式匹配俄语字符 | ||
| 157 | - $pattern = '/[А-Яа-яЁё]/u'; | ||
| 158 | - // 使用 preg_match 检查字符串是否匹配正则表达式 | ||
| 159 | - return preg_match($pattern, $text); | 156 | + // 使用正则表达式检查是否包含俄语字符 |
| 157 | + return preg_match('/[\x{0400}-\x{04FF}]/u', $text) > 0; | ||
| 158 | + | ||
| 160 | } | 159 | } |
| 161 | 160 | ||
| 162 | if (!function_exists('curl_c')) { | 161 | if (!function_exists('curl_c')) { |
| @@ -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); |
-
请 注册 或 登录 后发表评论