PC-202304251453\Administrator 3 сар өмнө
parent
commit
d60b15efc4

+ 1 - 1
app/v1/logic/customer/AccountLogic.php

@@ -85,7 +85,7 @@ class AccountLogic extends BaseLogic
         $page = request()->input('page', 1);
         $limit = request()->input('limit', 10);
         $orderBy = request()->input('orderBy', '');
-        $orderType = request()->input('orderType', $this->orderType);
+        $orderType = request()->input('orderType', 'desc');
         
         if(empty($orderBy)) {
             $orderBy = $this->orderField !== '' ? $this->orderField : $this->model->getPk();

+ 2 - 10
app/v1/logic/dataReport/UserLogLogic.php

@@ -20,7 +20,6 @@ class UserLogLogic extends BaseLogic
         $params = $this->searchByAuth($params);
         $limit = request()->input('limit', 10);
 
-        // 检查注册时间只能查询3个月内
         if (empty($params['reg_time']) || count($params['reg_time']) != 2) {
             throw new ApiException('请选择注册时间范围');
         }
@@ -32,7 +31,7 @@ class UserLogLogic extends BaseLogic
         // 计算时间差,限制为3个月(90天)内
         $maxDays = 90;
         if (($endTime - $startTime) > ($maxDays * 86400)) {
-            throw new ApiException('注册时间只能查询3个月内');
+            throw new ApiException('时间范围请勿超过90天');
         }
 
         // 公共处理完的where, 自然量ID, auth_id=0为自然量
@@ -53,8 +52,6 @@ class UserLogLogic extends BaseLogic
 
         $params = $this->searchByAuth($params);
 
-
-         // 检查注册时间只能查询3个月内
         if (empty($params['login_time']) || count($params['login_time']) != 2) {
             throw new ApiException('请选择登录时间范围');
         }
@@ -66,7 +63,7 @@ class UserLogLogic extends BaseLogic
         // 计算时间差,限制为3个月(90天)内
         $maxDays = 90;
         if (($endTime - $startTime) > ($maxDays * 86400)) {
-            throw new ApiException('登录时间只能查询3个月内');
+            throw new ApiException('时间范围请勿超过90天');
         }
 
         // 检查登录时间只能查询3个月内
@@ -76,11 +73,6 @@ class UserLogLogic extends BaseLogic
             if ($endTime < $startTime) {
                 throw new ApiException('注册时间范围不正确');
             }
-            // 计算时间差,限制为3个月(90天)内
-            $maxDays = 90;
-            if (($endTime - $startTime) > ($maxDays * 86400)) {
-                throw new ApiException('注册时间只能查询3个月内');
-            }
         }
 
          // 公共处理完的where, 自然量ID, auth_id=0为自然量