|
@@ -177,6 +177,9 @@ class OrderService extends BaseService {
|
|
|
|
|
|
$injectCoupon=false;
|
|
|
foreach ($info['goods'] as &$goods){
|
|
|
+ if(!$goods['sku'||!$goods['goods']){
|
|
|
+ $this->error('规格或商品不存在');
|
|
|
+ }
|
|
|
list($amountReal,$amountKill,$amountOrigin)=$this->getAmount($goods['sku'],$goods['goods']);
|
|
|
$goods['amount_pay']=0;
|
|
|
$goods['amount_coupon']=0;
|