stanley-king před 4 roky
rodič
revize
54de6718e7

+ 1 - 0
helper/refill/policy/quaility.php

@@ -67,6 +67,7 @@ class Quality
         }
 
         $max_times = $this->mSpeeds[$org]['retry_times'];
+        Log::record("find_quality: 1 find org={$org} qualitys=" . implode(',',$qualities),Log::DEBUG);
         $qualities = $this->calc_quality($qualities,$times,$used_time,$time_out,$max_times);
 
         Log::record("find_quality: find org={$org} qualitys=" . implode(',',$qualities),Log::DEBUG);

+ 3 - 4
rdispatcher/proxy.php

@@ -1,10 +1,10 @@
 <?php
 
-use refill;
-use mtopcard;
-
 require_once (BASE_ROOT_PATH . '/helper/model_helper.php');
 
+use mtopcard;
+use refill;
+
 class proxy
 {
     const max_retry = 5;
@@ -59,7 +59,6 @@ class proxy
         }
 
         Log::record("proxy::add 3" ,Log::DEBUG);
-
         [$errcode, $errmsg, $order_id, $neterr] = refill\RefillFactory::instance()->add($mchid, $buyer_id, $amount, $card_no,
             $mch_order, $idcard, $card_name, $notify_url, $quality,$org_quality,
             $order_time, $commit_times, $last_order_id,$card_type);

+ 4 - 4
test/TestDispatcher.php

@@ -100,15 +100,15 @@ class TestDispatcher extends TestCase
 
     private function make_order()
     {
-//        $mchid = 1092;//
-        $mchid = $this->mMchid;
+        $mchid = 1092;//
+//        $mchid = $this->mMchid;
         $mchinfo = Model('merchant')->getMerchantInfo(['mchid' => $mchid]);
         $buyer_id = intval($mchinfo['admin_id']);
 
         $params = [ 'mchid' => $mchid,
             'buyer_id' => $buyer_id,
-            'amount' => 10,
-            'card_no' => 18257939501,
+            'amount' => 100,
+            'card_no' => 15120035568,
             'mch_order' => $this->make_sn(),
             'notify_url' => 'https://www.xyzshops.cn/mobile/signature.php'];