/** * 通过粉丝组ID 更改粉丝所属组(支持批量). * * @param Array $ids 粉丝自增ID * @param Int $toGroupId 粉丝组group_id */ public function moveFanGroupByGroupid($accountId, $fromGroupId, $toGroupId) { //根据粉丝ID查询 return $this->model->where('account_id', $accountId)->where('group_id', $fromGroupId)->update(['group_id' => $toGroupId]); }