123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807 |
- <?php
- use PHPUnit\Framework\TestCase;
- define('APP_ID', 'test');
- define('BASE_ROOT_PATH', str_replace('/test', '', dirname(__FILE__)));
- require_once(BASE_ROOT_PATH . '/global.php');
- require_once(BASE_CORE_PATH . '/lrlz.php');
- require_once(BASE_ROOT_PATH . '/fooder.php');
- require_once(BASE_CORE_PATH . '/framework/function/http.php');
- require_once(BASE_HELPER_PATH . '/refill/RefillFactory.php');
- require_once(BASE_HELPER_PATH . '/mtopcard/mtopcard.php');
- const LocalTest = 1;
- const NetTest = 2;
- const CurrentTest = NetTest;
- class TestRefillYl extends TestCase
- {
- public function __construct(?string $name = null, array $data = [], $dataName = '')
- {
- parent::__construct($name, $data, $dataName);
- if (CurrentTest == LocalTest) {
- $this->mReqHost = BASE_SITE_URL;
- $this->mMchid = 1;
- $this->mKey = '1ff02223b771c0414468c8892151c602';
- } else {
- $this->mReqHost = 'https://ylapi.xyzshops.cn';
- $this->mMchid = 1092;
- $this->mKey = '210fe406954220f56085997d6a4c5b80';
- }
- }
- public static function setUpBeforeClass(): void
- {
- Base::run_util();
- refill\RefillFactory::instance();
- }
- private function getProvider($name,$type = 'RefillPhone')
- {
- $file = BASE_HELPER_RAPI_PATH . "/$name/{$type}.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);
- }
- $class_name = "refill\\{$name}\\{$type}";
- if (class_exists($class_name, false)) {
- $caller = new $class_name([]);
- return $caller;
- } else {
- $error = "Base Error: class {$class_name} isn't exists!";
- Log::record($error, Log::ERR);
- return false;
- }
- }
- public function testAddPhoe()
- {
- $url = $this->mReqHost . "/mobile/index.php";
- $params = ['mchid' => $this->mMchid,
- 'cardno' => '',
- 'amount' => 100,
- "act" => "refill",
- "op" => "add",
- 'order_sn' => '',
- 'notifyurl' => "https://www.baoyung.com/api/unionservice/yezicharge"];
- Log::record(json_encode($params), Log::DEBUG);
- // $resp = $this->send_md5($url, $params);
- }
- private function make_sn()
- {
- return mt_rand(1000, 9999)
- . sprintf('%010d', time())
- . sprintf('%06d', (float)microtime() * 1000000);
- }
- public function testYamiao_high()
- {
- // $provider = $this->getProvider('yamiao_high');
- // $resp = $provider->balance();
- // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]);
- // $resp = $provider->query(['order_sn' => '80031648092448376229']);
- $body = '{"orderId":"220324112752228331","appId":"ILo9IfHYg0","outOrderId":"80031648092448376229","sign":"1ef1ba02308669673ebcb136cb67e1c1","orderStatus":"3","completeTime":"20220324112803","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
- $params = json_decode($body, true);
- $provider = $this->getProvider('yamiao_high','RefillCallBack');
- $ret = $provider->verify($params);
- $resp = $provider->notify($params);
- }
- public function testYamiao_normal()
- {
- // $provider = $this->getProvider('yamiao_normal');
- // $resp = $provider->balance();
- // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]);
- // $resp = $provider->query(['order_sn' => '65931648092912669252']);
- $body = '{"orderId":"220324113519231696","appId":"Mxh2JUZocr","outOrderId":"65931648092912669252","sign":"6560cab5e7ec5f265b04632c4c2a1f1a","orderStatus":"3","completeTime":"20220324113522","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
- $params = json_decode($body, true);
- $provider = $this->getProvider('yamiao_normal','RefillCallBack');
- $ret = $provider->verify($params);
- $resp = $provider->notify($params);
- }
- public function testYamiaoman()
- {
- $provider = $this->getProvider('yamiaoman');
- $resp = $provider->balance();
- // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
- // $resp = $provider->query(['order_sn' => '53351647242979116742']);
- // $body = '{"orderId":"220314152954756093","appId":"zIODZmzSCk","outOrderId":"53351647242979116742","sign":"41ad7d4b4b26559377c6443d2b0d6c68","orderStatus":"3","completeTime":"20220314172722","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
- // $params = json_decode($body, true);
- // $provider = $this->getProvider('yamiaoman','RefillCallBack');
- // $ret = $provider->verify($params);
- // $resp = $provider->notify($params);
- }
- public function testGuantu()
- {
- // $provider = $this->getProvider('guantu');
- // $resp = $provider->balance();
- // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
- // $resp = $provider->query(['order_sn' => '59041648111767968756']);
- $body = ' {"orderId":"220324164934076577","appId":"t7gmui2D3w","outOrderId":"59041648111767968756","sign":"e957df33cfaa777cd3c2349cd2023996","orderStatus":"3","completeTime":"20220324165033","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
- $params = json_decode($body, true);
- $provider = $this->getProvider('guantu','RefillCallBack');
- $ret = $provider->verify($params);
- $resp = $provider->notify($params);
- }
- public function testLechong()
- {
- $provider = $this->getProvider('lechong');
- // $resp = $provider->balance();
- // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
- // $resp = $provider->query(['order_sn' => '65361648114672703928']);
- $body = '{"sellerid":"65361648114672703928","agentcode":"202203241556","account":"MTg1MDA2MDgzMzM=","value":"50","payvalue":"47.8000","voucher":"","createtime":"20220324173803","endtime":"20220324173857","state":"4","remark":"","time":"20220324174224","sign":"8a2c011095cadb6dc5abd00c25a11d1c"}';
- $params = json_decode($body, true);
- $provider = $this->getProvider('lechong','RefillCallBack');
- $ret = $provider->verify($params);
- $resp = $provider->notify($params);
- }
- public function testXinhengyangnew()
- {
- // $provider = $this->getProvider('xinhengyangnew');
- // $resp = $provider->balance();
- // $resp = $provider->add(13699279618, mtopcard\ChinaMobileCard, 30, ['order_sn' => $this->make_sn()]);
- // $resp = $provider->query(['order_sn' => '98351648200827982694']);
- $body = '{"mchid":"200065","msg":"充值失败","oid":"1000432223966","orderid":"98351648200827982694","price":"28.770","sign":"f3364cabace651f55f464aa5c6fa2d0b","status":"2","voucher":""}';
- $params = json_decode($body, true);
- $provider = $this->getProvider('xinhengyangnew', 'RefillCallBack');
- $ret = $provider->verify($params);
- $resp = $provider->notify($params);
- }
- public function testHuazhong()
- {
- $provider = $this->getProvider('huazhong');
- // $resp = $provider->balance();
- // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]);
- // $resp = $provider->query(['order_sn' => '85281648450617184602']);
- $body = '{"orderid":"SAD22032814599651058","sporderid":"85281648450617184602","userid":"10002823","merchantsubmittime":"20220328145958","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-28.59","sign":"C43F386C2804A71208E74FB336A600DA"}';
- $params = json_decode($body, true);
- $provider = $this->getProvider('huazhong','RefillCallBack');
- $ret = $provider->verify($params);
- $resp = $provider->notify($params);
- }
- public function testYouhenew()
- {
- // $provider = $this->getProvider('youhenew');
- // $resp = $provider->balance();
- // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]);
- // $resp = $provider->query(['order_sn' => '24941648452249459365']);
- $body = ' {"szOrderId":"24941648452249459365","fSalePrice":"28.74","szAgentId":"200039","nFlag":"3","szVerifyString":"57fa9c6232850f75841bee763d479dca","szPhoneNum":"13699279618","szRtnMsg":"","nDemo":"30"}';
- $params = json_decode($body, true);
- $provider = $this->getProvider('youhenew', 'RefillCallBack');
- $ret = $provider->verify($params);
- $resp = $provider->notify($params);
- }
- public function testLinzhu()
- {
- // $provider = $this->getProvider('linzhu');
- // $resp = $provider->balance();
- // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
- // $resp = $provider->query(['order_sn' => '84391648889914218946']);
- $body = '{"orderNo":"F2204021658518549406","status":"003","consumerNo":"84391648889914218946","voucherNo":null,"mobile":"18500608333"}';
- $params = json_decode($body, true);
- $provider = $this->getProvider('linzhu', 'RefillCallBack');
- $ret = $provider->verify($params);
- $data = $provider->notify($params);
- }
- public function testRuixunda()
- {
- // $provider = $this->getProvider('ruixunda');
- // $resp = $provider->balance();
- // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
- // $resp = $provider->query(['order_sn' => '33231648458371654420']);
- $body = '{"orderId":"220328170618202120","appId":"IvpY5p7PF2","outOrderId":"33231648458371654420","sign":"c28dda0d82efac178933e34465c6bf10","orderStatus":"3","completeTime":"20220328170623","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
- $params = json_decode($body, true);
- $provider = $this->getProvider('ruixunda', 'RefillCallBack');
- $ret = $provider->verify($params);
- $resp = $provider->notify($params);
- }
- public function testHangtong()
- {
- // $provider = $this->getProvider('hangtong');
- // $resp = $provider->balance();
- // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
- // $resp = $provider->query(['order_sn' => '74101648459089504352']);
- $body = '{"phone":"18500608333","orderNo":"F2203281718158019474","status":"fail","otherNo":"74101648459089504352","msg":"提交/充值失败","ext":null}';
- $params = json_decode($body, true);
- $provider = $this->getProvider('hangtong', 'RefillCallBack');
- $ret = $provider->verify($params);
- $resp = $provider->notify($params);
- }
- public function testRuixunda_lt()
- {
- // $provider = $this->getProvider('ruixunda_lt');
- // $resp = $provider->balance();
- // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
- // $resp = $provider->query(['order_sn' => '46111648526030456955']);
- $body = '{"orderId":"220329115433227387","appId":"Uue0cNoWpa","outOrderId":"46111648526030456955","sign":"10e5addeb793510c775acba893ffe293","orderStatus":"3","completeTime":"20220329115514","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
- $params = json_decode($body, true);
- $provider = $this->getProvider('ruixunda_lt', 'RefillCallBack');
- $ret = $provider->verify($params);
- $resp = $provider->notify($params);
- }
- public function testWangliantx()
- {
- // $provider = $this->getProvider('wangliantx');
- // $resp = $provider->balance();
- // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn(), 'regin_no' => 1]);
- // $resp = $provider->query(['order_sn' => '94661648534383050223']);
- $body = '{"userid":"10073945","sporderid":"94661648534383050223","orderid":"674A7408073BED1573945","resultno":"9","merchantsubmittime":"20220329141510","ordermoney":"28.53","verifystring":"29c7929b53beb1d67844edc6ecc7e84d","sign":"27dfda24686f696e8360c27922fc7ad1"}';
- $params = json_decode($body, true);
- $provider = $this->getProvider('wangliantx', 'RefillCallBack');
- $ret = $provider->verify($params);
- $resp = $provider->notify($params);
- }
- public function testXianghongrui()
- {
- // $provider = $this->getProvider('xianghongrui');
- // $resp = $provider->balance();
- // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
- // $resp = $provider->query(['order_sn' => '87461648535891960493']);
- $body = '{"orderid":"JTH22032914388095709","sporderid":"87461648535891960493","userid":"10002703","merchantsubmittime":"20220329143837","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-28.5","sign":"A2F64CAE7B37AE11D4F95468BC836EC0"}';
- $params = json_decode($body, true);
- $provider = $this->getProvider('xianghongrui', 'RefillCallBack');
- $ret = $provider->verify($params);
- $resp = $provider->notify($params);
- }
- public function testYunlingPhone()
- {
- // $provider = $this->getProvider('yunling');
- // $resp = $provider->balance();
- // $resp = $provider->add(18074608795, 6, 30, ['order_sn' => $this->make_sn()]);
- // $resp = $provider->query(['order_sn' => '77231648538773326953']);
- $body = '{"orderid":"LJQ22032915260029217","sporderid":"77231648538773326953","userid":"10003484","merchantsubmittime":"20220329152917","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-28.59","sign":"1CE276A68364C8B340B171EDB4A1383B"}';
- $params = json_decode($body, true);
- $provider = $this->getProvider('yunling', 'RefillCallBack');
- $ret = $provider->verify($params);
- $resp = $provider->notify($params);
- }
- public function testCangxin()
- {
- // $provider = $this->getProvider('cangxin');
- // $resp = $provider->balance();
- // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
- // $resp = $provider->query(['order_sn' => '51681648547830625598']);
- $body = ' {"sysOrderNo":"R1648547869045xQhULR1","clientId":"10046","verifyString":"c5c9a7cc0e6b4ce7146c3c49646ff17d","clientOrderNo":"51681648547830625598","status":"3"}';
- $params = json_decode($body, true);
- $provider = $this->getProvider('cangxin','RefillCallBack');
- $ret = $provider->verify($params);
- $resp = $provider->notify($params);
- }
- public function testCangxin_high()
- {
- $provider = $this->getProvider('cangxin_high');
- // $resp = $provider->balance();
- // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
- $resp = $provider->query(['order_sn' => '42631648622259046907']);
- // $body = '{"sysOrderNo":"R1648622681393At7McKz","clientId":"10047","verifyString":"e0df61027ee49fc91a39f329928100f3","clientOrderNo":"42631648622259046907","status":"3"}';
- // $params = json_decode($body, true);
- // $provider = $this->getProvider('cangxin_high','RefillCallBack');
- // $ret = $provider->verify($params);
- // $resp = $provider->notify($params);
- }
- public function testChizeng()
- {
- // $provider = $this->getProvider('chizeng');
- // $resp = $provider->balance();
- // $resp = $provider->add(18074608795, 6, 30, ['order_sn' => $this->make_sn()]);
- // $resp = $provider->query(['order_sn' => '72501648625275495598']);
- $body = '{"orderid":"ZEU22033015287999229","sporderid":"72501648625275495598","userid":"10003143","merchantsubmittime":"20220330153119","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-28.8","sign":"A051CB62898E9ECEF119CFD2B942E13B"}';
- $params = json_decode($body, true);
- $provider = $this->getProvider('chizeng','RefillCallBack');
- $ret = $provider->verify($params);
- $resp = $provider->notify($params);
- }
- public function testChizeng_normal()
- {
- // $provider = $this->getProvider('chizeng_normal');
- // $resp = $provider->balance();
- // $resp = $provider->add(18074608795, 6, 30, ['order_sn' => $this->make_sn()]);
- // $resp = $provider->query(['order_sn' => '22251648624513997615']);
- $body = '{"orderid":"TJR22033015167908033","sporderid":"22251648624513997615","userid":"10003144","merchantsubmittime":"20220330151906","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-28.59","sign":"F7B00BD73CB384F008116D2D6D573B90"}';
- $params = json_decode($body, true);
- $provider = $this->getProvider('chizeng_normal','RefillCallBack');
- $ret = $provider->verify($params);
- $resp = $provider->notify($params);
- }
- public function testZhenghe()
- {
- // $provider = $this->getProvider('zhenghe');
- // $resp = $provider->balance();
- // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
- // $resp = $provider->query(['order_sn' => '54051648695406464004']);
- $body = '{"szOrderId":"54051648695406464004","fSalePrice":"30.0","szAgentId":"200042","nFlag":"3","szVerifyString":"be8816cd62ad8a36334498ea12b6c86d","szPhoneNum":"18500608333","szRtnMsg":"","nDemo":"30"}';
- $params = json_decode($body, true);
- $provider = $this->getProvider('zhenghe','RefillCallBack');
- $ret = $provider->verify($params);
- $resp = $provider->notify($params);
- }
- public function testYilin()
- {
- // $provider = $this->getProvider('yilin');
- // $resp = $provider->balance();
- // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
- // $resp = $provider->query(['order_sn' => '76531648706723056884']);
- $body = '{"orderid":"PFJ22033114052380331","sporderid":"76531648706723056884","userid":"10002623","merchantsubmittime":"20220331140600","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-28.77","sign":"1FB68DFC9901A58BB1341CEFECFA15D0"}';
- $params = json_decode($body, true);
- $provider = $this->getProvider('yilin','RefillCallBack');
- $ret = $provider->verify($params);
- $resp = $provider->notify($params);
- }
- public function testHuoshenguo_high()
- {
- // $provider = $this->getProvider('huoshenguo_high');
- // $resp = $provider->balance();
- // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
- // $resp = $provider->query(['order_sn' => '12811648705888259160']);
- $body = '{"orderId":"220331135141084508","appId":"QBr2zmrWFD","outOrderId":"12811648705888259160","sign":"a386787a21c498b3004ec4b78060c5a2","orderStatus":"3","completeTime":"20220331135304","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
- $params = json_decode($body, true);
- $provider = $this->getProvider('huoshenguo_high', 'RefillCallBack');
- $ret = $provider->verify($params);
- $resp = $provider->notify($params);
- }
- public function testHuoshenguo()
- {
- $provider = $this->getProvider('huoshenguo');
- // $resp = $provider->balance();
- // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]);
- $resp = $provider->query(['order_sn' => '31891648711311837528']);
- // $body = '{"orderId":"220113125625000016","appId":"xaPOF8SAEG","outOrderId":"90691642049771400349","sign":"b00285a7eabef29b0a0ad400ce8a3ea0","orderStatus":"3","completeTime":"20220113125843","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
- // $params = json_decode($body, true);
- // $provider = $this->getProvider('huoshenguo', 'RefillCallBack');
- // $ret = $provider->verify($params);
- // $resp = $provider->notify($params);
- }
- public function testGuochuang()
- {
- $provider = $this->getProvider('guochuang');
- $resp = $provider->balance();
- }
- public function testGuochuang_nation()
- {
- $provider = $this->getProvider('guochuang_nation');
- $resp = $provider->balance();
- }
- public function testShuoruan()
- {
- $provider = $this->getProvider('shuoruan');
- $resp = $provider->balance();
- }
- public function testYunlingfs()
- {
- $provider = $this->getProvider('yunlingfs');
- $resp = $provider->balance();
- }
- public function testYunchonggong()
- {
- $provider = $this->getProvider('yunchonggong');
- $resp = $provider->balance();
- }
- public function testYunchonggongfs()
- {
- $provider = $this->getProvider('yunchonggongfs');
- $resp = $provider->balance();
- }
- public function testJianjiao()
- {
- $provider = $this->getProvider('jianjiao');
- $resp = $provider->balance();
- }
- public function testFeimingyunew()
- {
- $provider = $this->getProvider('feimingyunew');
- $resp = $provider->balance();
- }
- public function testNingying()
- {
- $provider = $this->getProvider('ningying');
- $resp = $provider->balance();
- }
- public function testNingying_normal()
- {
- $provider = $this->getProvider('ningying_normal');
- $resp = $provider->balance();
- }
- public function testXingzy_normal()
- {
- $provider = $this->getProvider('xingzy_normal');
- $resp = $provider->balance();
- }
- public function testDashang_normal()
- {
- $provider = $this->getProvider('dashang_normal');
- $resp = $provider->balance();
- }
- public function testYunsuoyao()
- {
- $provider = $this->getProvider('yunsuoyao');
- $resp = $provider->balance();
- }
- public function testYunsuoyaofs()
- {
- $provider = $this->getProvider('yunsuoyaofs');
- $resp = $provider->balance();
- }
- public function testTianchen()
- {
- $provider = $this->getProvider('tianchen');
- $resp = $provider->balance();
- }
- public function testTianchen_fs()
- {
- $provider = $this->getProvider('tianchen_fs');
- $resp = $provider->balance();
- }
- public function testZhongst()
- {
- $provider = $this->getProvider('zhongst');
- $resp = $provider->balance();
- }
- public function testDonye()
- {
- $provider = $this->getProvider('dongye');
- $resp = $provider->balance();
- }
- public function testDonyefs()
- {
- $provider = $this->getProvider('dongyefs');
- $resp = $provider->balance();
- }
- public function testYinghuochong()
- {
- $provider = $this->getProvider('yinghuochong');
- $resp = $provider->balance();
- }
- public function testMiaoxt()
- {
- $provider = $this->getProvider('miaoxt');
- $resp = $provider->balance();
- }
- public function testMiaoxt_fs()
- {
- $provider = $this->getProvider('miaoxt_fs');
- $resp = $provider->balance();
- }
- public function testYiqian()
- {
- $provider = $this->getProvider('yiqian');
- $resp = $provider->balance();
- }
- public function testWenye()
- {
- // $provider = $this->getProvider('wenye');
- // $resp = $provider->balance();
- // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
- // $resp = $provider->query(['order_sn' => '75831649382357605928']);
- $body = '{"orderNo":"F2204080946116661055","status":"019","consumerNo":"75831649382357605928","voucherNo":null,"mobile":"18500608333"}';
- $params = json_decode($body, true);
- $provider = $this->getProvider('wenye', 'RefillCallBack');
- $ret = $provider->verify($params);
- $data = $provider->notify($params);
- }
- public function testJinfeng()
- {
- // $provider = $this->getProvider('jinfeng');
- // $resp = $provider->balance();
- // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
- // $resp = $provider->query(['order_sn' => '63601649383025688678']);
- $body = '{"orderNo":"F2204080957259120259","status":"003","consumerNo":"63601649383025688678","voucherNo":"","mobile":"18500608333"}';
- $params = json_decode($body, true);
- $provider = $this->getProvider('jinfeng', 'RefillCallBack');
- $ret = $provider->verify($params);
- $data = $provider->notify($params);
- }
- public function testQianqian()
- {
- // $provider = $this->getProvider('qianqian');
- // $resp = $provider->balance();
- // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
- // $resp = $provider->query(['order_sn' => '32311649385385944534']);
- $body = '{"orderNo":"F2204081036326692716","status":"019","consumerNo":"32311649385385944534","voucherNo":null,"mobile":"18500608333"}';
- $params = json_decode($body, true);
- $provider = $this->getProvider('qianqian', 'RefillCallBack');
- $ret = $provider->verify($params);
- $data = $provider->notify($params);
- }
- public function testYuanta()
- {
- $provider = $this->getProvider('yuanta');
- $resp = $provider->balance();
- }
- public function testBaixuannew_normal()
- {
- $provider = $this->getProvider('baixuannew_normal');
- $resp = $provider->balance();
- }
- public function testBaixuannew_high()
- {
- $provider = $this->getProvider('baixuannew_high');
- $resp = $provider->balance();
- }
- public function testRuixundaman()
- {
- $provider = $this->getProvider('ruixundaman');
- $resp = $provider->balance();
- }
- public function testYouheman()
- {
- $provider = $this->getProvider('youheman');
- $resp = $provider->balance();
- }
- public function testLingzhman48()
- {
- $provider = $this->getProvider('lingzhman48');
- $resp = $provider->balance();
- }
- public function testHuoshenguoman()
- {
- $provider = $this->getProvider('huoshenguoman');
- $resp = $provider->balance();
- }
- public function testPengxinda()
- {
- $provider = $this->getProvider('pengxinda');
- $resp = $provider->balance();
- }
- public function testZhongst_mix()
- {
- $provider = $this->getProvider('zhongst_mix');
- $resp = $provider->balance();
- }
- public function testYunchonggongman()
- {
- $provider = $this->getProvider('yunchonggongman');
- $resp = $provider->balance();
- }
- public function testKailinyu()
- {
- $provider = $this->getProvider('kailinyu');
- $resp = $provider->balance();
- }
- public function testLingzhman()
- {
- $provider = $this->getProvider('lingzhman');
- $resp = $provider->balance();
- }
- public function testJike()
- {
- $provider = $this->getProvider('jike');
- $resp = $provider->balance();
- }
- public function testYingdian()
- {
- $provider = $this->getProvider('yingdian', 'RefillOil');
- $resp = $provider->balance();
- }
- public function testJumeng()
- {
- $provider = $this->getProvider('jumeng');
- $resp = $provider->balance();
- }
- public function testShantong()
- {
- $provider = $this->getProvider('shantong');
- $resp = $provider->balance();
- }
- public function testYunchonggong_yd()
- {
- $provider = $this->getProvider('yunchonggong_yd');
- $resp = $provider->balance();
- }
- public function testDonghong_high()
- {
- $provider = $this->getProvider('donghong_high');
- $resp = $provider->balance();
- }
- public function testDonghong_normal()
- {
- $provider = $this->getProvider('donghong_normal');
- $resp = $provider->balance();
- }
- public function testTongmai()
- {
- $provider = $this->getProvider('tongmai');
- $resp = $provider->balance();
- }
- public function testBodian()
- {
- $provider = $this->getProvider('bodian');
- $resp = $provider->balance();
- }
- public function testChizeng_yi()
- {
- $provider = $this->getProvider('chizeng_yi');
- $resp = $provider->balance();
- }
- public function testYuke()
- {
- $provider = $this->getProvider('yuke');
- $resp = $provider->balance();
- }
- public function testYuke_lt()
- {
- $provider = $this->getProvider('yuke_lt');
- $resp = $provider->balance();
- }
- public function testYuke_dx()
- {
- $provider = $this->getProvider('yuke_dx');
- $resp = $provider->balance();
- }
- public function testGuitong()
- {
- $provider = $this->getProvider('guitong');
- $resp = $provider->balance();
- }
- public function testGaobiao()
- {
- // $provider = $this->getProvider('gaobiao');
- // $resp = $provider->balance();
- // $resp = $provider->add(15136908757, 4, 10, ['order_sn' => $this->make_sn()]);
- // $resp = $provider->query(['order_sn' => '38761655707344654690']);
- $body = '{"seqid":"b41be0c9-bad7-4098-846a-0b8ba18501bf","state":3,"orderid":"38761655707344654690","desc":"成功","sign":"3387a08114bc35a3c64804f71cca851d","certificateNo":"","certificateType":""}';
- $params = json_decode($body, true);
- $provider = $this->getProvider('gaobiao','RefillCallBack');
- $ret = $provider->verify($params);
- $resp = $provider->notify($params);
- }
- public function testHuoshenguo_Yd()
- {
- $provider = $this->getProvider('huoshenguo_yd');
- $resp = $provider->balance();
- }
- public function testXinruiheng()
- {
- $provider = $this->getProvider('xinruiheng');
- $resp = $provider->balance();
- }
- public function testDezhi()
- {
- $provider = $this->getProvider('dezhi');
- $resp = $provider->balance();
- }
- public function testHuoshenguo_fs()
- {
- $provider = $this->getProvider('huoshenguo_fs');
- $resp = $provider->balance();
- }
- public function testXinruiheng_fs()
- {
- $provider = $this->getProvider('xinruiheng_fs');
- $resp = $provider->balance();
- }
- public function testZiyugui()
- {
- $provider = $this->getProvider('ziyugui');
- $resp = $provider->balance();
- }
- public function testGuiton_yi()
- {
- $provider = $this->getProvider('guitong_yi');
- $resp = $provider->balance();
- }
- public function testDazhanggui()
- {
- $provider = $this->getProvider('dazhanggui');
- $resp = $provider->balance();
- }
- }
|