正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -137,7 +137,7 @@ class PrivateController extends BaseController | @@ -137,7 +137,7 @@ class PrivateController extends BaseController | ||
| 137 | public function validUser(Request $request) | 137 | public function validUser(Request $request) |
| 138 | { | 138 | { |
| 139 | // 排除演示项目数据 | 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 | + $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('gl_project.id', '>', 1)->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 | $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(); |
| 142 | $user = array_unique(array_merge($valid_user, $upgrade_user)); | 142 | $user = array_unique(array_merge($valid_user, $upgrade_user)); |
| 143 | return $this->success($user); | 143 | return $this->success($user); |
-
请 注册 或 登录 后发表评论