|
@@ -376,7 +376,7 @@ class StoreOrderController
|
|
|
if (!User::get($uid)) return app('json')->fail('用户不存在');
|
|
|
if ($uid == $request->uid()) return app('json')->fail('不能赠送给自己');
|
|
|
if (!\app\admin\model\order\StoreOrder::where('order_id', $uni)
|
|
|
- ->where('uid', $uid)
|
|
|
+ ->where('uid', $request->uid())
|
|
|
->where('refund_status', 0)
|
|
|
->where('paid', 1)
|
|
|
->where('status', 0)
|