|
@@ -360,8 +360,11 @@ class TestRefill extends TestCase
|
|
public function testMoxj_fsPhone()
|
|
public function testMoxj_fsPhone()
|
|
{
|
|
{
|
|
$providers = new refill\moxj_fs\RefillPhone([]);
|
|
$providers = new refill\moxj_fs\RefillPhone([]);
|
|
- $resp = $providers->add(15139608757, 4, 50, ['order_sn' => $this->make_sn()]);
|
|
|
|
-// $resp = $providers->query(['order_sn' => '91131623906171663147']);
|
|
|
|
|
|
+// $resp = $providers->add(15139608757, 4, 100, ['order_sn' => $this->make_sn()]);
|
|
|
|
+ $resp = $providers->query(['order_sn' => '42741624242693157165']);
|
|
|
|
+ $data = '{"amount":"100","charge_type":"2","code":"1","partner_id":"58","phone":"15139608757","sign":"30d193dba4101e50851ed0efabb75fb1","partner_order_no":"42741624242693157165","official_order_id":"20210621103211948830"}';
|
|
|
|
+ $params = json_decode($data , true);
|
|
|
|
+// refill\RefillFactory::instance()->notify('moxj_fs',$params);
|
|
}
|
|
}
|
|
|
|
|
|
public function testZanzanquickPhone()
|
|
public function testZanzanquickPhone()
|
|
@@ -1213,13 +1216,12 @@ class TestRefill extends TestCase
|
|
public function testCtSign()
|
|
public function testCtSign()
|
|
{
|
|
{
|
|
$params['act'] = 'refill';
|
|
$params['act'] = 'refill';
|
|
- $params['mchid'] = 10138;
|
|
|
|
|
|
+ $params['amount'] = 1;
|
|
|
|
+ $params['cardno'] = 18888888888;
|
|
|
|
+ $params['mchid'] = 1101;
|
|
$params['op'] = 'add';
|
|
$params['op'] = 'add';
|
|
- $params['amount'] = 10;
|
|
|
|
- $params['cardno'] = 18736009728;
|
|
|
|
- $params['notifyurl'] = 'http://202.85.213.155:8080/YeZiYKCallBackOrderServlet';
|
|
|
|
- $params['quality'] = 5;
|
|
|
|
- $params['order_sn'] = 'jftest0000125';
|
|
|
|
|
|
+ $params['notifyurl'] = '';
|
|
|
|
+ $params['order_sn'] = '1231212';
|
|
$sign = $this->md5_sign($params);
|
|
$sign = $this->md5_sign($params);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1240,7 +1242,7 @@ class TestRefill extends TestCase
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- $body .= "&key=678171AEDF2FD00FDE5FAC6211FF2AE5";
|
|
|
|
|
|
+ $body .= "&key=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
|
|
|
|
|
|
return md5($body);
|
|
return md5($body);
|
|
}
|
|
}
|