修改密码

This commit is contained in:
2025-07-18 16:45:16 +08:00
parent cc98a78ad6
commit edb8c5e9e2
5 changed files with 70 additions and 2 deletions
+20 -1
View File
@@ -21,7 +21,8 @@ class CustomerService
$page = $params['current'] ?? 1;
$keyword = $params['keyword'] ?? '';
$recycle = $params['recycle'] ?? '';
$grade = $params['grade'] ?? '';
$follow = $params['follow'] ?? '';
$follow_last = $params['follow_last'] ?? '';
$where = [];
$user_id =$params['user_id'];
if(empty($user_id) || $user_id == 0){
@@ -36,6 +37,24 @@ class CustomerService
$where[] = ['user_id', $user_id];
}
$grade = [];
if (!Util::isEmpty($follow) && $follow == 0) {
$where[] = ['grade', '<=', 2];
} elseif (!Util::isEmpty($follow) && $follow == 1) {
$grade = [3, 4];
} elseif (!Util::isEmpty($follow) && $follow == 2) {
$where[] = ['grade', '=', 5];
}
if (!Util::isEmpty($follow_last) && $follow_last == 0) {
$where[] = ['follow_last', '>', strtotime('-1 day')];
} elseif (!Util::isEmpty($follow_last) && $follow_last == 1) {
$where[] = ['follow_last', '>', strtotime('-3 day')];
} elseif (!Util::isEmpty($follow_last) && $follow_last == 2) {
$where[] = ['follow_last', '>', strtotime('-7 day')];
}
$query = Customer::where($where);
if(!empty($tagId)){