ayHaru 4 年之前
父节点
当前提交
b11eb0308b
共有 1 个文件被更改,包括 6 次插入15 次删除
  1. 6 15
      test/TestRefill.php

+ 6 - 15
test/TestRefill.php

@@ -14,6 +14,8 @@ require_once(BASE_CORE_PATH . '/framework/function/http.php');
 require_once(BASE_HELPER_PATH . '/refill/RefillFactory.php');
 require_once(BASE_HELPER_PATH . '/refill/RefillFactory.php');
 require_once(BASE_HELPER_PATH . '/mtopcard/mtopcard.php');
 require_once(BASE_HELPER_PATH . '/mtopcard/mtopcard.php');
 
 
+require_once(BASE_HELPER_PATH . '/refill/zz/RefillOil.php');
+
 const LocalTest = 1;
 const LocalTest = 1;
 const NetTest = 2;
 const NetTest = 2;
 
 
@@ -82,23 +84,12 @@ class TestRefill extends TestCase
         }
         }
     }
     }
 
 
-    public function testRefillPhone()
+    public function testzzOil()
     {
     {
         global $config;
         global $config;
-        $providers = new \refill\bjb\RefillPhone($config['phone_providers']['bjb']);
-        $resp = $providers->add(18500608333, 5, 50, ['order_sn' => '200229600551218886']);
-
-        //{"ack":"success","message":{"order_number":13281474,"charged_amount":"48.750","shipping_status":"5","shipping_status_desc":"未发货"}}
-        //$_POST='{"order_number":13281474,"shipping_status":1,"shipping_status_desc":"已发货","shipping_status_message":"","sign":"05863f9931ed69a70e456222f057dfdd","voucher":"110103307162012081746340295254","vouchertype":"","voucherurl":"","tradeNo":"200649600557718888"}';
-        $params['order_number'] = 15566432;
-        $params['shipping_status'] = 1;
-        $params['shipping_status_desc'] = '已发货';
-        $params['shipping_status_message'] = '';
-        $params['sign'] = '53aaf3dee6b0dd17b081073a0df7019c';
-        $params['voucher'] = '110103307162012081746340295254';
-        $params['vouchertype'] = '';
-        $params['voucherurl'] = '';
-        $params['tradeNo'] = '200649600557718887';
+        $providers = new \refill\zz\RefillOil($config['oil_providers']['zz']);
+        $resp = $providers->add(1000111100021211884, 2, 100, ['order_sn' => '200229600551218886']);
+
 //        $ret = refill\RefillFactory::instance()->notify('beixt',$params);
 //        $ret = refill\RefillFactory::instance()->notify('beixt',$params);
     }
     }