mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update OrderService.php
This commit is contained in:
parent
5353363c4f
commit
7429fb1081
@ -56,8 +56,8 @@ class OrderService extends Service
|
||||
// 更新用户购买资格
|
||||
$entry = $this->vipEntry($order['uid']);
|
||||
// 尝试绑定代理用户
|
||||
if (empty($user['pid1']) && ($order['puid1'] > 0 || $user['pid1'] > 0)) {
|
||||
$puid1 = $order['puid1'] > 0 ? $order['puid1'] : $user['bid'];
|
||||
if (empty($user['pids']) && ($order['puid1'] > 0 || $user['pid1'] > 0)) {
|
||||
$puid1 = $order['puid1'] > 0 ? $order['puid1'] : $user['pid0'];
|
||||
UserUpgradeService::instance()->bindAgent($user['id'], $puid1);
|
||||
}
|
||||
// 重置用户信息并绑定订单
|
||||
|
Loading…
x
Reference in New Issue
Block a user