This commit is contained in:
xiaoyu
2023-07-09 18:35:15 +08:00
parent 7dd6612c26
commit 3c5fc44632
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -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);
}
+1 -1
View File
@@ -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