瀏覽代碼

预下单也要传参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'];
                         }
                     }