Browse Source

add to local

stanley-king 4 years ago
parent
commit
9c96b35cf4
2 changed files with 3 additions and 3 deletions
  1. 1 1
      data/model/vr_order.model.php
  2. 2 2
      helper/refill/RefillFactory.php

+ 1 - 1
data/model/vr_order.model.php

@@ -60,7 +60,7 @@ class vr_orderModel extends Model
         if (empty($order_info)) return false;
 
         //均摊后每个兑换码支付金额
-        $each_pay_price = number_format($order_info['order_amount'] / $order_info['goods_num'], 2);
+        $each_pay_price = ncPriceFormat($order_info['order_amount'] / $order_info['goods_num'], 2);
 
         //取得店铺兑换码前缀
         $store_info = Model('store')->getStoreInfoByID($order_info['store_id']);

+ 2 - 2
helper/refill/RefillFactory.php

@@ -282,7 +282,7 @@ class RefillFactory
 //            }
 
             $period = time() - $refill['order_time'];
-            if($period >= 20 * 60) {
+            if($period >= 15 * 60) {
                 return false;
             }
 
@@ -325,7 +325,7 @@ class RefillFactory
         $mch_amount = $calc->calc_vgoods_price([]);
         $available = $minfo->available_predeposit();
         if ($mch_amount > $available) {
-            Log::record("{$mch_amount} > {$available}",Log::DEBUG);
+            Log::record("下单时机构余额不足,可用余额为:{$available}",Log::DEBUG);
             return [203, "余额不足"];
         }