edit-sylive-plan
This commit is contained in:
@@ -346,15 +346,16 @@ class Syt extends CI_Controller
|
||||
!$page && $page = 1;
|
||||
!$size && $size = 20;
|
||||
$where = [
|
||||
'organizationId>' => 0,
|
||||
'activityId>' => 0,
|
||||
'userId>' => 0
|
||||
];
|
||||
$total = $this->act_user_model->count($where);
|
||||
$filed = 'id,userId,activityId';
|
||||
$rows = $this->act_user_model->select($where,'id asc',$page,$size,$filed);
|
||||
if(!$rows){
|
||||
echo "执行完毕";
|
||||
echo "执行完毕";exit;
|
||||
}
|
||||
echo $total.'<br>';
|
||||
$user_ids = implode(',',array_column($rows,'userId'));
|
||||
$where = ["userId in ({$user_ids})"=>null];
|
||||
$users = $this->user_model->map('userId','',$where);
|
||||
@@ -403,7 +404,7 @@ class Syt extends CI_Controller
|
||||
$orderTotal && $update['orderTotal'] = $browse;
|
||||
$watch && $update['watch'] = $browse;
|
||||
$this->act_user_model->update($update,['userId'=>$item['userId']]);
|
||||
echo "更新成功:".json_encode($update,JSON_UNESCAPED_UNICODE)."<br>";
|
||||
echo "用户id:{$item['userId']}更新成功:".json_encode($update,JSON_UNESCAPED_UNICODE)."<br>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user