Ver Fonte

红包 占用问题

shish há 4 anos atrás
pai
commit
6f22737052

+ 3 - 0
app-hd/controllers/ShopCouponController.php

@@ -21,6 +21,9 @@ class ShopCouponController extends BaseController
         $status = $get['status'] ?? 0;
         if (!empty($status)) {
             $where['status'] = $status;
+            if ($status == 1) {
+                $where['take'] = 1;
+            }
         }
         $ghsId = $get['ghsId'] ?? 0;
         if (!empty($ghsId)) {

+ 1 - 1
common/components/dict.php

@@ -40,7 +40,7 @@ class dict
         'onlinePay' => ['not' => 1, 'yes' => 2],
 
         //客户采购时订单有效期10分钟
-        'sale_purchase_order_valid' => 30,
+        'sale_purchase_order_valid' => 600,
 
         //商家开单时订单有效期一个月
         'kd_order_valid' => 2592000,