dever 3 năm trước cách đây
mục cha
commit
05543c4176
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      app/shop/database/info.php

+ 4 - 2
app/shop/database/info.php

@@ -31,8 +31,10 @@ $act = function()
     if ($coupon) {
         foreach ($coupon as $k => $v) {
             $coupon_info = Dever::db('goods/coupon')->find($v['coupon_id']);
-            $prefix = '('.Dever::db('goods/coupon')->config['method'][$coupon_info['method']].')';
-            $coupon[$k]['name'] = $prefix . $coupon_info['name'];
+            if (isset($coupon_info['method'])) {
+                $prefix = '('.Dever::db('goods/coupon')->config['method'][$coupon_info['method']].')';
+                $coupon[$k]['name'] = $prefix . $coupon_info['name'];
+            }
         }
     }
     foreach ($info as $k => $v) {