stanley-king 2 år sedan
förälder
incheckning
840623c822
2 ändrade filer med 5 tillägg och 3 borttagningar
  1. 3 2
      admin/control/ordersendlist.php
  2. 2 1
      admin/control/refill_order_manual.php

+ 3 - 2
admin/control/ordersendlist.php

@@ -14,9 +14,10 @@ class ordersendlistControl extends SystemControl
 
     private function time_cond($timeout_type,$card_type,$cur_time)
     {
-        $mintime_getter = function () {
+        $mintime_getter = function ()
+        {
             $mod = Model();
-            $item = $mod->table('refill_detail')->field('min(order_time) as mintime')->where(['order_time' => ['egt',time()-1 * 86400],'order_state'=>30])->find();
+            $item = $mod->table('refill_detail')->field('min(order_time) as mintime')->where(['order_time' => ['egt', time() - 1 * 86400], 'order_state' => 30])->find();
             if(empty($item)) {
                 return time() - 3600;
             }

+ 2 - 1
admin/control/refill_order_manual.php

@@ -3,6 +3,7 @@ require_once(BASE_HELPER_PATH . '/refill/util.php');
 require_once(BASE_HELPER_PATH . '/algorithm.php');
 
 use refill\util;
+use refill;
 
 class refill_order_manualControl extends SystemControl
 {
@@ -447,7 +448,7 @@ class refill_order_manualControl extends SystemControl
             $condition['refill_order.card_no'] = ['in', $card_nos];
         }
         $merchant_list = $this->merchants();
-        $transfer = new \refill\transfer();
+        $transfer = new refill\transfer();
         $mMchid2Infos = $transfer->transfers();
         $mchids = array_keys($mMchid2Infos);