正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -59,7 +59,7 @@ class PackageOrder extends Model | @@ -59,7 +59,7 @@ class PackageOrder extends Model | ||
59 | $orderData['month'] = $package['month']; | 59 | $orderData['month'] = $package['month']; |
60 | $orderData['pay_fee'] = $package['package_price']; | 60 | $orderData['pay_fee'] = $package['package_price']; |
61 | $orderData['remark'] = $remark; | 61 | $orderData['remark'] = $remark; |
62 | - $orderData['inviter_id'] = !empty($inviter_id) ? $inviter_id : 0; // 邀请人ID | 62 | + $orderData['inviter_id'] = (!empty($inviter_id) && $inviter_id != $user->id) ? $inviter_id : 0; // 邀请人ID |
63 | $order = new PackageOrder(); | 63 | $order = new PackageOrder(); |
64 | $order->allowField(true)->save($orderData); | 64 | $order->allowField(true)->save($orderData); |
65 | 65 |
-
请 注册 或 登录 后发表评论