|
@@ -438,6 +438,27 @@ class TestRefill extends TestCase
|
|
|
|
|
|
public function testFenshengPhone()
|
|
|
{
|
|
|
+ $file = BASE_HELPER_RAPI_PATH . "/qianqian/RefillPhone.php";
|
|
|
+ if(!file_exists($file)){
|
|
|
+ Log::record("provider api file={$file} not exist.",Log::DEBUG);
|
|
|
+ return false;
|
|
|
+ } else {
|
|
|
+ require_once($file);
|
|
|
+ Log::record("file={$file} load success.",Log::DEBUG);
|
|
|
+ }
|
|
|
+
|
|
|
+ $providers = new refill\qianqian\RefillPhone([]);
|
|
|
+ $resp = $providers->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]);
|
|
|
+// $resp = $providers->query(['order_sn' => '27511617764278021035']);
|
|
|
+// $datas = '[{"orderNo":"F2104071058069438461","status":"001","consumerNo":"27511617764278021035","voucherNo":"510490688023364042","mobile":"13699279618"}]';
|
|
|
+// $datas = json_decode($datas,true);
|
|
|
+// foreach ($datas as $data) {
|
|
|
+// refill\RefillFactory::instance()->notify('fensheng',$data);
|
|
|
+// }
|
|
|
+ }
|
|
|
+
|
|
|
+ public function testQianqianPhone()
|
|
|
+ {
|
|
|
$providers = new refill\fensheng\RefillPhone([]);
|
|
|
// $resp = $providers->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]);
|
|
|
$resp = $providers->query(['order_sn' => '27511617764278021035']);
|