dever %!s(int64=3) %!d(string=hai) anos
pai
achega
d8e4bfbfd5
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  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();