haru haru il y a 2 ans
Parent
commit
a8ac65afb9
1 fichiers modifiés avec 1 ajouts et 7 suppressions
  1. 1 7
      admin/control/refill_order_manual.php

+ 1 - 7
admin/control/refill_order_manual.php

@@ -439,6 +439,7 @@ class refill_order_manualControl extends SystemControl
     {
         $mod = Model('refill_order');
         $cur_time = time();
+        $start_day = $cur_time - 86400 * 2;
 
         if (!empty($input['mch_orders'])) {
             $mch_orders = rtrim($input['mch_orders'],',');
@@ -448,13 +449,6 @@ class refill_order_manualControl extends SystemControl
             $card_nos = rtrim($input['card_nos'],',');
             $condition['refill_order.card_no'] = ['in', $card_nos];
         }
-        
-        $item = Model('')->table('refill_detail')->field('min(order_time) as mintime')->where(['order_time' => ['egt',time()-1 * 86400],'order_state'=>30])->find();
-        if (empty($item['mintime'])) {
-            $start_day = $cur_time - 3600;
-        } else {
-            $start_day = intval($item['mintime']);
-        }
 
         $merchant_list = $this->merchants();
         $transfer = new refill\transfer();