dever 3 years ago
parent
commit
d8e4bfbfd5
2 changed files with 2 additions and 2 deletions
  1. 1 1
      app/mshop/lib/Buy.php
  2. 1 1
      app/mshop/src/Data.php

+ 1 - 1
app/mshop/lib/Buy.php

@@ -761,7 +761,7 @@ class Buy
                 $sku = '';
             }
 
-            if ($tk && $v['status'] == 3) {
+            if ($tk && $info['status'] == 3) {
                 $refund_body[] = array
                 (
                     $goods_info['name'] . ' ' . $sku,

+ 1 - 1
app/mshop/src/Data.php

@@ -184,7 +184,7 @@ class Data extends Core
     # 获取店铺的优惠券
     public function getCoupon()
     {
-        $this->data = Dever::db('shop/coupon')->getAllPage(array('shop_id' => $this->shop_id, 'method' => 3));
+        $this->data = Dever::db('shop/coupon')->getAllPage(array('shop_id' => $this->shop_id));
 
         if ($this->data) {
             $time = time();