fixed
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user