...
|
...
|
@@ -59,7 +59,7 @@ class PackageOrder extends Model |
|
|
$orderData['month'] = $package['month'];
|
|
|
$orderData['pay_fee'] = $package['package_price'];
|
|
|
$orderData['remark'] = $remark;
|
|
|
$orderData['inviter_id'] = !empty($inviter_id) ? $inviter_id : 0; // 邀请人ID
|
|
|
$orderData['inviter_id'] = (!empty($inviter_id) && $inviter_id != $user->id) ? $inviter_id : 0; // 邀请人ID
|
|
|
$order = new PackageOrder();
|
|
|
$order->allowField(true)->save($orderData);
|
|
|
|
...
|
...
|
|