正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -136,7 +136,8 @@ class PrivateController extends BaseController | @@ -136,7 +136,8 @@ class PrivateController extends BaseController | ||
| 136 | */ | 136 | */ |
| 137 | public function validUser(Request $request) | 137 | public function validUser(Request $request) |
| 138 | { | 138 | { |
| 139 | - $valid_user = User::select(['gl_project_user.mobile'])->leftJoin('gl_project', 'gl_project.id', '=', 'gl_project_user.project_id')->where(['delete_status' => 0, 'is_upgrade' => Project::IS_UPGRADE_FALSE])->pluck('mobile')->toArray(); | 139 | + // 排除演示项目数据 |
| 140 | + $valid_user = User::select(['gl_project_user.mobile'])->leftJoin('gl_project', 'gl_project.id', '=', 'gl_project_user.project_id')->where(['delete_status' => 0, 'is_upgrade' => Project::IS_UPGRADE_FALSE])->where('id', '>', 1)->pluck('mobile')->toArray(); | ||
| 140 | $upgrade_user = User::select(['gl_project_user.mobile'])->leftJoin('gl_project', 'gl_project.id', '=', 'gl_project_user.project_id')->where(['delete_status' => 0, 'is_upgrade' => Project::IS_UPGRADE_TRUE])->where('gl_project.type', '>', Project::TYPE_ONE)->pluck('mobile')->toArray(); | 141 | $upgrade_user = User::select(['gl_project_user.mobile'])->leftJoin('gl_project', 'gl_project.id', '=', 'gl_project_user.project_id')->where(['delete_status' => 0, 'is_upgrade' => Project::IS_UPGRADE_TRUE])->where('gl_project.type', '>', Project::TYPE_ONE)->pluck('mobile')->toArray(); |
| 141 | $user = array_unique(array_merge($valid_user, $upgrade_user)); | 142 | $user = array_unique(array_merge($valid_user, $upgrade_user)); |
| 142 | return $this->success($user); | 143 | return $this->success($user); |
-
请 注册 或 登录 后发表评论