找第一次设备绑定的推广员

master
tping 5 years ago
parent 77bc1008be
commit d753d68a3f

@ -388,14 +388,14 @@ class UserController extends BaseController
if ($deviceInfoByDevice) {
$changeFlag = true;
$changePromoteId = $deviceInfoByDevice['promote_id'];
$changePromoteAccount = $deviceInfoByDevice['promote_account'];
$changePromoteAccount = get_promote_account($changePromoteId);
}
}
} else { // 没有推广员的情况下直接绑定这个设备
if ($deviceInfoByDevice) { // 这个设备绑定过推官员的修改成改推广员
$changeFlag = true;
$changePromoteId = $deviceInfoByDevice['promote_id'];
$changePromoteAccount = $deviceInfoByDevice['promote_account'];
$changePromoteAccount = get_promote_account($changePromoteId);
}
}

Loading…
Cancel
Save