From 3c5fc446329411932011f041408088596e9e38d0 Mon Sep 17 00:00:00 2001 From: xiaoyu Date: Sun, 9 Jul 2023 18:35:15 +0800 Subject: [PATCH] fixed --- market/controllers/api/sylive/Activity.php | 4 +--- market/controllers/api/sylive/GroupsUser.php | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/market/controllers/api/sylive/Activity.php b/market/controllers/api/sylive/Activity.php index 77308b19..c7a57e21 100644 --- a/market/controllers/api/sylive/Activity.php +++ b/market/controllers/api/sylive/Activity.php @@ -448,12 +448,10 @@ class Activity extends BaseController $levelId1 = intval($groupsIds[$v['levelId1']]); $levelId2 = intval($groupsIds[$v['levelId2']]); $levelId3 = intval($groupsIds[$v['levelId3']]); - $type = intval($groupsIds[$v['type']]); - $userFrom = intval($groupsIds[$v['userFrom']]); $userData[] = [ 'activityId' => $activityId, 'userId' => $v['userId'], 'groupsId' => $groupsId, 'bizId' => $bizId, 'levelId1' => $levelId1, 'levelId1' => $levelId1, 'levelId2' => $levelId2, 'levelId3' => $levelId3, - 'type' => $type, 'userFrom' => $userFrom, 'status' => $v['status'], 'createTime' => $createTime]; + 'type' => $v['type'], 'userFrom' => $v['userFrom'], 'status' => $v['status'], 'createTime' => $createTime]; } $userData && $this->mdSyliveGroupsUser->add_batch($userData); } diff --git a/market/controllers/api/sylive/GroupsUser.php b/market/controllers/api/sylive/GroupsUser.php index 280659ae..a3137a80 100644 --- a/market/controllers/api/sylive/GroupsUser.php +++ b/market/controllers/api/sylive/GroupsUser.php @@ -134,7 +134,7 @@ class GroupsUser extends BaseController , 'userId,organizationId,bizId'); $addUser = []; foreach ($res as $v) { - $re_user = $this->mdSyliveGroupsUser->get(['activityId' => $activityId, 'userId' => $v['userId'], 'status>=' => 0]); + $re_user = $this->mdSyliveGroupsUser->get(['activityId' => $activityId, 'userId' => $v['userId'], 'status' => 0]); if (!$re_user) { $type = $v['bizId'] == $v['organizationId'] ? 1 : 0; $value = ['userId' => $v['userId'], 'type' => $type, 'activityId' => $activityId