소스 검색

预下单也要传参coupon_id

lizhen_gitee 6 달 전
부모
커밋
f802efc393
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      addons/unishop/controller/Order.php

+ 1 - 1
addons/unishop/controller/Order.php

@@ -183,7 +183,7 @@ class Order extends Base
                 $coupon_ids = array_column($coupon,'id');
                 if(in_array($coupon_id,$coupon_ids)){
                     foreach($coupon as $key => $cou){
-                        if($cou['id'] == $coupon_id){
+                        if($cou['cu_id'] == $coupon_id){
                             $discountPrice = $cou['value'];
                         }
                     }