|
|
|
@ -147,6 +147,11 @@ class OrderController extends Controller |
|
|
|
return $this->error('产品已下架或库存不足'); |
|
|
|
} |
|
|
|
|
|
|
|
//支付小程序的产品不允许购买
|
|
|
|
if (AdminSetting::val('payee_appid') == Agent::where('id', $this->agent_id)->value('appid')) { |
|
|
|
return $this->error('系统出错了,购买失败~~'); |
|
|
|
} |
|
|
|
|
|
|
|
$coupon_ids = []; |
|
|
|
if ($ap->coupon) { |
|
|
|
foreach ($ap->coupon as $v) { |
|
|
|
|