stanley-king 3 gadi atpakaļ
vecāks
revīzija
6a162a5aee

+ 5 - 3
crontab/control/minutes.php

@@ -32,14 +32,12 @@ class minutesControl extends BaseCronControl
         $this->_cron_common([1,2,3,4,5,6,7]);
         $this->_fetch_order_unavaliable();
         $this->_check_merchant_alarm_amount();
-        $this->_refill_task();
         Log::record(__FUNCTION__ . " end",Log::DEBUG);
 
 //        $this->_web_index_update();
 //        $this->_check_merchant_alarm_amount();
 //        $this->check_refill_order_limit();
-
-//      $this->_cron_mail_send();
+//        $this->_cron_mail_send();
 //        $this->_SendOrderQuery();
     }
 
@@ -627,6 +625,7 @@ class minutesControl extends BaseCronControl
 
         return $cronid;
     }
+
     //查询超过5分钟的充值中订单
     public function _SendOrderQuery()
     {
@@ -642,6 +641,8 @@ class minutesControl extends BaseCronControl
         }
     }
 
+    //
+
     public function _refill_task(): bool
     {
         Log::record(__FUNCTION__,Log::DEBUG);
@@ -689,6 +690,7 @@ class minutesControl extends BaseCronControl
         } else {
             $model_refill_task->TaskDisposeErr($task_id, $task_result);
         }
+
         return true;
     }
 

+ 1 - 1
helper/refill/api/xyz/youhe/RefillCallBack.php

@@ -30,8 +30,8 @@ class RefillCallBack implements refill\IRefillCallBack
         if (empty($order_info)) {
             return [false, false, false,false];
         }
-        $order_id = $order_info['order_id'];
 
+        $order_id = $order_info['order_id'];
         if ($status === 'Q0000') {
             $data['official_sn'] = strtolower($params['transo']) == 'null' ? '' : $params['transo'];
             Model('refill_order')->edit($order_id, $data);

+ 8 - 4
helper/refill/api/xyz/youhe/RefillPhone.php

@@ -60,8 +60,8 @@ class RefillPhone extends refill\IRefillPhone
         $params['customerorder'] = $refill_info['order_sn'];
         $params['timestamp'] = $this->getMillisecond();
         $params['sign'] = $this->sign($params);
-        $params = json_encode($params);
 
+        $params = json_encode($params);
         $resp = http_post_data(config::QUERY_URL, $params , config::ExtHeaders);
 
         if (empty($resp)) {
@@ -73,7 +73,9 @@ class RefillPhone extends refill\IRefillPhone
             $resp = json_decode($resp, true);
             if (empty($resp)) {
                 return [false, '系统错误'];
-            } elseif ($resp['code'] === 'R0000') {
+            }
+            elseif ($resp['code'] === 'R0000')
+            {
                 $status = $resp['status'];
                 if ($status === 'Q0000') {
                     $updata['official_sn'] = $resp['transo'];
@@ -87,9 +89,11 @@ class RefillPhone extends refill\IRefillPhone
                     return [false, $status];
                 }
                 return [true, $order_state];
-            } elseif (in_array($resp['code'], ['R0011', 'R0012', 'R0018'], true)) {
+            }
+            elseif (in_array($resp['code'], ['R0011', 'R0012', 'R0018'], true)) {
                 return [true, ORDER_STATE_NOEXIST];
-            } else {
+            }
+            else {
                 return [false, $resp['msg']];
             }
         }