|
|
@@ -373,6 +373,8 @@ class StoreOrderController
|
|
|
{
|
|
|
list($uid) = UtilService::postMore([['uid', 0]], $request);
|
|
|
if (!$uid) return app('json')->fail('请选择要赠送的用户');
|
|
|
+ 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('refund_status', 0)
|