TestRefillYl.php 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807
  1. <?php
  2. use PHPUnit\Framework\TestCase;
  3. define('APP_ID', 'test');
  4. define('BASE_ROOT_PATH', str_replace('/test', '', dirname(__FILE__)));
  5. require_once(BASE_ROOT_PATH . '/global.php');
  6. require_once(BASE_CORE_PATH . '/lrlz.php');
  7. require_once(BASE_ROOT_PATH . '/fooder.php');
  8. require_once(BASE_CORE_PATH . '/framework/function/http.php');
  9. require_once(BASE_HELPER_PATH . '/refill/RefillFactory.php');
  10. require_once(BASE_HELPER_PATH . '/mtopcard/mtopcard.php');
  11. const LocalTest = 1;
  12. const NetTest = 2;
  13. const CurrentTest = NetTest;
  14. class TestRefillYl extends TestCase
  15. {
  16. public function __construct(?string $name = null, array $data = [], $dataName = '')
  17. {
  18. parent::__construct($name, $data, $dataName);
  19. if (CurrentTest == LocalTest) {
  20. $this->mReqHost = BASE_SITE_URL;
  21. $this->mMchid = 1;
  22. $this->mKey = '1ff02223b771c0414468c8892151c602';
  23. } else {
  24. $this->mReqHost = 'https://ylapi.xyzshops.cn';
  25. $this->mMchid = 1092;
  26. $this->mKey = '210fe406954220f56085997d6a4c5b80';
  27. }
  28. }
  29. public static function setUpBeforeClass(): void
  30. {
  31. Base::run_util();
  32. refill\RefillFactory::instance();
  33. }
  34. private function getProvider($name,$type = 'RefillPhone')
  35. {
  36. $file = BASE_HELPER_RAPI_PATH . "/$name/{$type}.php";
  37. if(!file_exists($file)){
  38. Log::record("provider api file={$file} not exist.",Log::DEBUG);
  39. return false;
  40. } else {
  41. require_once($file);
  42. Log::record("file={$file} load success.",Log::DEBUG);
  43. }
  44. $class_name = "refill\\{$name}\\{$type}";
  45. if (class_exists($class_name, false)) {
  46. $caller = new $class_name([]);
  47. return $caller;
  48. } else {
  49. $error = "Base Error: class {$class_name} isn't exists!";
  50. Log::record($error, Log::ERR);
  51. return false;
  52. }
  53. }
  54. public function testAddPhoe()
  55. {
  56. $url = $this->mReqHost . "/mobile/index.php";
  57. $params = ['mchid' => $this->mMchid,
  58. 'cardno' => '',
  59. 'amount' => 100,
  60. "act" => "refill",
  61. "op" => "add",
  62. 'order_sn' => '',
  63. 'notifyurl' => "https://www.baoyung.com/api/unionservice/yezicharge"];
  64. Log::record(json_encode($params), Log::DEBUG);
  65. // $resp = $this->send_md5($url, $params);
  66. }
  67. private function make_sn()
  68. {
  69. return mt_rand(1000, 9999)
  70. . sprintf('%010d', time())
  71. . sprintf('%06d', (float)microtime() * 1000000);
  72. }
  73. public function testYamiao_high()
  74. {
  75. // $provider = $this->getProvider('yamiao_high');
  76. // $resp = $provider->balance();
  77. // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]);
  78. // $resp = $provider->query(['order_sn' => '80031648092448376229']);
  79. $body = '{"orderId":"220324112752228331","appId":"ILo9IfHYg0","outOrderId":"80031648092448376229","sign":"1ef1ba02308669673ebcb136cb67e1c1","orderStatus":"3","completeTime":"20220324112803","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
  80. $params = json_decode($body, true);
  81. $provider = $this->getProvider('yamiao_high','RefillCallBack');
  82. $ret = $provider->verify($params);
  83. $resp = $provider->notify($params);
  84. }
  85. public function testYamiao_normal()
  86. {
  87. // $provider = $this->getProvider('yamiao_normal');
  88. // $resp = $provider->balance();
  89. // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]);
  90. // $resp = $provider->query(['order_sn' => '65931648092912669252']);
  91. $body = '{"orderId":"220324113519231696","appId":"Mxh2JUZocr","outOrderId":"65931648092912669252","sign":"6560cab5e7ec5f265b04632c4c2a1f1a","orderStatus":"3","completeTime":"20220324113522","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
  92. $params = json_decode($body, true);
  93. $provider = $this->getProvider('yamiao_normal','RefillCallBack');
  94. $ret = $provider->verify($params);
  95. $resp = $provider->notify($params);
  96. }
  97. public function testYamiaoman()
  98. {
  99. $provider = $this->getProvider('yamiaoman');
  100. $resp = $provider->balance();
  101. // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
  102. // $resp = $provider->query(['order_sn' => '53351647242979116742']);
  103. // $body = '{"orderId":"220314152954756093","appId":"zIODZmzSCk","outOrderId":"53351647242979116742","sign":"41ad7d4b4b26559377c6443d2b0d6c68","orderStatus":"3","completeTime":"20220314172722","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
  104. // $params = json_decode($body, true);
  105. // $provider = $this->getProvider('yamiaoman','RefillCallBack');
  106. // $ret = $provider->verify($params);
  107. // $resp = $provider->notify($params);
  108. }
  109. public function testGuantu()
  110. {
  111. // $provider = $this->getProvider('guantu');
  112. // $resp = $provider->balance();
  113. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  114. // $resp = $provider->query(['order_sn' => '59041648111767968756']);
  115. $body = ' {"orderId":"220324164934076577","appId":"t7gmui2D3w","outOrderId":"59041648111767968756","sign":"e957df33cfaa777cd3c2349cd2023996","orderStatus":"3","completeTime":"20220324165033","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
  116. $params = json_decode($body, true);
  117. $provider = $this->getProvider('guantu','RefillCallBack');
  118. $ret = $provider->verify($params);
  119. $resp = $provider->notify($params);
  120. }
  121. public function testLechong()
  122. {
  123. $provider = $this->getProvider('lechong');
  124. // $resp = $provider->balance();
  125. // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
  126. // $resp = $provider->query(['order_sn' => '65361648114672703928']);
  127. $body = '{"sellerid":"65361648114672703928","agentcode":"202203241556","account":"MTg1MDA2MDgzMzM=","value":"50","payvalue":"47.8000","voucher":"","createtime":"20220324173803","endtime":"20220324173857","state":"4","remark":"","time":"20220324174224","sign":"8a2c011095cadb6dc5abd00c25a11d1c"}';
  128. $params = json_decode($body, true);
  129. $provider = $this->getProvider('lechong','RefillCallBack');
  130. $ret = $provider->verify($params);
  131. $resp = $provider->notify($params);
  132. }
  133. public function testXinhengyangnew()
  134. {
  135. // $provider = $this->getProvider('xinhengyangnew');
  136. // $resp = $provider->balance();
  137. // $resp = $provider->add(13699279618, mtopcard\ChinaMobileCard, 30, ['order_sn' => $this->make_sn()]);
  138. // $resp = $provider->query(['order_sn' => '98351648200827982694']);
  139. $body = '{"mchid":"200065","msg":"充值失败","oid":"1000432223966","orderid":"98351648200827982694","price":"28.770","sign":"f3364cabace651f55f464aa5c6fa2d0b","status":"2","voucher":""}';
  140. $params = json_decode($body, true);
  141. $provider = $this->getProvider('xinhengyangnew', 'RefillCallBack');
  142. $ret = $provider->verify($params);
  143. $resp = $provider->notify($params);
  144. }
  145. public function testHuazhong()
  146. {
  147. $provider = $this->getProvider('huazhong');
  148. // $resp = $provider->balance();
  149. // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]);
  150. // $resp = $provider->query(['order_sn' => '85281648450617184602']);
  151. $body = '{"orderid":"SAD22032814599651058","sporderid":"85281648450617184602","userid":"10002823","merchantsubmittime":"20220328145958","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-28.59","sign":"C43F386C2804A71208E74FB336A600DA"}';
  152. $params = json_decode($body, true);
  153. $provider = $this->getProvider('huazhong','RefillCallBack');
  154. $ret = $provider->verify($params);
  155. $resp = $provider->notify($params);
  156. }
  157. public function testYouhenew()
  158. {
  159. // $provider = $this->getProvider('youhenew');
  160. // $resp = $provider->balance();
  161. // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]);
  162. // $resp = $provider->query(['order_sn' => '24941648452249459365']);
  163. $body = ' {"szOrderId":"24941648452249459365","fSalePrice":"28.74","szAgentId":"200039","nFlag":"3","szVerifyString":"57fa9c6232850f75841bee763d479dca","szPhoneNum":"13699279618","szRtnMsg":"","nDemo":"30"}';
  164. $params = json_decode($body, true);
  165. $provider = $this->getProvider('youhenew', 'RefillCallBack');
  166. $ret = $provider->verify($params);
  167. $resp = $provider->notify($params);
  168. }
  169. public function testLinzhu()
  170. {
  171. // $provider = $this->getProvider('linzhu');
  172. // $resp = $provider->balance();
  173. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  174. // $resp = $provider->query(['order_sn' => '84391648889914218946']);
  175. $body = '{"orderNo":"F2204021658518549406","status":"003","consumerNo":"84391648889914218946","voucherNo":null,"mobile":"18500608333"}';
  176. $params = json_decode($body, true);
  177. $provider = $this->getProvider('linzhu', 'RefillCallBack');
  178. $ret = $provider->verify($params);
  179. $data = $provider->notify($params);
  180. }
  181. public function testRuixunda()
  182. {
  183. // $provider = $this->getProvider('ruixunda');
  184. // $resp = $provider->balance();
  185. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  186. // $resp = $provider->query(['order_sn' => '33231648458371654420']);
  187. $body = '{"orderId":"220328170618202120","appId":"IvpY5p7PF2","outOrderId":"33231648458371654420","sign":"c28dda0d82efac178933e34465c6bf10","orderStatus":"3","completeTime":"20220328170623","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
  188. $params = json_decode($body, true);
  189. $provider = $this->getProvider('ruixunda', 'RefillCallBack');
  190. $ret = $provider->verify($params);
  191. $resp = $provider->notify($params);
  192. }
  193. public function testHangtong()
  194. {
  195. // $provider = $this->getProvider('hangtong');
  196. // $resp = $provider->balance();
  197. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  198. // $resp = $provider->query(['order_sn' => '74101648459089504352']);
  199. $body = '{"phone":"18500608333","orderNo":"F2203281718158019474","status":"fail","otherNo":"74101648459089504352","msg":"提交/充值失败","ext":null}';
  200. $params = json_decode($body, true);
  201. $provider = $this->getProvider('hangtong', 'RefillCallBack');
  202. $ret = $provider->verify($params);
  203. $resp = $provider->notify($params);
  204. }
  205. public function testRuixunda_lt()
  206. {
  207. // $provider = $this->getProvider('ruixunda_lt');
  208. // $resp = $provider->balance();
  209. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  210. // $resp = $provider->query(['order_sn' => '46111648526030456955']);
  211. $body = '{"orderId":"220329115433227387","appId":"Uue0cNoWpa","outOrderId":"46111648526030456955","sign":"10e5addeb793510c775acba893ffe293","orderStatus":"3","completeTime":"20220329115514","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
  212. $params = json_decode($body, true);
  213. $provider = $this->getProvider('ruixunda_lt', 'RefillCallBack');
  214. $ret = $provider->verify($params);
  215. $resp = $provider->notify($params);
  216. }
  217. public function testWangliantx()
  218. {
  219. // $provider = $this->getProvider('wangliantx');
  220. // $resp = $provider->balance();
  221. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn(), 'regin_no' => 1]);
  222. // $resp = $provider->query(['order_sn' => '94661648534383050223']);
  223. $body = '{"userid":"10073945","sporderid":"94661648534383050223","orderid":"674A7408073BED1573945","resultno":"9","merchantsubmittime":"20220329141510","ordermoney":"28.53","verifystring":"29c7929b53beb1d67844edc6ecc7e84d","sign":"27dfda24686f696e8360c27922fc7ad1"}';
  224. $params = json_decode($body, true);
  225. $provider = $this->getProvider('wangliantx', 'RefillCallBack');
  226. $ret = $provider->verify($params);
  227. $resp = $provider->notify($params);
  228. }
  229. public function testXianghongrui()
  230. {
  231. // $provider = $this->getProvider('xianghongrui');
  232. // $resp = $provider->balance();
  233. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  234. // $resp = $provider->query(['order_sn' => '87461648535891960493']);
  235. $body = '{"orderid":"JTH22032914388095709","sporderid":"87461648535891960493","userid":"10002703","merchantsubmittime":"20220329143837","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-28.5","sign":"A2F64CAE7B37AE11D4F95468BC836EC0"}';
  236. $params = json_decode($body, true);
  237. $provider = $this->getProvider('xianghongrui', 'RefillCallBack');
  238. $ret = $provider->verify($params);
  239. $resp = $provider->notify($params);
  240. }
  241. public function testYunlingPhone()
  242. {
  243. // $provider = $this->getProvider('yunling');
  244. // $resp = $provider->balance();
  245. // $resp = $provider->add(18074608795, 6, 30, ['order_sn' => $this->make_sn()]);
  246. // $resp = $provider->query(['order_sn' => '77231648538773326953']);
  247. $body = '{"orderid":"LJQ22032915260029217","sporderid":"77231648538773326953","userid":"10003484","merchantsubmittime":"20220329152917","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-28.59","sign":"1CE276A68364C8B340B171EDB4A1383B"}';
  248. $params = json_decode($body, true);
  249. $provider = $this->getProvider('yunling', 'RefillCallBack');
  250. $ret = $provider->verify($params);
  251. $resp = $provider->notify($params);
  252. }
  253. public function testCangxin()
  254. {
  255. // $provider = $this->getProvider('cangxin');
  256. // $resp = $provider->balance();
  257. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  258. // $resp = $provider->query(['order_sn' => '51681648547830625598']);
  259. $body = ' {"sysOrderNo":"R1648547869045xQhULR1","clientId":"10046","verifyString":"c5c9a7cc0e6b4ce7146c3c49646ff17d","clientOrderNo":"51681648547830625598","status":"3"}';
  260. $params = json_decode($body, true);
  261. $provider = $this->getProvider('cangxin','RefillCallBack');
  262. $ret = $provider->verify($params);
  263. $resp = $provider->notify($params);
  264. }
  265. public function testCangxin_high()
  266. {
  267. $provider = $this->getProvider('cangxin_high');
  268. // $resp = $provider->balance();
  269. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  270. $resp = $provider->query(['order_sn' => '42631648622259046907']);
  271. // $body = '{"sysOrderNo":"R1648622681393At7McKz","clientId":"10047","verifyString":"e0df61027ee49fc91a39f329928100f3","clientOrderNo":"42631648622259046907","status":"3"}';
  272. // $params = json_decode($body, true);
  273. // $provider = $this->getProvider('cangxin_high','RefillCallBack');
  274. // $ret = $provider->verify($params);
  275. // $resp = $provider->notify($params);
  276. }
  277. public function testChizeng()
  278. {
  279. // $provider = $this->getProvider('chizeng');
  280. // $resp = $provider->balance();
  281. // $resp = $provider->add(18074608795, 6, 30, ['order_sn' => $this->make_sn()]);
  282. // $resp = $provider->query(['order_sn' => '72501648625275495598']);
  283. $body = '{"orderid":"ZEU22033015287999229","sporderid":"72501648625275495598","userid":"10003143","merchantsubmittime":"20220330153119","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-28.8","sign":"A051CB62898E9ECEF119CFD2B942E13B"}';
  284. $params = json_decode($body, true);
  285. $provider = $this->getProvider('chizeng','RefillCallBack');
  286. $ret = $provider->verify($params);
  287. $resp = $provider->notify($params);
  288. }
  289. public function testChizeng_normal()
  290. {
  291. // $provider = $this->getProvider('chizeng_normal');
  292. // $resp = $provider->balance();
  293. // $resp = $provider->add(18074608795, 6, 30, ['order_sn' => $this->make_sn()]);
  294. // $resp = $provider->query(['order_sn' => '22251648624513997615']);
  295. $body = '{"orderid":"TJR22033015167908033","sporderid":"22251648624513997615","userid":"10003144","merchantsubmittime":"20220330151906","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-28.59","sign":"F7B00BD73CB384F008116D2D6D573B90"}';
  296. $params = json_decode($body, true);
  297. $provider = $this->getProvider('chizeng_normal','RefillCallBack');
  298. $ret = $provider->verify($params);
  299. $resp = $provider->notify($params);
  300. }
  301. public function testZhenghe()
  302. {
  303. // $provider = $this->getProvider('zhenghe');
  304. // $resp = $provider->balance();
  305. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  306. // $resp = $provider->query(['order_sn' => '54051648695406464004']);
  307. $body = '{"szOrderId":"54051648695406464004","fSalePrice":"30.0","szAgentId":"200042","nFlag":"3","szVerifyString":"be8816cd62ad8a36334498ea12b6c86d","szPhoneNum":"18500608333","szRtnMsg":"","nDemo":"30"}';
  308. $params = json_decode($body, true);
  309. $provider = $this->getProvider('zhenghe','RefillCallBack');
  310. $ret = $provider->verify($params);
  311. $resp = $provider->notify($params);
  312. }
  313. public function testYilin()
  314. {
  315. // $provider = $this->getProvider('yilin');
  316. // $resp = $provider->balance();
  317. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  318. // $resp = $provider->query(['order_sn' => '76531648706723056884']);
  319. $body = '{"orderid":"PFJ22033114052380331","sporderid":"76531648706723056884","userid":"10002623","merchantsubmittime":"20220331140600","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-28.77","sign":"1FB68DFC9901A58BB1341CEFECFA15D0"}';
  320. $params = json_decode($body, true);
  321. $provider = $this->getProvider('yilin','RefillCallBack');
  322. $ret = $provider->verify($params);
  323. $resp = $provider->notify($params);
  324. }
  325. public function testHuoshenguo_high()
  326. {
  327. // $provider = $this->getProvider('huoshenguo_high');
  328. // $resp = $provider->balance();
  329. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  330. // $resp = $provider->query(['order_sn' => '12811648705888259160']);
  331. $body = '{"orderId":"220331135141084508","appId":"QBr2zmrWFD","outOrderId":"12811648705888259160","sign":"a386787a21c498b3004ec4b78060c5a2","orderStatus":"3","completeTime":"20220331135304","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
  332. $params = json_decode($body, true);
  333. $provider = $this->getProvider('huoshenguo_high', 'RefillCallBack');
  334. $ret = $provider->verify($params);
  335. $resp = $provider->notify($params);
  336. }
  337. public function testHuoshenguo()
  338. {
  339. $provider = $this->getProvider('huoshenguo');
  340. // $resp = $provider->balance();
  341. // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]);
  342. $resp = $provider->query(['order_sn' => '31891648711311837528']);
  343. // $body = '{"orderId":"220113125625000016","appId":"xaPOF8SAEG","outOrderId":"90691642049771400349","sign":"b00285a7eabef29b0a0ad400ce8a3ea0","orderStatus":"3","completeTime":"20220113125843","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
  344. // $params = json_decode($body, true);
  345. // $provider = $this->getProvider('huoshenguo', 'RefillCallBack');
  346. // $ret = $provider->verify($params);
  347. // $resp = $provider->notify($params);
  348. }
  349. public function testGuochuang()
  350. {
  351. $provider = $this->getProvider('guochuang');
  352. $resp = $provider->balance();
  353. }
  354. public function testGuochuang_nation()
  355. {
  356. $provider = $this->getProvider('guochuang_nation');
  357. $resp = $provider->balance();
  358. }
  359. public function testShuoruan()
  360. {
  361. $provider = $this->getProvider('shuoruan');
  362. $resp = $provider->balance();
  363. }
  364. public function testYunlingfs()
  365. {
  366. $provider = $this->getProvider('yunlingfs');
  367. $resp = $provider->balance();
  368. }
  369. public function testYunchonggong()
  370. {
  371. $provider = $this->getProvider('yunchonggong');
  372. $resp = $provider->balance();
  373. }
  374. public function testYunchonggongfs()
  375. {
  376. $provider = $this->getProvider('yunchonggongfs');
  377. $resp = $provider->balance();
  378. }
  379. public function testJianjiao()
  380. {
  381. $provider = $this->getProvider('jianjiao');
  382. $resp = $provider->balance();
  383. }
  384. public function testFeimingyunew()
  385. {
  386. $provider = $this->getProvider('feimingyunew');
  387. $resp = $provider->balance();
  388. }
  389. public function testNingying()
  390. {
  391. $provider = $this->getProvider('ningying');
  392. $resp = $provider->balance();
  393. }
  394. public function testNingying_normal()
  395. {
  396. $provider = $this->getProvider('ningying_normal');
  397. $resp = $provider->balance();
  398. }
  399. public function testXingzy_normal()
  400. {
  401. $provider = $this->getProvider('xingzy_normal');
  402. $resp = $provider->balance();
  403. }
  404. public function testDashang_normal()
  405. {
  406. $provider = $this->getProvider('dashang_normal');
  407. $resp = $provider->balance();
  408. }
  409. public function testYunsuoyao()
  410. {
  411. $provider = $this->getProvider('yunsuoyao');
  412. $resp = $provider->balance();
  413. }
  414. public function testYunsuoyaofs()
  415. {
  416. $provider = $this->getProvider('yunsuoyaofs');
  417. $resp = $provider->balance();
  418. }
  419. public function testTianchen()
  420. {
  421. $provider = $this->getProvider('tianchen');
  422. $resp = $provider->balance();
  423. }
  424. public function testTianchen_fs()
  425. {
  426. $provider = $this->getProvider('tianchen_fs');
  427. $resp = $provider->balance();
  428. }
  429. public function testZhongst()
  430. {
  431. $provider = $this->getProvider('zhongst');
  432. $resp = $provider->balance();
  433. }
  434. public function testDonye()
  435. {
  436. $provider = $this->getProvider('dongye');
  437. $resp = $provider->balance();
  438. }
  439. public function testDonyefs()
  440. {
  441. $provider = $this->getProvider('dongyefs');
  442. $resp = $provider->balance();
  443. }
  444. public function testYinghuochong()
  445. {
  446. $provider = $this->getProvider('yinghuochong');
  447. $resp = $provider->balance();
  448. }
  449. public function testMiaoxt()
  450. {
  451. $provider = $this->getProvider('miaoxt');
  452. $resp = $provider->balance();
  453. }
  454. public function testMiaoxt_fs()
  455. {
  456. $provider = $this->getProvider('miaoxt_fs');
  457. $resp = $provider->balance();
  458. }
  459. public function testYiqian()
  460. {
  461. $provider = $this->getProvider('yiqian');
  462. $resp = $provider->balance();
  463. }
  464. public function testWenye()
  465. {
  466. // $provider = $this->getProvider('wenye');
  467. // $resp = $provider->balance();
  468. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  469. // $resp = $provider->query(['order_sn' => '75831649382357605928']);
  470. $body = '{"orderNo":"F2204080946116661055","status":"019","consumerNo":"75831649382357605928","voucherNo":null,"mobile":"18500608333"}';
  471. $params = json_decode($body, true);
  472. $provider = $this->getProvider('wenye', 'RefillCallBack');
  473. $ret = $provider->verify($params);
  474. $data = $provider->notify($params);
  475. }
  476. public function testJinfeng()
  477. {
  478. // $provider = $this->getProvider('jinfeng');
  479. // $resp = $provider->balance();
  480. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  481. // $resp = $provider->query(['order_sn' => '63601649383025688678']);
  482. $body = '{"orderNo":"F2204080957259120259","status":"003","consumerNo":"63601649383025688678","voucherNo":"","mobile":"18500608333"}';
  483. $params = json_decode($body, true);
  484. $provider = $this->getProvider('jinfeng', 'RefillCallBack');
  485. $ret = $provider->verify($params);
  486. $data = $provider->notify($params);
  487. }
  488. public function testQianqian()
  489. {
  490. // $provider = $this->getProvider('qianqian');
  491. // $resp = $provider->balance();
  492. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  493. // $resp = $provider->query(['order_sn' => '32311649385385944534']);
  494. $body = '{"orderNo":"F2204081036326692716","status":"019","consumerNo":"32311649385385944534","voucherNo":null,"mobile":"18500608333"}';
  495. $params = json_decode($body, true);
  496. $provider = $this->getProvider('qianqian', 'RefillCallBack');
  497. $ret = $provider->verify($params);
  498. $data = $provider->notify($params);
  499. }
  500. public function testYuanta()
  501. {
  502. $provider = $this->getProvider('yuanta');
  503. $resp = $provider->balance();
  504. }
  505. public function testBaixuannew_normal()
  506. {
  507. $provider = $this->getProvider('baixuannew_normal');
  508. $resp = $provider->balance();
  509. }
  510. public function testBaixuannew_high()
  511. {
  512. $provider = $this->getProvider('baixuannew_high');
  513. $resp = $provider->balance();
  514. }
  515. public function testRuixundaman()
  516. {
  517. $provider = $this->getProvider('ruixundaman');
  518. $resp = $provider->balance();
  519. }
  520. public function testYouheman()
  521. {
  522. $provider = $this->getProvider('youheman');
  523. $resp = $provider->balance();
  524. }
  525. public function testLingzhman48()
  526. {
  527. $provider = $this->getProvider('lingzhman48');
  528. $resp = $provider->balance();
  529. }
  530. public function testHuoshenguoman()
  531. {
  532. $provider = $this->getProvider('huoshenguoman');
  533. $resp = $provider->balance();
  534. }
  535. public function testPengxinda()
  536. {
  537. $provider = $this->getProvider('pengxinda');
  538. $resp = $provider->balance();
  539. }
  540. public function testZhongst_mix()
  541. {
  542. $provider = $this->getProvider('zhongst_mix');
  543. $resp = $provider->balance();
  544. }
  545. public function testYunchonggongman()
  546. {
  547. $provider = $this->getProvider('yunchonggongman');
  548. $resp = $provider->balance();
  549. }
  550. public function testKailinyu()
  551. {
  552. $provider = $this->getProvider('kailinyu');
  553. $resp = $provider->balance();
  554. }
  555. public function testLingzhman()
  556. {
  557. $provider = $this->getProvider('lingzhman');
  558. $resp = $provider->balance();
  559. }
  560. public function testJike()
  561. {
  562. $provider = $this->getProvider('jike');
  563. $resp = $provider->balance();
  564. }
  565. public function testYingdian()
  566. {
  567. $provider = $this->getProvider('yingdian', 'RefillOil');
  568. $resp = $provider->balance();
  569. }
  570. public function testJumeng()
  571. {
  572. $provider = $this->getProvider('jumeng');
  573. $resp = $provider->balance();
  574. }
  575. public function testShantong()
  576. {
  577. $provider = $this->getProvider('shantong');
  578. $resp = $provider->balance();
  579. }
  580. public function testYunchonggong_yd()
  581. {
  582. $provider = $this->getProvider('yunchonggong_yd');
  583. $resp = $provider->balance();
  584. }
  585. public function testDonghong_high()
  586. {
  587. $provider = $this->getProvider('donghong_high');
  588. $resp = $provider->balance();
  589. }
  590. public function testDonghong_normal()
  591. {
  592. $provider = $this->getProvider('donghong_normal');
  593. $resp = $provider->balance();
  594. }
  595. public function testTongmai()
  596. {
  597. $provider = $this->getProvider('tongmai');
  598. $resp = $provider->balance();
  599. }
  600. public function testBodian()
  601. {
  602. $provider = $this->getProvider('bodian');
  603. $resp = $provider->balance();
  604. }
  605. public function testChizeng_yi()
  606. {
  607. $provider = $this->getProvider('chizeng_yi');
  608. $resp = $provider->balance();
  609. }
  610. public function testYuke()
  611. {
  612. $provider = $this->getProvider('yuke');
  613. $resp = $provider->balance();
  614. }
  615. public function testYuke_lt()
  616. {
  617. $provider = $this->getProvider('yuke_lt');
  618. $resp = $provider->balance();
  619. }
  620. public function testYuke_dx()
  621. {
  622. $provider = $this->getProvider('yuke_dx');
  623. $resp = $provider->balance();
  624. }
  625. public function testGuitong()
  626. {
  627. $provider = $this->getProvider('guitong');
  628. $resp = $provider->balance();
  629. }
  630. public function testGaobiao()
  631. {
  632. // $provider = $this->getProvider('gaobiao');
  633. // $resp = $provider->balance();
  634. // $resp = $provider->add(15136908757, 4, 10, ['order_sn' => $this->make_sn()]);
  635. // $resp = $provider->query(['order_sn' => '38761655707344654690']);
  636. $body = '{"seqid":"b41be0c9-bad7-4098-846a-0b8ba18501bf","state":3,"orderid":"38761655707344654690","desc":"成功","sign":"3387a08114bc35a3c64804f71cca851d","certificateNo":"","certificateType":""}';
  637. $params = json_decode($body, true);
  638. $provider = $this->getProvider('gaobiao','RefillCallBack');
  639. $ret = $provider->verify($params);
  640. $resp = $provider->notify($params);
  641. }
  642. public function testHuoshenguo_Yd()
  643. {
  644. $provider = $this->getProvider('huoshenguo_yd');
  645. $resp = $provider->balance();
  646. }
  647. public function testXinruiheng()
  648. {
  649. $provider = $this->getProvider('xinruiheng');
  650. $resp = $provider->balance();
  651. }
  652. public function testDezhi()
  653. {
  654. $provider = $this->getProvider('dezhi');
  655. $resp = $provider->balance();
  656. }
  657. public function testHuoshenguo_fs()
  658. {
  659. $provider = $this->getProvider('huoshenguo_fs');
  660. $resp = $provider->balance();
  661. }
  662. public function testXinruiheng_fs()
  663. {
  664. $provider = $this->getProvider('xinruiheng_fs');
  665. $resp = $provider->balance();
  666. }
  667. public function testZiyugui()
  668. {
  669. $provider = $this->getProvider('ziyugui');
  670. $resp = $provider->balance();
  671. }
  672. public function testGuiton_yi()
  673. {
  674. $provider = $this->getProvider('guitong_yi');
  675. $resp = $provider->balance();
  676. }
  677. public function testDazhanggui()
  678. {
  679. $provider = $this->getProvider('dazhanggui');
  680. $resp = $provider->balance();
  681. }
  682. }