|
|
|
@ -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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|