TestRefill.php 179 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788
  1. <?php
  2. use PHPUnit\Framework\TestCase;
  3. use const mtopcard\ProvinceList;
  4. define('APP_ID', 'test');
  5. define('BASE_ROOT_PATH', str_replace('/test', '', dirname(__FILE__)));
  6. require_once(BASE_ROOT_PATH . '/global.php');
  7. require_once(BASE_CORE_PATH . '/lrlz.php');
  8. require_once(BASE_ROOT_PATH . '/fooder.php');
  9. require_once(BASE_CORE_PATH . '/framework/function/http.php');
  10. require_once(BASE_HELPER_PATH . '/refill/RefillFactory.php');
  11. require_once(BASE_HELPER_PATH . '/mtopcard/mtopcard.php');
  12. const LocalTest = 1;
  13. const NetTest = 2;
  14. const CurrentTest = NetTest;
  15. class TestRefill extends TestCase
  16. {
  17. private $mReqHost;
  18. private $mKey;
  19. private $mMchid;
  20. public function __construct(?string $name = null, array $data = [], $dataName = '')
  21. {
  22. parent::__construct($name, $data, $dataName);
  23. if (CurrentTest == LocalTest) {
  24. $this->mReqHost = BASE_SITE_URL;
  25. $this->mMchid = 1;
  26. $this->mKey = '1ff02223b771c0414468c8892151c602';
  27. } else {
  28. $this->mReqHost = 'https://www.xyzshops.cn';
  29. // $this->mReqHost = 'http://121.89.196.45';
  30. $this->mMchid = 1092;
  31. $this->mKey = '210fe406954220f56085997d6a4c5b80';
  32. }
  33. }
  34. public function testIsDay()
  35. {
  36. $ret = refill\functional::isDay();
  37. }
  38. public static function setUpBeforeClass(): void
  39. {
  40. Base::run_util();
  41. refill\RefillFactory::instance();
  42. }
  43. public function testMerchantPrice()
  44. {
  45. $price = new refill\merchant_price();
  46. }
  47. public function testCallBack()
  48. {
  49. $params = [
  50. "mchid" => 10193,
  51. "order_sn" => 'open1632462013152110599086',
  52. "amount" => '100.0000',//intval($refill_info['refill_amount'] + 0.05),
  53. "cardno" => 18505101761,
  54. "trade_no" => '4034130685806092699201',
  55. "idcard" => $refill_info['idcard'] ?? "",
  56. "card_name" => $refill_info['card_name'] ?? "",
  57. 'official_sn' => '110103353072109241341340249560',
  58. 'message' => '',
  59. "state" => 'SUCCESS'
  60. ];
  61. $params['sign'] = $this->md5_sign($params, '0a845c18fbefaa121f36169ab8c880f3');
  62. $notify_url = 'http://v3.biyingniao.com/web/yezi/v2/straight_url?from=equityOpen';
  63. $resp = http_request($notify_url, $params, 'POST');
  64. }
  65. public function testFactory()
  66. {
  67. $provider = refill\RefillFactory::instance();
  68. }
  69. private function make_sn()
  70. {
  71. return mt_rand(1000, 9999)
  72. . sprintf('%010d', time())
  73. . sprintf('%06d', (float)microtime() * 1000000);
  74. }
  75. public function testRandomMobile()
  76. {
  77. $no = "1" . mt_rand(1, 9999999999);
  78. Log::record("phone no={$no}", Log::DEBUG);
  79. }
  80. public function testBJBAddPhone()
  81. {
  82. $provider = new refill\bjb\RefillPhone([]);
  83. for ($i = 3; $i > 0; --$i) {
  84. $resp = $provider->add(13911129867, 4, 10, ['order_sn' => $this->make_sn()]);
  85. $resp = $provider->add(18500608333, 4, 10, ['order_sn' => $this->make_sn()]);
  86. $resp = $provider->add(18510683168, 4, 10, ['order_sn' => $this->make_sn()]);
  87. $resp = $provider->add(18513846008, 4, 10, ['order_sn' => $this->make_sn()]);
  88. $resp = $provider->add(18518237398, 4, 10, ['order_sn' => $this->make_sn()]);
  89. }
  90. }
  91. public function testOilticket()
  92. {
  93. $provider = new refill\bjb\RefillPhone([]);
  94. }
  95. public function testBjbRet()
  96. {
  97. $resp = '0|提交成功|14936.8600';
  98. $resp = explode('|', $resp);
  99. }
  100. public function testIpWhiteList()
  101. {
  102. $x = serialize(['47.99.57.105']);
  103. $ips = unserialize('a:1:{i:0;s:12:"47.99.57.105";}');
  104. if (!empty($ips)) {
  105. $addr = '47.99.57.105';
  106. Log::record("request ip:{$addr}", Log::DEBUG);
  107. if (!in_array($addr, $ips)) {
  108. throw new Exception("请求地址不在白名单中");
  109. }
  110. }
  111. }
  112. public function testBaizePhone()
  113. {
  114. $provider = new refill\baizeyd\RefillPhone([]);
  115. // $resp = $provider->add(17801048874, 5, 10, ['order_sn' => $this->make_sn()]);
  116. $resp = $provider->query(['order_sn' => '930668700375312006']);
  117. // $str = 'amount=10.00&orderId=720668384771999671&phone=13911129867&payTime=2021-03-06+22%3A26%3A12&sign=94dfe83221f7768650e70cce08879b60&appKey=uECmTOFAY6RPCTtI&payUrl=&statusDes=%E6%94%AF%E4%BB%98%E5%A4%B1%E8%B4%A5&status=7';
  118. // $input = $this->parse_request($str);
  119. // $input['amount'] = 10.00;
  120. // $input['orderId'] = '92391614943913061206';
  121. // $input['phone'] = 17801048874;
  122. // $input['payTime'] = '2021-03-05 19:31:55';
  123. // $input['sign'] = 'bef6ae50319fb1e8cb3f21302f0abef8';
  124. // $input['appKey'] = 'uECmTOFAY6RPCTtI';
  125. // $input['payUrl'] = '';
  126. // $input['statusDes'] = '支付失败';
  127. // $input['status'] = 7;
  128. // refill\RefillFactory::instance()->notify('baizeyd',$input);
  129. }
  130. private function parse_request($squery)
  131. {
  132. if (empty($squery)) return [];
  133. $result = [];
  134. $params = preg_split('/&/', $squery);
  135. foreach ($params as $pair) {
  136. if (empty($pair)) continue;
  137. $kv = explode('=', $pair);
  138. $count = count($kv);
  139. if ($count === 1) {
  140. $key = $kv[0];
  141. $val = "";
  142. } elseif ($count === 2) {
  143. $key = $kv[0];
  144. $val = urldecode($kv[1]);
  145. } else {
  146. continue;
  147. }
  148. if (!empty($key)) {
  149. $result[$key] = $val;
  150. }
  151. }
  152. return $result;
  153. }
  154. public function testAmPhone()
  155. {
  156. // $provider = new refill\aming\RefillPhone([]);
  157. // $resp = $provider->add(18500608333, 5, 10, ['order_sn' => $this->make_sn()]);
  158. $input['result'] = 'fail';
  159. $input['msg'] = 0;
  160. $input['order'] = 'null';
  161. $input['phone_no'] = 18500608333;
  162. $input['sign'] = 'c925ad19c63c3eb36ffc52d938e24604';
  163. $input['amount'] = '10.00';
  164. $input['op_no'] = '42601615096072517841';
  165. refill\RefillFactory::instance()->notify('aming', $input);
  166. }
  167. public function testBhcPhone()
  168. {
  169. $provider = new refill\binghc\RefillPhone([]);
  170. $resp = $provider->query(['order_sn' => 250668618955902006]);
  171. // $input['result'] = 'fail';
  172. // $input['msg'] = 0;
  173. // $input['order'] = 'null';
  174. // $input['phone_no'] = 18500608333;
  175. // $input['sign'] = 'c3aa38ee07cd1b69bfd5ead56f6da8d6';
  176. // $input['amount'] = '10.00';
  177. // $input['op_no'] = '24061615096361999002';
  178. // refill\RefillFactory::instance()->notify('binghc',$input);
  179. }
  180. public function testRuishunPhone()
  181. {
  182. // $provider = new refill\ruishun\RefillPhone([]);
  183. // $resp = $provider->add(18500608333, 5, 10, ['order_sn' => $this->make_sn()]);
  184. $input['result'] = 'fail';
  185. $input['msg'] = 0;
  186. $input['order'] = null;
  187. $input['phone_no'] = 18500608333;
  188. $input['sign'] = 'e234f7d1c0458ca236f53a0008436b46';
  189. $input['amount'] = "10.00";
  190. $input['op_no'] = '76361615095403188513';
  191. refill\RefillFactory::instance()->notify('ruishun', $input);
  192. }
  193. public function testWuchenPhone()
  194. {
  195. $provider = new refill\wuchen\RefillPhone([]);
  196. // $resp = $provider->add('13699279618', 5, 30, ['order_sn' => $this->make_sn()]);
  197. $resp = $provider->query(['order_sn' => '790668630498425006']);
  198. // $input['app_id'] = '70016';
  199. // $input['message'] = 'fail';
  200. // $input['order_sn'] = '43101615277293035501';
  201. // $input['platform_order_id'] = '';
  202. // $input['sign'] = '5ea59f8ac51a518f2c622824d7db2a04';
  203. // $input['state'] = "fail";
  204. // $input['sys_sn'] = '202103091608231836913889';
  205. // $input['timestamp'] = '1615277361';
  206. // refill\RefillFactory::instance()->notify('wuchen',$input);
  207. }
  208. public function testYibaoPhone()
  209. {
  210. $provider = new refill\yibao\RefillPhone([]);
  211. // $resp = $provider->add('13699279618', 5, 30, ['order_sn' => $this->make_sn()]);
  212. $resp = $provider->query(['ch_trade_no' => '31215002972142736']);
  213. // $str = '{"amount":"30","carrierOrderNo":null,"mobile":"13699279618","orderNo":"27961615532426088043","orderStatus":3,"sign":"012BA0B093A0473D7DD1634A8356DCB1","tradeNo":"31215002972142736"}';
  214. // $data = json_decode($str,true);
  215. // refill\RefillFactory::instance()->notify('yibao',$data);
  216. }
  217. public function testAmingydPhone()
  218. {
  219. $provider = new refill\amingyd\RefillPhone([]);
  220. // $resp = $provider->add('13699279618', 5, 30, ['order_sn' => $this->make_sn()]);
  221. $resp = $provider->query(['order_sn' => '15421615627436792938']);
  222. // $str = '{"orderId":"15421615627436792938","amount":3000,"appKey":"40695059","timestamp":1615627503,"status":3,"operatorId":"508353854027968617","sign":"2A0562319ED4845AB9E3812A58F0B425"}';
  223. // $data = json_decode($str,true);
  224. // refill\RefillFactory::instance()->notify('amingyd',$data);
  225. }
  226. public function testChukaPhone()
  227. {
  228. $provider = new refill\chuka\RefillPhone([]);
  229. // $resp = $provider->add('18500608333', 5, 20, ['order_sn' => $this->make_sn()]);
  230. // $resp = $provider->query(['order_sn' => '92161616314884175179']);
  231. $params['customerId'] = '101787';
  232. $params['orderno'] = 'C1616314888506705492';
  233. $params['tmporder'] = '92161616314884175179';
  234. $params['code'] = '1';
  235. $params['number'] = '18500608333';
  236. $params['money'] = '20';
  237. $params['amount'] = '0';
  238. refill\RefillFactory::instance()->notify('chuka', $params);
  239. }
  240. public function testLegouPhone()
  241. {
  242. $provider = new refill\legou\RefillPhone([]);
  243. // $resp = $provider->add('18500608333', 5, 30, ['order_sn' => '200649600557718881' , 'order_id' => 247 , 'buyer_id' => 52667]);
  244. $resp = $provider->query(['order_sn' => '200649600557718881', 'order_id' => 247]);
  245. $params['username'] = 'lzdc';
  246. $params['orderNumber'] = '690653407667699667';
  247. $params['cardNumber'] = '18500608333';
  248. $params['orderMoney'] = '30.0';
  249. $params['orderPay'] = '1.0';
  250. $params['resultCode'] = '2';
  251. $params['rechargeDesc'] = '{"rechargeStatus":600200,"rechargeDesc":"充值成功"}';
  252. $params['rechargeVoucher'] = '100407307092103291444050244599';
  253. $params['sign'] = 'c054884422a8c3749cbfda0e82b9af70';
  254. // refill\RefillFactory::instance()->notify('legou',$params);
  255. }
  256. public function testFeinimoshu()
  257. {
  258. $provider = new refill\feinimoshu\RefillOil([]);
  259. // $resp = $provider->query(['order_sn' => '3708210680873565742704']);
  260. $resp = $provider->balance();
  261. }
  262. public function testFeinimoshu_hf()
  263. {
  264. $provider = new refill\feinimoshu_hf\RefillPhone([]);
  265. // $resp = $provider->query(['order_sn' => '3708210680873565742704']);
  266. $resp = $provider->balance();
  267. }
  268. public function testFeiniaoPhone()
  269. {
  270. $provider = new refill\feiniao\RefillPhone([]);
  271. // $order_sn = $this->make_sn();
  272. // Log::record($order_sn, Log::DEBUG);
  273. // $resp = $provider->add('13699279618', 4, 50, ['order_sn' => $order_sn]);
  274. $resp = $provider->query(['order_sn' => '28641617178590981824']);
  275. $params['result'] = 'fail';
  276. $params['msg'] = '0';
  277. $params['order'] = 'null';
  278. $params['phone_no'] = '18500608333';
  279. $params['amount'] = '100.00';
  280. $params['op_no'] = '64591617090761169983';
  281. $params['settle'] = '0';
  282. $params['sign'] = '907d2640f96e8d78d59202d090ddb470';
  283. // refill\RefillFactory::instance()->notify('feiniao',$params);
  284. }
  285. public function testTongyPhone()
  286. {
  287. $provider = new refill\tongy\RefillPhone([]);
  288. // $resp = $provider->add('18500608333', 5, 30, ['order_sn' => '690653407667699667', 'order_id' => 248, 'buyer_id' => 52667]);
  289. // $params['UserId'] = '100857';
  290. // $params['ShopId'] = '300000';
  291. // $params['SysOrderId'] = '21070215141210085700010';
  292. // $params['OrderId'] = '9241650678554051429291';
  293. // $params['State'] = '5';
  294. // $params['Timestamp'] = '1625210740472';
  295. // $params['sign'] = 'C5C4E888A3B678470071CDA6DC31719D';
  296. // $params['ParValue'] = '100.0000';
  297. // $params['VoucherType'] = '';
  298. // $params['VoucherContent'] = '';
  299. // $params['CreateTime'] = '2021-07-02 15:14:12';
  300. // $params['CompleteTime'] = '2021-07-02 15:25:40';
  301. // refill\RefillFactory::instance()->notify('tongy',$params);
  302. $resp = $provider->balance();
  303. }
  304. public function testWeiyiPhone()
  305. {
  306. $provider = new refill\weiyi\RefillPhone([]);
  307. // $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]);
  308. // $resp = $provider->query(['order_sn' => '90401621489214002876']);
  309. $body = '{"userid":"1f68bb3452134a6cbaa4","ordernum":"90401621489214002876","mobile":"13699279618","timestamp":"20210520134039","state":"2","desc":"%E5%85%85%E5%80%BC%E6%88%90%E5%8A%9F","sign":"865e8d886b92e019df1d039fccf8df46"}';
  310. $params = json_decode($body, true);
  311. refill\RefillFactory::instance()->notify('weiyi', $params);
  312. }
  313. public function testWeiyimanPhone()
  314. {
  315. $provider = new refill\weiyiman\RefillPhone([]);
  316. // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
  317. // $resp = $provider->query(['order_sn' => '47591620898269370373']);
  318. $data = '{"userid":"46dbb0c992644da881d0","ordernum":"47591620898269370373","mobile":"18500608333","timestamp":"20210513211050","state":"2","desc":"%E5%85%85%E5%80%BC%E6%88%90%E5%8A%9F","serialno":"173313182872","sign":"e9d2ea85b43808d1587793ae329cdb0b"}';
  319. $params = json_decode($data, true);
  320. refill\RefillFactory::instance()->notify('weiyiman', $params);
  321. }
  322. public function testWeiyiWtPhone()
  323. {
  324. $provider = new refill\weiyiwt\RefillPhone([]);
  325. // $resp = $provider->add(18074608795, 6, 50, ['order_sn' => $this->make_sn()]);
  326. // $resp = $provider->query(['order_sn' => '38451621924366009924']);
  327. $body = '{"szOrderId":"38451621924366009924","fSalePrice":"47.25","szAgentId":"200016","nFlag":"2","szVerifyString":"a0b5bfc0bbf6c121a4cd74d9ecb2427d","szPhoneNum":"18074608795","szRtnMsg":"1000000083421052514441119833","nDemo":"50"}';
  328. $params = json_decode($body, true);
  329. refill\RefillFactory::instance()->notify('weiyiwt', $params);
  330. }
  331. public function testXiaochuangPhone()
  332. {
  333. $provider = new refill\xiaochuang\RefillPhone([]);
  334. // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
  335. // $resp = $provider->query(['order_sn' => '84891623028826872085']);
  336. // $body = '{"fail_msg":"","order_sn":"84891623028826872085","order_status":"4","p_order_sn":"2021060709203558011797441162","sign":"E842203C3CA48E924D60B1B56AB93C3B"}';
  337. // $params = json_decode($body , true);
  338. // refill\RefillFactory::instance()->notify('xiaochuang',$params);
  339. $resp = $provider->balance();
  340. }
  341. public function testYintengPhone()
  342. {
  343. $provider = new refill\yinteng\RefillPhone([]);
  344. // $resp = $provider->add(18074608795, 6, 50, ['order_sn' => $this->make_sn()]);
  345. // $resp = $provider->query(['order_sn' => '49631623737966351874']);
  346. // $data = '{"szOrderId":"49631623737966351874","fSalePrice":"47.35","szAgentId":"200009","nFlag":"2","szVerifyString":"01c5fafb1d67175f0533b69a762286e8","szPhoneNum":"18074608795","szRtnMsg":"1000000083421061514495400262","nDemo":"50"}';
  347. // $params = json_decode($data , true);
  348. // refill\RefillFactory::instance()->notify('yinteng',$params);
  349. $resp = $provider->balance();
  350. }
  351. public function testMoxjPhone()
  352. {
  353. $provider = new refill\moxj\RefillPhone([]);
  354. // $resp = $provider->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]);
  355. $resp = $provider->query(['order_sn' => '91131623906171663147']);
  356. $data = '{"result":"fail","msg":"0","order":"null","phone_no":"18500608333","amount":"50.0","op_no":"84901623900668776864","sign":"896b54914a07b814573d7f6cc403848a"}';
  357. $params = json_decode($data, true);
  358. // refill\RefillFactory::instance()->notify('moxj',$params);
  359. }
  360. public function testMoxj_fsPhone()
  361. {
  362. $provider = new refill\moxj_fs\RefillPhone([]);
  363. // $resp = $provider->add(15139608757, 4, 100, ['order_sn' => $this->make_sn()]);
  364. // $resp = $provider->query(['order_sn' => '42741624242693157165']);
  365. // $data = '{"amount":"100","charge_type":"2","code":"1","partner_id":"58","phone":"15139608757","sign":"30d193dba4101e50851ed0efabb75fb1","partner_order_no":"42741624242693157165","official_order_id":"20210621103211948830"}';
  366. // $params = json_decode($data , true);
  367. // refill\RefillFactory::instance()->notify('moxj_fs',$params);
  368. $resp = $provider->balance();
  369. }
  370. public function testZanzanquickPhone()
  371. {
  372. $provider = new refill\zanzanquick\RefillPhone([]);
  373. // $resp = $provider->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]);
  374. // $resp = $provider->query(['order_sn' => '90831623925322675223']);
  375. // $data = '{"userid":"d845a4635f7e47668f5e","ordernum":"90831623925322675223","mobile":"18500608333","timestamp":"20210617182545","state":"2","desc":"%E5%85%85%E5%80%BC%E6%88%90%E5%8A%9F","serialno":"110103307232106171824530567108","sign":"0152c723f25be19f21d723e24b2c8987"}';
  376. // $params = json_decode($data , true);
  377. // refill\RefillFactory::instance()->notify('zanzanquick',$params);
  378. $resp = $provider->balance();
  379. }
  380. public function testFengyemanPhone()
  381. {
  382. $provider = new refill\fengyeman\RefillPhone([]);
  383. // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
  384. // $resp = $provider->query(['order_sn' => '46221624265179185139']);
  385. // $data = '{"order_id":"46221624265179185139","mchid":"HF67a65_10008","tel":"18500608333","price":"50.00","sign":"2bb4ed5edc97ba7f60cf3848aab82cf4","out_order_id":"206877995456","status":"1"}';
  386. // $params = json_decode($data , true);
  387. // refill\RefillFactory::instance()->notify('fengyeman',$params);
  388. $resp = $provider->balance();
  389. }
  390. public function testMoxj_ydPhone()
  391. {
  392. $provider = new refill\moxj_yd\RefillPhone([]);
  393. // $resp = $provider->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]);
  394. // $resp = $provider->query(['order_sn' => '52101624413125875436']);
  395. // $data = '{"customer_order_no":"47651624412877257722","status":1,"merchant_id":"76505818","sign":"c185a0f2152b3ac3ee3f29009dec5a6b"}';
  396. // $params = json_decode($data , true);
  397. // refill\RefillFactory::instance()->notify('moxj_yd',$params);
  398. $resp = $provider->balance();
  399. }
  400. public function testXingzyPhone()
  401. {
  402. $provider = new refill\xingzy\RefillPhone([]);
  403. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  404. // $resp = $provider->query(['order_sn' => '76791624441423287373', 'ch_trade_no' => '210623174333941000']);
  405. // $data = '{"access_key":"211394702","code":3,"data":{"sellprice":26.7,"phone":"18500608333","pass":null,"official_id":null,"official_ch":null},"orderid":210623173427222000,"out_trade_no":"40441624440876653628","sign":"E1g7uHAaJI056jb1fK1DQztkpN4=","timestamp":1624441437918}';
  406. // $params = json_decode($data , true);
  407. // refill\RefillFactory::instance()->notify('xingzy',$params);
  408. $resp = $provider->balance();
  409. }
  410. public function testYuanmaiPhone()
  411. {
  412. $provider = new refill\yuanmai\RefillPhone([]);
  413. // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
  414. // $resp = $provider->query(['order_sn' => '24231624865882625203', 'ch_trade_no' => '210623174333941000']);
  415. // $data = '{"orderid":"24231624865882625203","status":"2","ordermoney":"50","sign":"94be5b1754ffcc7f0fe1551072146941","spsno":""}';
  416. // $params = json_decode($data, true);
  417. // refill\RefillFactory::instance()->notify('yuanmai',$params);
  418. $resp = $provider->balance();
  419. }
  420. public function testLangkePhone()
  421. {
  422. $provider = new refill\langke\RefillPhone([]);
  423. // $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]);
  424. $resp = $provider->query(['order_sn' => '29461624952660047520', 'ch_trade_no' => '210623174333941000']);
  425. $data = '{"channelsort":"PHONE_BILL","channelno":"2021062922001123211428063487","onlystr":"29461624952660047520","channel":"TM","sign":"8aedceac4ce4d897f1f06977a9094371","amt":"50","notifyurl":"https:\/\/www.xyzshops.cn\/mobile\/signature.php","cardtype":"","cardno":"","orgid":"7532391600","account":"13699279618","status":"2"}';
  426. $params = json_decode($data, true);
  427. // refill\RefillFactory::instance()->notify('langke',$params);
  428. }
  429. public function testYunlingdsPhone()
  430. {
  431. $provider = new refill\yunlingds\RefillPhone([]);
  432. // $resp = $provider->add(18074608795, 6, 30, ['order_sn' => $this->make_sn()]);
  433. // $resp = $provider->query(['order_sn' => '85351624961920020593']);
  434. // $data = '{"orderid":"OWS21062918188862392","sporderid":"85351624961920020593","userid":"10002623","merchantsubmittime":"20210629181929","resultno":"1","parvalue":"30","remark1":"AW20210629181906yRAvM","payno":"AW20210629181906yRAvM","fundbalance":"-28.59","sign":"11369509ADCF2A2612B3531A15049BDD"}';
  435. // $params = json_decode($data, true);
  436. // refill\RefillFactory::instance()->notify('yunlingds',$params);
  437. $resp = $provider->balance();
  438. }
  439. public function testLingzhmanPhone()
  440. {
  441. // $provider = $this->getProvider('lingzhman');
  442. // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
  443. // $resp = $provider->query(['order_sn' => '91641644558361512676']);
  444. // $resp = $provider->balance();
  445. $body = '{"orderNo":"F2202111346304162782","status":"001","consumerNo":"91641644558361512676","voucherNo":null,"mobile":"18500608333"}';
  446. $params = json_decode($body, true);
  447. $provider = $this->getProvider('lingzhman', 'RefillCallback');
  448. $resp = $provider->notify($params);
  449. }
  450. public function testQijutangPhone()
  451. {
  452. $provider = new refill\qijutang\RefillPhone([]);
  453. // for ($i=1;$i<2;$i++) {
  454. // $resp = $provider->add(13699279618, 4, 100, ['order_sn' => $this->make_sn()]);
  455. // }
  456. // $resp = $provider->query(['order_sn' => '51501625218912512231']);
  457. // $data = '{"szOrderId":"51501625218912512231","fSalePrice":"28.44","szAgentId":"200010","nFlag":"3","szVerifyString":"20cf16c6bb239e2a703d0bf3e5ef2d5a","szPhoneNum":"18500608333","szRtnMsg":"","nDemo":"30"}';
  458. // $params = json_decode($data, true);
  459. // refill\RefillFactory::instance()->notify('qijutang',$params);
  460. $resp = $provider->balance();
  461. }
  462. public function testLingzhman48Phone()
  463. {
  464. // $provider = $this->getProvider('lingzhman48');
  465. // $resp = $provider->balance();
  466. // $resp = $provider->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]);
  467. // $resp = $provider->query(['order_sn' => '39991649558290585085']);
  468. $body = '{"orderNo":"F2204101038212358481","status":"019","consumerNo":"39991649558290585085","voucherNo":null,"mobile":"18500608333"}';
  469. $params = json_decode($body, true);
  470. $provider = $this->getProvider('lingzhman48', 'RefillCallBack');
  471. $ret = $provider->verify($params);
  472. $resp = $provider->notify($params);
  473. }
  474. public function testcangbuPhone()
  475. {
  476. $provider = $this->getProvider('cangbu');
  477. // $resp = $provider->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]);
  478. $resp = $provider->query(['order_sn' => '4024880687558152076462']);
  479. // $data = '{"customerId":"112","tmporder":"35041626071052333060","orderno":"s16260710607417944801112","number":"18500608333","money":"100","amount":"94.9000","code":"1","cardno":"","voucher":"110103307042107121424210550266","sign":"de463c3d389a4afe4a2c58257972121a"}';
  480. // $params = json_decode($data, true);
  481. // refill\RefillFactory::instance()->notify('cangbu',$params);
  482. $resp = $provider->balance();
  483. }
  484. public function testCangbukami()
  485. {
  486. $provider = new refill\cangbukami\RefillPhone([]);
  487. // $resp = $provider->add(18500608333, 5, 20, ['order_sn' => $this->make_sn()]);
  488. $resp = $provider->query(['order_sn' => '23231627380108954478']);
  489. }
  490. public function testTongykamiPhone()
  491. {
  492. $provider = new refill\tongykami\RefillPhone([]);
  493. // $resp = $provider->add(18500608333, 5, 20, ['order_sn' => $this->make_sn()]);
  494. $resp = $provider->query(['order_sn' => '26961626077050756648']);
  495. $data = '{"UserId":"100903","ShopId":"300000","SysOrderId":"21071216040810090300001","OrderId":"26961626077050756648","State":"4","Timestamp":"1626077052399","sign":"536A0D93B0869FC4FFDF055AFB8083FE","ParValue":"20.0000","VoucherType":"5","VoucherContent":"982100214176457","CreateTime":"2021-07-12 16:04:08","CompleteTime":"2021-07-12 16:04:12"}';
  496. $params = json_decode($data, true);
  497. // refill\RefillFactory::instance()->notify('tongykami',$params);
  498. }
  499. public function testTongluPhone()
  500. {
  501. $provider = new refill\tonglu\RefillPhone([]);
  502. // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
  503. $resp = $provider->query(['order_sn' => '22961616468561936356']);
  504. // $body = '{"order_no":"22961616468561936356","order_status":"5","phone_no":"18500608333","amount":5000,"time_paid":1616468856287,"order_cert_no":"","paid":false,"order_id":"20210323966497008"}';
  505. // $sign = '9E41F52F612D60EBB654B3A5D1E2F1E5';
  506. // $params = json_decode($body , true);
  507. // $params['sign'] = $sign;
  508. // refill\RefillFactory::instance()->notify('tonglu',$params);
  509. }
  510. public function testSialan()
  511. {
  512. $provider = $this->getProvider('sialan');
  513. // $resp = $provider->balance();
  514. // $resp = $provider->add(18500608333, 5, 10, ['order_sn' => $this->make_sn()]);
  515. $resp = $provider->query(['ch_trade_no' => '21112214053736552180705']);
  516. // $body = '{"api_id":"16855","recharge":"18500608333","amount":"10","order_sn":"21112213553615606755893","query_sn":"29151637560521755792","operator_sn":"","status":"2","sign":"32867363957ed9688b8bbdd8f42c08eb"}';
  517. // $params = json_decode($body, true);
  518. // $provider = $this->getProvider('sialan', 'RefillCallBack');
  519. // $ret = $provider->verify($params);
  520. // $resp = $provider->notify($params);
  521. }
  522. public function testMoxj_new()
  523. {
  524. $provider = new refill\moxj_new\RefillPhone([]);
  525. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  526. // $resp = $provider->query(['order_sn' => '33301627887529587739', 'card_no' => 13699279618]);
  527. // $body = '{"code":"2101","official_order_no":"0","partner_no":"300459017","partner_order_no":"33301627887529587739","phone":"18500608333","amount":"30","isp":"cucc","charge_time":"0","sign":"A512D612C823DFBCA9B4BC42134CC164"}';
  528. // $params = json_decode($body, true);
  529. // refill\RefillFactory::instance()->notify('moxj_new', $params);
  530. $resp = $provider->balance();
  531. }
  532. public function testKangkai()
  533. {
  534. $provider = new refill\kangkai\RefillPhone([]);
  535. // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
  536. // $resp = $provider->query(['order_sn' => '25431627898461762024']);
  537. // $body = '{"TaskID":"267459","Mobile":"18500608333","Status":"5","ReportTime":"2021-08-02T18:02:01.777","ReportCode":"7:","OutTradeNo":"25431627898461762024","Price":"44.2500","ReceiptNum":"","Sign":"f0934a621fd0b076373f77a9bf8d7051"}';
  538. // $params = json_decode($body, true);
  539. // refill\RefillFactory::instance()->notify('kangkai', $params);
  540. $resp = $provider->balance();
  541. }
  542. public function testLechong()
  543. {
  544. $provider = new refill\lechong\RefillPhone([]);
  545. // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
  546. // $resp = $provider->query(['order_sn' => '55641627902450221838']);
  547. // $body = '{"sellerid":"55641627902450221838","agentcode":"202108021753","account":"MTg1MDA2MDgzMzM=","value":"50","payvalue":"47.8500","voucher":"","createtime":"20210802190739","endtime":"20210802191008","state":"4","remark":"","time":"20210802191008","sign":"0e2d69318d03871d887debd498cc50f2"}';
  548. // $params = json_decode($body, true);
  549. // refill\RefillFactory::instance()->notify('lechong', $params);
  550. $resp = $provider->balance();
  551. }
  552. public function testXinhengyang()
  553. {
  554. $provider = $this->getProvider('xinhengyang');
  555. // $resp = $provider->balance();
  556. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  557. $resp = $provider->query(['order_sn' => '6966570691155594416360']);
  558. // $body = '{"reqNo":"f619063cc8f443e1a3ee1cc5fe868817","userReqNo":"12621636363677759274","evidence":"","sign":"fc184436350396baf252ff56aee6f5ce","billDiscount":"0.953","billAmount":"28.59","status":"50100","message":"fail"}';
  559. // $params = json_decode($body, true);
  560. // $provider = $this->getProvider('xinhengyang', 'RefillCallBack');
  561. // $ret = $provider->verify($params);
  562. // $resp = $provider->notify($params);
  563. }
  564. public function testMiaoxt()
  565. {
  566. $provider = new refill\miaoxt\RefillPhone([]);
  567. // $resp = $provider->add(18500608333, 5, 10, ['order_sn' => $this->make_sn()]);
  568. // $resp = $provider->query(['order_sn' => '85101628064401524483']);
  569. // $resp = $provider->balance();
  570. $body = '{"szOrderId":"85101628064401524483","fSalePrice":"10.2","szAgentId":"200050","nFlag":"2","szVerifyString":"7a08b9a71a297a28843d749a7bf79dbc","szPhoneNum":"18500608333","szRtnMsg":"","nDemo":"10"}';
  571. $params = json_decode($body, true);
  572. refill\RefillFactory::instance()->notify('miaoxt', $params);
  573. }
  574. public function testTianyan()
  575. {
  576. $provider = new refill\tianyan\RefillPhone([]);
  577. // $resp = $provider->add(18500608333, 5, 10, ['order_sn' => $this->make_sn()]);
  578. // $resp = $provider->query(['order_sn' => '71241628067981955316', 'card_no' => 18500608333, 'card_type' => 5]);
  579. // $resp = $provider->balance();
  580. $params['amount'] = '100.00';
  581. $params['orderNo'] = '2618380681466713437097';
  582. $params['supplierId'] = '48';
  583. $params['orderId'] = 'S20210805081833371976224648';
  584. $params['notifyTime'] = '1628122793669';
  585. $params['sign'] = '4d8f70bf451608359e256ee1e5f30de1';
  586. $params['discountAmount'] = '5.50';
  587. $params['phoneNo'] = '17696554433';
  588. $params['queryUrl'] = 'https%3A%2F%2Fupay.10010.com%2Fnpfwap%2FNpfMobCB%2FmobPayFeeCB%2FPayFeeCBFinish%3Fs%3Ds%26province%3D034%26hsnduns%3D9900%26PayRspObj%3Dg5Wzcx2XA2IKuVRxJM8XL1ku7SOw9jQ9rQ53Brvq7an002PM9u3lEFAsIL88fmZQ5E2gZuGRBFkRD3%2FOhvJ9QiYKPITME8OErhoTmu%2FOr9WdyO12eK53aaUvE557JZLZVIWyAOE47QZDnKnVs2bdpH1ApK0QIUmkdeRe%2BO%2F6qzkq%2FQv8oH6shae7uhV0vzeRAuY1q8MuTsNZ3YfvSuSFc6u1twRHAjUKJdKV6gKxQofahNr9MjCdYneuIcPWI7xNyDWcr12FEhNEJDSBGoIr78jw6XMNMrzcBFLl0eXW1iMPd%2BCAQVG%2BF7s8naJNFSALkapTORdCN%2BRbxsLugFZqVAaGs%2B1ldaATPMtd2ZWTp8JibGOfsf9uCQiyu3R3t6b5R%2BQPHCScw8Cu1eSixloFI2ZMVwA18WVbN1vb81X4IGI%2B5nxRA%2FJ1tm7snm5Oj799%2BoaS27QyGRSB618lySbprw0muawiQzdKdOmVBMcZH0ADyDM8dFvT9dKz5yRlABpHeBt7fTY1MIdNKjQ4QK5xQHG8GoTwchc36eE2CzF4kcaT9uKlmv1Wbb38szv4s%2F6HoncxQJxHOgXjWTQGBUSrolDn0qc0DdVIQ%2B25HApeloCjHhy0xTbDJhRsdezWjIONXbqiB2ZTPrheuM3qIROEBwvBRVgm0GotZYyrP3IIMLfeMtCThrirsnLRW1anCoWpDJJr6qwjRMwu%2BNAtfLyIEVkDKZeZKuA2Kk5Q9GLQHub2Nx5%2BAN3eGdRWzN6BPNiMRVlu1LpY%2BYCBg9fr9NZN3%2B7XcHGWyXM6K%2FugRPAdZUgJJQFFDAIiA4Kvc1uN2zjraiLZt7xjHMXgAP69mvEp%2FVMm2whluq6sk%2B67cdOTwMpXwzp6Aoh1d1OX4IYqw20vxfwzESPSg2RVDJUBT0%2F2NI0J2VJObHih%26ServicePlatID%3D11';
  589. $params['payType'] = 'wechat';
  590. $params['ticketNo'] = '110103353022108050819140250945';
  591. $params['company'] = 'lt';
  592. $params['status'] = '2';
  593. refill\RefillFactory::instance()->notify('tianyan', $params);
  594. }
  595. public function testYunsuoyaoman()
  596. {
  597. // $provider = $this->getProvider('yunsuoyaoman');
  598. // $resp = $provider->balance();
  599. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  600. // $resp = $provider->query(['order_sn' => '58771629702960801700']);
  601. $body = '{"orderid":"RLD21082315152651196","sporderid":"58771629702960801700","userid":"10002745","merchantsubmittime":"20210823152623","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-27.45","sign":"76A29E0101644831526138D63917C130"}';
  602. $params = json_decode($body, true);
  603. $provider = $this->getProvider('yunsuoyaoman', 'RefillCallBack');
  604. $ret = $provider->verify($params);
  605. $resp = $provider->notify($params);
  606. }
  607. public function testYouhe()
  608. {
  609. // $provider = $this->getProvider('youhe');
  610. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  611. // $resp = $provider->query(['order_sn' => '41051635145081582785']);
  612. // $resp = $provider->balance();
  613. $body = ' {"seqNo":"FE4D9D65781C0758","orderNo":"46101635142848462768","result":"Q0001","transo":"","sign":"3B02C7864154C94D8479305D27F3831C"}';
  614. $params = json_decode($body, true);
  615. $provider = $this->getProvider('youhe', 'RefillCallback');
  616. $ret = $provider->verify($params);
  617. $resp = $provider->notify($params);
  618. }
  619. public function testWenye()
  620. {
  621. $provider = new refill\wenye\RefillPhone([]);
  622. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  623. // $resp = $provider->query(['order_sn' => '88871628157083445809']);
  624. // $resp = $provider->balance();
  625. $body = '{"orderNo":"F2108051529062719948","status":"019","consumerNo":"95291628148539909985","voucherNo":null,"mobile":"18500608333"}';
  626. $params = json_decode($body, true);
  627. // refill\RefillFactory::instance()->notify('wenye', $params);
  628. }
  629. public function testXinyang()
  630. {
  631. $provider = new refill\xinyang\RefillPhone([]);
  632. // $resp = $provider->add(13699279618, 4, 10, ['order_sn' => $this->make_sn()]);
  633. // $resp = $provider->query(['order_sn' => '68151628157534687971']);
  634. // $resp = $provider->balance();
  635. $body = '{"UserId":"100029","ShopId":"300000","SysOrderId":"21080517590310002956698","OrderId":"68151628157534687971","State":"4","Timestamp":"1628157558204","sign":"4514B2BA75DBA02EA3A60525329B3D86","ParValue":"10.0000","VoucherType":"0","VoucherContent":"2021080522001161731405208592","CreateTime":"2021-08-05 17:59:03","CompleteTime":"2021-08-05 17:59:18"}';
  636. $params = json_decode($body, true);
  637. refill\RefillFactory::instance()->notify('xinyang', $params);
  638. }
  639. public function testGuochuang()
  640. {
  641. $provider = $this->getProvider('guochuang');
  642. $resp = $provider->add(13699279618, 4, 5, ['order_sn' => $this->make_sn(), 'regin_no' => 1]);
  643. // $resp = $provider->query(['order_sn' => '82951628231038096078']);
  644. // $resp = $provider->balance();
  645. // $body = '{"account":"18074608795","evidence":"1000000083421080614310024563","evidenceType":"","id":"D2021080614235942044","inTime":"2021/08/06 14:26:22","money":"10","outerId":"82951628231038096078","status":"SUCCESS"}';
  646. // $params['ts'] = 1628231182;
  647. // $params['sign'] = '545F7024870B145915934CA36C6D341E';
  648. // $params['body'] = $body;
  649. // refill\RefillFactory::instance()->notify('guochuang', $params);
  650. // [$goods_id, $price] = $provider->goods(2, 10, 4, 1, []);
  651. }
  652. public function testXianghongrui()
  653. {
  654. $provider = new refill\xianghongrui\RefillPhone([]);
  655. // $resp = $provider->balance();
  656. // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
  657. // $resp = $provider->query(['order_sn' => '87691628758730981608']);
  658. $body = '{"orderid":"BAT21081216581941649","sporderid":"87691628758730981608","userid":"10002503","merchantsubmittime":"20210812165918","resultno":"1","parvalue":"50","remark1":"110103353052108121658550256634","payno":"110103353052108121658550256634","fundbalance":"-47.5","sign":"EF34F6FB6D37E4FCB92DCD8F41CC67E1"}';
  659. $params = json_decode($body, true);
  660. refill\RefillFactory::instance()->notify('xianghongrui', $params);
  661. }
  662. public function testDianchong()
  663. {
  664. $provider = $this->getProvider('dianchong');
  665. // $resp = $provider->balance();
  666. // $resp = $provider->add(18074608795, 5, 30, ['order_sn' => $this->make_sn()]);
  667. // $resp = $provider->query(['order_sn' => '26671629190230227788']);
  668. $body = '{"seqNo":"5C2D85572F8743CF","orderNo":"26671629190230227788","result":"Q0000","transo":"1000000083421081716331202254","sign":"87F3F67EA2B91709FD05468CF74210A1"}';
  669. $params = json_decode($body, true);
  670. $provider = $this->getProvider('dianchong', 'RefillCallBack');
  671. $ret = $provider->verify($params);
  672. $resp = $provider->notify($params);
  673. }
  674. public function testXunyinOil()
  675. {
  676. $provider = $this->getProvider('xunyinoil', 'RefillOil');
  677. // $resp = $provider->balance();
  678. // $resp = $provider->add(9030230005180327, 1, 50, ['order_sn' => $this->make_sn()]);
  679. $resp = $provider->query(['order_sn' => '77791629450541412891']);
  680. // $body = '{"ext":"","code":"8888","sign":"7db98f3f271013688134f2fbd503dc15","statemes":"\u6210\u529f","id":"80641629442789487318","userid":"8417","operatorid":"2421082015001888","status":"SUCCESS"}';
  681. // $params = json_decode($body, true);
  682. // $provider = $this->getProvider('xunyinoil','RefillCallBack');
  683. // $ret = $provider->verify($params);
  684. // $resp = $provider->notify($params);
  685. }
  686. public function testJumiThird()
  687. {
  688. $provider = $this->getProvider('jumithird');
  689. // $resp = $provider->balance();
  690. $resp = $provider->add(588073521, 7, 100, [
  691. 'order_sn' => $this->make_sn(),
  692. 'goods_id' => 6978,
  693. 'product_code' => 'XYZ100747'
  694. ]);
  695. // $resp = $provider->query(['order_sn' => '53151629791019902609']);
  696. // $body = '{"order_no":"59251629777055495341","channel_order_no":"C2108241152003775025","status":3,"money":"100.00","cost_money":"97.00","mch_no":210303112631,"account":"588073521","official_sn":"","sign":"7d7b3e701865b54c8cf0d9e903fdf6bf"}';
  697. // $params = json_decode($body, true);
  698. // $provider = $this->getProvider('jumithird','RefillCallBack');
  699. // $ret = $provider->verify($params);
  700. // $resp = $provider->notify($params);
  701. }
  702. public function testWangliantx()
  703. {
  704. // $provider = $this->getProvider('wangliantx');
  705. // $resp = $provider->balance();
  706. // for ($i = 1; $i<=1; $i++){
  707. // $resp = $provider->add(18074608795, 6, 50, [
  708. // 'order_sn' => $this->make_sn(),
  709. // 'regin_no' => 1
  710. // ]);
  711. // }
  712. // $resp = $provider->query(['order_sn' => '85901629801033376170']);
  713. $body = '{"userid":"10073664","sporderid":"85901629801033376170","orderid":"C5C5D4F49DB61A8773664","resultno":"1","merchantsubmittime":"20210824183109","ordermoney":"47.6","verifystring":"b6a873ecd6dc9cea3a410c6386cdab84","sign":"4a80e2a8c7b07c8aacada4feedd581bd","supnumber":"1000000083421082418345386156"}';
  714. $params = json_decode($body, true);
  715. $provider = $this->getProvider('wangliantx', 'RefillCallBack');
  716. $ret = $provider->verify($params);
  717. $resp = $provider->notify($params);
  718. }
  719. public function testZhuojian()
  720. {
  721. // $provider = $this->getProvider('zhuojian');
  722. // $resp = $provider->add(18500608333, 5, 50, [
  723. // 'order_sn' => $this->make_sn()
  724. // ]);
  725. // $resp = $provider->query(['order_sn' => '87231630026579229295']);
  726. $body = '{"money":"50.00","official_trade_no":"","out_trade_no":"87231630026579229295","status":"4","trade_no":"10000077828","sign":"0e19142c014ef6fe263601956e0be436"}';
  727. $params = json_decode($body, true);
  728. $provider = $this->getProvider('zhuojian', 'RefillCallBack');
  729. $ret = $provider->verify($params);
  730. $resp = $provider->notify($params);
  731. }
  732. public function testXianghongruifs()
  733. {
  734. // $provider = $this->getProvider('xianghongruifs');
  735. // $resp = $provider->balance();
  736. // $resp = $provider->add(15252490862, 4, 30, [
  737. // 'order_sn' => $this->make_sn()
  738. // ]);
  739. // $resp = $provider->query(['order_sn' => '70881632644084577858']);
  740. $body = '{"orderid":"AAO21092616144271467","sporderid":"70881632644084577858","userid":"10002524","merchantsubmittime":"20210926161610","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-28.5","sign":"343C28C4EB13F68E2EE251FA0F2A8262"}';
  741. $params = json_decode($body, true);
  742. $provider = $this->getProvider('xianghongruifs', 'RefillCallBack');
  743. $ret = $provider->verify($params);
  744. $resp = $provider->notify($params);
  745. }
  746. public function testYilin()
  747. {
  748. $provider = $this->getProvider('yilin');
  749. $resp = $provider->balance();
  750. // $resp = $provider->add(18500608333, 5, 30, [
  751. // 'order_sn' => $this->make_sn()
  752. // ]);
  753. // $resp = $provider->query(['order_sn' => '86981630484634157631']);
  754. // $body = '{"orderid":"NZX21090116244713140","sporderid":"86981630484634157631","userid":"10002543","merchantsubmittime":"20210901163039","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-28.71","sign":"53717BF9ECE83F4AD96C1EDD4BAE4E87"}';
  755. // $params = json_decode($body, true);
  756. // $provider = $this->getProvider('yilin','RefillCallBack');
  757. // $ret = $provider->verify($params);
  758. // $resp = $provider->notify($params);
  759. }
  760. public function testMiaoxt_fs()
  761. {
  762. $provider = $this->getProvider('miaoxt_fs');
  763. // $resp = $provider->balance();
  764. // $resp = $provider->add(13945846040, 4, 10, [
  765. // 'order_sn' => $this->make_sn()
  766. // ]);
  767. $resp = $provider->query(['order_sn' => '33101630577689278074']);
  768. // $body = '{"szOrderId":"33101630577689278074","fSalePrice":"9.95","szAgentId":"200055","nFlag":"2","szVerifyString":"1649fb2815926b75e4ed7e0fef3172ae","szPhoneNum":"13945846040","szRtnMsg":"","nDemo":"10"}';
  769. // $params = json_decode($body, true);
  770. // $provider = $this->getProvider('miaoxt_fs','RefillCallBack');
  771. // $ret = $provider->verify($params);
  772. // $resp = $provider->notify($params);
  773. }
  774. public function testXianzhibb()
  775. {
  776. // $provider = $this->getProvider('xianzhibb');
  777. // $resp = $provider->balance();
  778. // $resp = $provider->add(13699279618, 4, 200, [
  779. // 'order_sn' => $this->make_sn()
  780. // ]);
  781. // $resp = $provider->query(['order_sn' => '80881630650784871094']);
  782. $body = '{"code":"000","merchantorderId":"1854680684077057846998","platformorderid":"aada9b09583f66b2b83370016","orderid":"","rechargeno":"15971954673","amount":"50.00","payamount":"47.75000","rechargestate":"3","createtime":"2021-09-04 13:26:20","sign":"07b8a341c55639d3512a239f9cd07e31"}';
  783. $params = json_decode($body, true);
  784. $provider = $this->getProvider('xianzhibb', 'RefillCallBack');
  785. $ret = $provider->verify($params);
  786. $resp = $provider->notify($params);
  787. }
  788. public function testYikatong()
  789. {
  790. // $provider = $this->getProvider('yikatong');
  791. // $resp = $provider->balance();
  792. // $resp = $provider->add(18500608333, 5, 30, [
  793. // 'order_sn' => $this->make_sn()
  794. // ]);
  795. // $resp = $provider->query(['order_sn' => '54641640157747514762']);
  796. $body = '{"msg":"","code":"1","productId":"2000030","orderId":"54641640157747514762","systemOrderId":"1042390009","faceValue":"30","price":"28.35","appId":"200005","mobile":"18500608333","sign":"caafec8ef1abcf6db5517245dbeceb9c"}';
  797. $params = json_decode($body, true);
  798. $provider = $this->getProvider('yikatong', 'RefillCallBack');
  799. $ret = $provider->verify($params);
  800. $resp = $provider->notify($params);
  801. }
  802. public function testSanti()
  803. {
  804. $provider = $this->getProvider('santi');
  805. // $resp = $provider->get_product(17801048874);
  806. // $resp = $provider->add(18500608333, 5, 1024, [
  807. // 'order_sn' => $this->make_sn(),
  808. // 'goods_id' => 7000,
  809. // 'product_code' => 'XYZ100751'
  810. // ]);
  811. $resp = $provider->query(['ch_trade_no' => '1631945759171581']);
  812. // $resp = $provider->balance();
  813. $body = '{"channelOrderNo":"49991631861285846684","extraData":"","orderNo":"1631861288127072","orderStatus":"4","providerResultCode":"3","providerResultReason":"\u5145\u503c\u6210\u529f","resultCode":"1000","resultMessage":"\u6210\u529f","sign":"472490783eaa82c76a1af8702881f04f"}';
  814. $params = json_decode($body, true);
  815. $provider = $this->getProvider('santi', 'RefillCallBack');
  816. $ret = $provider->verify($params);
  817. $resp = $provider->notify($params);
  818. }
  819. public function testSialan_tax()
  820. {
  821. // $provider = $this->getProvider('sialan_tax');
  822. // $resp = $provider->balance();
  823. // $resp = $provider->add(18500608333, 5, 10, ['order_sn' => $this->make_sn()]);
  824. // $resp = $provider->query(['ch_trade_no' => '21112214170092559557647']);
  825. $body = '{"api_id":"16856","recharge":"18500608333","amount":"10","order_sn":"21112214170092559557647","query_sn":"64801637561821444619","operator_sn":"","status":"2","sign":"900a01a1268cb14a37d6567691303ed9"}';
  826. $params = json_decode($body, true);
  827. $provider = $this->getProvider('sialan_tax', 'RefillCallBack');
  828. $ret = $provider->verify($params);
  829. $resp = $provider->notify($params);
  830. }
  831. public function testYunchonggong_yd()
  832. {
  833. $provider = $this->getProvider('yunchonggong_yd');
  834. // $resp = $provider->balance();
  835. // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]);
  836. // $resp = $provider->query(['order_sn' => '40181650866044454847']);
  837. // $body = '{"szOrderId":"34061631002071526340","fSalePrice":"47.7","szAgentId":"200043","nFlag":"3","szVerifyString":"48a7329c13af06b5be1d2fdad706b22e","szPhoneNum":"13699279618","szRtnMsg":"","nDemo":"50"}';
  838. // $params = json_decode($body, true);
  839. // $provider = $this->getProvider('yunchonggong_yd','RefillCallBack');
  840. // $ret = $provider->verify($params);
  841. // $resp = $provider->notify($params);
  842. }
  843. public function testGuochuang_nation()
  844. {
  845. $provider = $this->getProvider('guochuang_nation');
  846. $resp = $provider->add(18500608333, 5, 1, ['order_sn' => $this->make_sn(), 'regin_no' => 1]);
  847. // $resp = $provider->query(['order_sn' => '4372390688043259849812']);
  848. // $resp = $provider->balance();
  849. // $body = '{"account":"18500608333","evidence":"N/A","evidenceType":"","id":"D2021090718185107657","inTime":"2021/09/07 18:19:05","money":"1","outerId":"65261631009929751933","status":"SUCCESS"}';
  850. // $params['ts'] = 1631009945;
  851. // $params['sign'] = 'C53F921EB5573EF4D0C757C5B5D4185D';
  852. // $params['body'] = $body;
  853. // $provider = $this->getProvider('guochuang_nation','RefillCallBack');
  854. // $ret = $provider->verify($params);
  855. // $resp = $provider->notify($params);
  856. }
  857. public function testTianyanman()
  858. {
  859. $provider = $this->getProvider('tianyanman');
  860. $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  861. // $resp = $provider->query(['order_sn' => '12191631078826857172', 'card_no' => 18500608333, 'card_type' => 5]);
  862. // $resp = $provider->balance();
  863. // $body = '{"amount":"30.00","orderNo":"12191631078826857172","supplierId":"48","orderId":"S20210908132721339071815348","notifyTime":"1631078841755","sign":"8a5676d4fbd1fd9a64385d71061be44a","discountAmount":"1.65","phoneNo":"18500608333","queryUrl":"","payType":"","ticketNo":"","company":"lt","status":"0"}';
  864. // $params = json_decode($body, true);
  865. // $provider = $this->getProvider('tianyanman','RefillCallBack');
  866. // $ret = $provider->verify($params);
  867. // $resp = $provider->notify($params);
  868. }
  869. public function testShimer()
  870. {
  871. $provider = $this->getProvider('shimier');
  872. // $resp = $provider->balance();
  873. $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]);
  874. // $resp = $provider->query(['order_sn' => '56391631086657239320']);
  875. // $body = '{"orderId":"210908153756535112","appId":"b3k6DRwSOw","outOrderId":"56391631086657239320","sign":"86f9e783a3374463d546bedfc6920eff","orderStatus":"3","completeTime":"20210908154810","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
  876. // $params = json_decode($body, true);
  877. // $provider = $this->getProvider('shimier','RefillCallBack');
  878. // $ret = $provider->verify($params);
  879. // $resp = $provider->notify($params);
  880. }
  881. public function testZhongst_mix()
  882. {
  883. // $provider = $this->getProvider('zhongst_mix');
  884. // $resp = $provider->balance();
  885. // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
  886. // $resp = $provider->query(['order_sn' => '81331649907306739763']);
  887. $body = '{"orderId":"220414113514628825","appId":"aKz6PN5XIw","outOrderId":"81331649907306739763","sign":"140099d15593e363e6b2682a4c2f24c2","orderStatus":"2","completeTime":"20220414120642","orderDesc":"\u8ba2\u5355\u6210\u529f","ext1":"110103308032204141204470484590"}';
  888. $params = json_decode($body, true);
  889. $provider = $this->getProvider('zhongst_mix', 'RefillCallBack');
  890. $ret = $provider->verify($params);
  891. $resp = $provider->notify($params);
  892. }
  893. public function testHangtong()
  894. {
  895. // $provider = $this->getProvider('hangtong');
  896. // $resp = $provider->balance();
  897. // $resp = $provider->add(13699279618, 4, 100, ['order_sn' => $this->make_sn()]);
  898. // $resp = $provider->query(['order_sn' => '68221631775122967358']);
  899. $body = '{"phone":"13699279618","orderNo":"F2109161452121045530","status":"success","otherNo":"68221631775122967358","msg":"提交/充值成功","ext":"524501553021467113"}';
  900. $params = json_decode($body, true);
  901. $provider = $this->getProvider('hangtong', 'RefillCallBack');
  902. $ret = $provider->verify($params);
  903. $resp = $provider->notify($params);
  904. }
  905. public function testJinfeng()
  906. {
  907. // $provider = $this->getProvider('jinfeng');
  908. // $resp = $provider->balance();
  909. // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
  910. // $resp = $provider->query(['order_sn' => '78561631769733386091']);
  911. $body = '{"orderNo":"F2109161322374838924","status":"003","consumerNo":"78561631769733386091","voucherNo":null,"mobile":"18500608333"}';
  912. $params = json_decode($body, true);
  913. $provider = $this->getProvider('jinfeng', 'RefillCallBack');
  914. $ret = $provider->verify($params);
  915. $resp = $provider->notify($params);
  916. }
  917. public function testDashang()
  918. {
  919. // $provider = $this->getProvider('dashang');
  920. // $resp = $provider->balance();
  921. // $resp = $provider->add(18074608795, 6, 50, ['order_sn' => $this->make_sn()]);
  922. // $resp = $provider->query(['order_sn' => '63101631784169445345']);
  923. $body = '{"userId":"80800346","bizId":"90290050","ejId":"90916171545126","downstreamSerialno":"67971631783703671946","status":"3","voucher":"","voucherType":"0","sign":"46b13acf67f271e2f85db189ab9e1391"}';
  924. $params = json_decode($body, true);
  925. $provider = $this->getProvider('dashang', 'RefillCallBack');
  926. $ret = $provider->verify($params);
  927. $resp = $provider->notify($params);
  928. }
  929. public function testYuanta()
  930. {
  931. // $provider = $this->getProvider('yuanta');
  932. // $resp = $provider->balance();
  933. // $resp = $provider->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]);
  934. // $resp = $provider->query(['order_sn' => '96081645088688480739']);
  935. $body = '{"orderId":"220217170449505863","appId":"Uar9JIo4Zz","outOrderId":"96081645088688480739","sign":"1483916dbdc2f3b6024894442af816aa","orderStatus":"2","completeTime":"20220217175606","orderDesc":"\u8ba2\u5355\u6210\u529f"}';
  936. $params = json_decode($body, true);
  937. $provider = $this->getProvider('yuanta', 'RefillCallBack');
  938. $ret = $provider->verify($params);
  939. $resp = $provider->notify($params);
  940. }
  941. public function testDuojing()
  942. {
  943. // $provider = $this->getProvider('duojing');
  944. // $resp = $provider->balance();
  945. // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
  946. // $resp = $provider->query(['order_sn' => '51421642755293155833']);
  947. // $body = '{"appKey":"30000419","number":"56521092314142544365","orderId":"24731632377651122245","mobile":"18500608333","reason":"","amount":"50.00","actualAmount":"49.85","createdAt":"2021-09-23 14:14:25","status":"SUCCESS","sign":"8D7A526CF3F6C1279BD1819028B7683A"}';
  948. // $params = json_decode($body, true);
  949. // $provider = $this->getProvider('duojing','RefillCallBack');
  950. // $ret = $provider->verify($params);
  951. // $resp = $provider->notify($params);
  952. }
  953. public function testMenggu()
  954. {
  955. $provider = $this->getProvider('menggu', 'RefillOil');
  956. // $resp = $provider->add(1000111100021211884, 2, 500, ['order_sn' => $this->make_sn()]);
  957. $resp = $provider->query(['order_sn' => '63021632301956855605']);
  958. // $body = '{"orderId":"210922171242123506","appId":"1hqLCRUja7","outOrderId":"63021632301956855605","sign":"f3f0b48657bb4e3b993aa284159c6565","orderStatus":"2","completeTime":"20210922171306","orderDesc":"\u8ba2\u5355\u6210\u529f","ext1":"\u3010\u4e2d\u56fd\u77f3\u5316\u3011\u60a8\u5c3e\u53f7\u4e3a211884\u7684\u52a0\u6cb9\u5361\u4e8e09\u670822\u65e5 17\u65f612\u5206\u5145\u503c\u6210\u529f,\u91d1\u989d500\u5143,\u8ba2\u5355\u53f7:2521092217126714"}';
  959. // $params = json_decode($body, true);
  960. // $provider = $this->getProvider('menggu','RefillCallBack');
  961. // $ret = $provider->verify($params);
  962. // $resp = $provider->notify($params);
  963. }
  964. public function testMenggu_hf()
  965. {
  966. $provider = $this->getProvider('menggu_hf');
  967. // $resp = $provider->balance();
  968. $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
  969. // $resp = $provider->query(['order_sn' => '24481632298991701065']);
  970. // $body = '{"orderId":"210922162318123069","appId":"1hqLCRUja7","outOrderId":"24481632298991701065","sign":"73faefba3e179641af0df6f59becce8f","orderStatus":"3","completeTime":"20210922162451","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
  971. // $params = json_decode($body, true);
  972. // $provider = $this->getProvider('menggu_hf','RefillCallBack');
  973. // $ret = $provider->verify($params);
  974. // $resp = $provider->notify($params);
  975. }
  976. public function testChizeng()
  977. {
  978. $provider = $this->getProvider('chizeng');
  979. // $resp = $provider->balance();
  980. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  981. $resp = $provider->query(['order_sn' => '7013163540140101017048563']);
  982. // $body = '{"orderid":"UQX21102814052855105","sporderid":"71241635401103845030","userid":"10002523","merchantsubmittime":"20211028140512","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-28.35","sign":"0B97DC1E16EC3BC5F139AAC3FB4C51BF"}';
  983. // $params = json_decode($body, true);
  984. // $provider = $this->getProvider('chizeng','RefillCallBack');
  985. // $ret = $provider->verify($params);
  986. // $resp = $provider->notify($params);
  987. }
  988. public function testJinxin()
  989. {
  990. // $provider = $this->getProvider('jinxin');
  991. // $resp = $provider->balance();
  992. // $resp = $provider->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]);
  993. // $resp = $provider->query(['order_sn' => '83481632465671278322']);
  994. $body = '{"orderNo":"210924140000185","requestId":"83481632465671278322","sign":"80184350EC5C60445A50C9450D6CFB28","status":1,"supplierNo":"110103353192109241442090289402","timeStamp":"2021-09-24 14:43:07"}';
  995. $params = json_decode($body, true);
  996. $provider = $this->getProvider('jinxin', 'RefillCallBack');
  997. $ret = $provider->verify($params);
  998. $resp = $provider->notify($params);
  999. }
  1000. public function testKachong()
  1001. {
  1002. // $provider = $this->getProvider('kachong');
  1003. // $resp = $provider->balance();
  1004. // $resp = $provider->add(18500608333, 5, 20, ['order_sn' => $this->make_sn()]);
  1005. // $resp = $provider->query(['order_sn' => '30691632889605245135']);
  1006. $body = '{"szAgentId":"200046","szOrderId":"30691632889605245135","szPhoneNum":"18500608333","nDemo":"20","fSalePrice":"19.82","nFlag":"2","szVerifyString":"dbac0df5e9ff2b067f74850f0cf55f3c","szRtnMsg":"982100337029603"}';
  1007. $params = json_decode($body, true);
  1008. $provider = $this->getProvider('kachong', 'RefillCallBack');
  1009. $ret = $provider->verify($params);
  1010. $resp = $provider->notify($params);
  1011. }
  1012. public function testXingzyNormal()
  1013. {
  1014. // $provider = $this->getProvider('xingzy_normal');
  1015. // $resp = $provider->balance();
  1016. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  1017. // $resp = $provider->query(['order_sn' => '62881632898853651364']);
  1018. $body = '{"access_key":"211394711","code":3,"data":{"sellprice":28.65,"phone":"18500608333","pass":null,"official_id":null,"official_ch":null},"orderid":210929150115656000,"out_trade_no":"62881632898853651364","sign":"qIkEYEougSzg3EImlHTJKBHv4OQ=","timestamp":1632898943485}';
  1019. $params = json_decode($body, true);
  1020. $provider = $this->getProvider('xingzy_normal', 'RefillCallBack');
  1021. $ret = $provider->verify($params);
  1022. $resp = $provider->notify($params);
  1023. }
  1024. public function testDingxin()
  1025. {
  1026. $provider = $this->getProvider('dingxin');
  1027. $resp = $provider->balance();
  1028. }
  1029. public function testPushang()
  1030. {
  1031. $provider = $this->getProvider('pushang');
  1032. // $resp = $provider->balance();
  1033. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  1034. $resp = $provider->query(['order_sn' => '23391632986567769626']);
  1035. // $body = '{"msg":"\u8d26\u52a1\u6263\u6b3e\u5931\u8d25","extOrderId":"22081632982700152800","orderId":"R2021093014240000154555","salePrice":"30.0900","sign":"b0fe238f16e516316729589d42ab97b1","state":"5","exchangeTraded":""}';
  1036. // $params = json_decode($body, true);
  1037. // $provider = $this->getProvider('pushang','RefillCallBack');
  1038. // $ret = $provider->verify($params);
  1039. // $resp = $provider->notify($params);
  1040. }
  1041. public function testDinghui()
  1042. {
  1043. // $providers = $this->getProvider('dinghui');
  1044. // $resp = $providers->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
  1045. // $resp = $providers->query(['order_sn' => '84891634279500368841']);
  1046. // $body = '{"method":"order.charge.status.update.notify","format":"json","sign":"26f66f194771ca278f39fa9c9c53222f6347abbe79a8a1c8987342116c5eec9f5737e387630e82f024663ec0b82a2cfd1f2da4731aac118ecacf700c110b865166b1dd20d7225b52aee37d91ce12f534c5d480da843d0b824d165d7bba90cb63a9556d4395b59492a25ee97a3ca099d12bc3b7366f6c2d832f02306615baf5cda391b91c1c2cbe8935e2dfbc7b648c747cbfbd8d4767f0dc7582f558607fe821b12ff607dcfbbc14bbac1064f15d36fd741503287e8075fd7b7106bffaccaf2173740a51838419c24bd61bc8cde53d336972f2c8ff3d526542139271da9c7b95247db886feb22e74cefcc82ae0d2ff228343759d2fc51e986f09a61716f1833e","message":"5l8ZOxxDVYYDNBWWJ06QDGbbsMPeV5eLpb\/gmCweXM\/BR1l+I09T73OvhPsA8ujFLw4oReK7P+z\/DTU2tFn83I+6YU4QgTiLVp3tW\/kKaKmUhTB+BQZhnVk39wHZD4BBeDlTlAkmU6mskB8MCO9xG5W11vhrSn16ssG6CFEYcpkvDihF4rs\/7P8NNTa0Wfzc78MrVtylby5Lw8MIrIbtfr62lBQ9jUm2lMFeQVBUZ9GUhTB+BQZhnVk39wHZD4BBNoOYx9z9iwfCLYmU0ili4A==","msgtype":"notify_msg","version":"V2.0","app_id":"yeziapi","notify_id":"0000017c78f9c8190130d3298000000a","timestamp":"1634117208089"}';
  1047. // $params = json_decode($body, true);
  1048. $params['method'] = 'order.charge.status.update.notify';
  1049. $params['format'] = 'json';
  1050. $params['sign'] = '60d4e658cb730b9d8cc0c451414de9b51b79d14fa217261f7bbcf4a3472553b093a5c2377abba9573ed9d5e1a39a9f693830671ff1e641cc97a9782d2b2f393bed6a7bd22be0c642a13e20a7c6cf9f562c11ae65335758bd58ee55853b555cc2e511b6655c6e944a9defa6f0247263578d1554ff7709a7ced90db93911562dcb485518a4da3c21cb650ff01cacfcfa8dd9de533f5a5be2accc065e23cbd38b1b104e15feb3ce823c8cb7c7d5adf3fef0be768d8c25dc813a9112a14ec54a9e2ee517a5ba5b9ce2234dd4329b61c5456a82405aa6d2a307b4ec04be52bd1e3e5b204a2a4d7899d6fbf0fc09cd443cddc947f02bf58730142e9edc2b98eeeae086';
  1051. $params['message'] = 'GYmjEFMoy5jUfg/Ju7NRCSyaoyg2fu9EWpABAHb55xKpkvIedqXPDqRwG6Lo7iNx0A2yc6/IaU7vqwNV9YEVZOwHBDtsGXuHK1GCq5KUaW70pq1wEKr6kgjAHDITH7XdB3jmdSAQFhQYTi5hCz5EWWAzRKLYgTZeDksePKshm67QDbJzr8hpTu+rA1X1gRVkVqAL750crFPclgeWEYFG4mO4ZlmqygUrgz4si+seZ3f0pq1wEKr6kgjAHDITH7XdkFLNHratZfufbZKIZ5r+CA==';
  1052. $params['msgtype'] = 'notify_msg';
  1053. $params['version'] = 'V2.0';
  1054. $params['app_id'] = 'yeziapi';
  1055. $params['notify_id'] = '0000017c83f4786201547473800e31ee';
  1056. $params['timestamp'] = '1634301409378';
  1057. $providers = $this->getProvider('dinghui', 'RefillCallBack');
  1058. $ret = $providers->verify($params);
  1059. $resp = $providers->notify($params);
  1060. }
  1061. public function testHuafutong()
  1062. {
  1063. // $provider = $this->getProvider('huafutong');
  1064. // $resp = $provider->balance();
  1065. // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]);
  1066. // $resp = $provider->query(['order_sn' => '48151634200413207059']);
  1067. $body = '{"PostData":"MJ88hD85bb2VPjI+q9R64jrR2TnZQSUn+4PHZCz1of27YQswyLKdNoNyyNuVEd2+98raKRC0pD+KFQf6beJn5mgOe+u9JjTtqxM5VcVYX93DQACU1ZdfJ+rSx5WRMwvi"}';
  1068. $params = json_decode($body, true);
  1069. $provider = $this->getProvider('huafutong', 'RefillCallBack');
  1070. $data = $provider->notify($params);
  1071. }
  1072. public function testShuoruan()
  1073. {
  1074. $provider = $this->getProvider('shuoruan');
  1075. // $resp = $provider->balance();
  1076. $resp = $provider->add(13911129867, 5, 10, ['order_sn' => $this->make_sn()]);
  1077. // $resp = $provider->query(['order_sn' => '80261634802627091026']);
  1078. $params['Action'] = 'CX';
  1079. $params['AgentAccount'] = '18600608333';
  1080. $params['Agentbalance'] = '-9.970';
  1081. $params['Orderid'] = '80261634802627091026';
  1082. $params['Chargeid'] = '2162076796';
  1083. $params['Orderstatu_int'] = '16';
  1084. $params['Orderstatu_text'] = '缴费成功_';
  1085. $params['TransCash'] = '10.000';
  1086. $params['OrderPayment'] = '9.970';
  1087. $params['Errorcode'] = '0000';
  1088. $params['Errormsg'] = '';
  1089. $params['Sign'] = '654fbc24c3d0878247bc3be3ed699f16';
  1090. $provider = $this->getProvider('shuoruan', 'RefillCallBack');
  1091. // $ret = $provider->verify($params);
  1092. // $data = $provider->notify($params);
  1093. }
  1094. public function testLinzhu()
  1095. {
  1096. // $provider = $this->getProvider('linzhu');
  1097. // $resp = $provider->balance();
  1098. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  1099. // $resp = $provider->query(['order_sn' => '43881634986696312260']);
  1100. $body = '{"orderNo":"F2110231858443112627","status":"019","consumerNo":"43881634986696312260","voucherNo":null,"mobile":"18500608333"}';
  1101. $params = json_decode($body, true);
  1102. $provider = $this->getProvider('linzhu', 'RefillCallBack');
  1103. $ret = $provider->verify($params);
  1104. $data = $provider->notify($params);
  1105. }
  1106. public function testFangxing()
  1107. {
  1108. $provider = $this->getProvider('fangxing');
  1109. // $resp = $provider->balance();
  1110. // $resp = $provider->add(13898167806, 4, 10, ['order_sn' => $this->make_sn(), 'order_id' => 111111]);
  1111. $resp = $provider->query(['order_sn' => '82581635239506988570']);
  1112. $body = '{"orderId":"O21102617115969210570","respCode":"10003","respMsg":"\u6210\u529f \u5bf9\u7aef\u6d41\u6c34\u53f7: 21102617611981771","sign":"013F54D5E415668D3E012BBDE9E4BF16","transNo":"82581635239506988570"}';
  1113. $params = json_decode($body, true);
  1114. $provider = $this->getProvider('fangxing', 'RefillCallBack');
  1115. $ret = $provider->verify($params);
  1116. $data = $provider->notify($params);
  1117. }
  1118. public function testHuafutongMan()
  1119. {
  1120. // $provider = $this->getProvider('huafutongman');
  1121. // $resp = $provider->balance();
  1122. // $resp = $provider->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]);
  1123. // $resp = $provider->query(['order_sn' => '73721635476007331621']);
  1124. $body = '{"PostData":"1Gi96e4PzohQIdxj8W4uOH4Q5pzT8ZHyCc+ZpTl7XEEF5TPgXffD32KLy0l2fZ7X36qZTO4JJA\/4nhWJRERklMy1FQuan825KK5vy2zQ6FOxg8vXMy0e7HOVg0kx123i"}';
  1125. $params = json_decode($body, true);
  1126. $provider = $this->getProvider('huafutongman', 'RefillCallBack');
  1127. $data = $provider->notify($params);
  1128. }
  1129. public function testFeimingyu()
  1130. {
  1131. // $provider = $this->getProvider('feimingyu');
  1132. // $resp = $provider->balance();
  1133. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  1134. // $resp = $provider->query(['order_sn' => '99741635757876781160']);
  1135. $body = '{"userid":"69876","order_id":"21110117111869876daed6b187","account":"18500608333","amount":"30","price":"28.41","state":"failed","user_order":"99741635757876781160","sign":"C82F4821547BBFC462E9758EE28287E1","voucher":""}';
  1136. $params = json_decode($body, true);
  1137. $provider = $this->getProvider('feimingyu', 'RefillCallBack');
  1138. $ret = $provider->verify($params);
  1139. $resp = $provider->notify($params);
  1140. }
  1141. public function testDashangnormal()
  1142. {
  1143. // $provider = $this->getProvider('dashang_normal');
  1144. // $resp = $provider->balance();
  1145. // $resp = $provider->add(18074608795, 6, 30, ['order_sn' => $this->make_sn()]);
  1146. // $resp = $provider->query(['order_sn' => '34461636081408575185']);
  1147. $body = '{"userId":"80800357","bizId":"60040030","ejId":"91105110431325","downstreamSerialno":"34461636081408575185","status":"3","voucher":"","voucherType":"0","sign":"24a40c2b677820533e418d4a2b3f0806"}';
  1148. $params = json_decode($body, true);
  1149. $provider = $this->getProvider('dashang_normal', 'RefillCallBack');
  1150. $ret = $provider->verify($params);
  1151. $resp = $provider->notify($params);
  1152. }
  1153. public function testHuafutong_doubi()
  1154. {
  1155. $provider = $this->getProvider('huafutong_doubi');
  1156. // $resp = $provider->balance();
  1157. $resp = $provider->add(588073521, 7, 100, [
  1158. 'order_sn' => $this->make_sn(),
  1159. 'product_code' => 'XYZ100747'
  1160. ]);
  1161. // $resp = $provider->query(['order_sn' => '53151629791019902609']);
  1162. // $body = '{"order_no":"59251629777055495341","channel_order_no":"C2108241152003775025","status":3,"money":"100.00","cost_money":"97.00","mch_no":210303112631,"account":"588073521","official_sn":"","sign":"7d7b3e701865b54c8cf0d9e903fdf6bf"}';
  1163. // $params = json_decode($body, true);
  1164. // $provider = $this->getProvider('huafutong_doubi','RefillCallBack');
  1165. // $ret = $provider->verify($params);
  1166. // $resp = $provider->notify($params);
  1167. }
  1168. public function testYunchonggongfs()
  1169. {
  1170. // $provider = $this->getProvider('yunchonggongfs');
  1171. // $resp = $provider->balance();
  1172. // $resp = $provider->add(13935705732, 4, 30, ['order_sn' => $this->make_sn(), 'regin_no' => 4]);
  1173. // $resp = $provider->query(['order_sn' => '44721636430254462028']);
  1174. $body = '{"orderId":"211109115744298048","appId":"Z1sU5unYK7","outOrderId":"44721636430254462028","sign":"a368d3f6a8c2ec2d2dbd587f9a78a937","orderStatus":"3","completeTime":"20211109115840","orderDesc":"timeout"}';
  1175. $params = json_decode($body, true);
  1176. $provider = $this->getProvider('yunchonggongfs', 'RefillCallBack');
  1177. $ret = $provider->verify($params);
  1178. $resp = $provider->notify($params);
  1179. }
  1180. public function testDingchi()
  1181. {
  1182. // $provider = $this->getProvider('dingchi');
  1183. // $resp = $provider->balance();
  1184. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  1185. // $resp = $provider->query(['order_sn' => '70651636508446628072']);
  1186. $body = '{"userId":"671","bizId":"200","id":"32894267","downstreamSerialno":"70651636508446628072","status":"2","statusDesc":"","extend":"100101101002111100940543157996","sign":"984c4708c14d0c2e08295c5010109ecf"}';
  1187. $params = json_decode($body, true);
  1188. $provider = $this->getProvider('dingchi', 'RefillCallBack');
  1189. $ret = $provider->verify($params);
  1190. $resp = $provider->notify($params);
  1191. }
  1192. public function testYanhao()
  1193. {
  1194. // $provider = $this->getProvider('yanhao');
  1195. // $resp = $provider->balance();
  1196. // $resp = $provider->add(2423503330, 5, 30, ['order_sn' => $this->make_sn()]);
  1197. // $resp = $provider->query(['order_sn' => '49571636609949577130']);
  1198. $body = '{"Account":"2423503330","ProductNumber":"PLM100020","Count":"1","UserOrderId":"49571636609949577130","OutOrderID":"211111135254371000","Status":"2","UserId":"211394995","TimesTamp":"1636610036767","Sign":"096017A3D80B998DC2AFA16779E09F9F","Extend":"{\"OfficialDes\":null,\"OfficialOrderID\":null}","ChargeMsg":""}';
  1199. $params = json_decode($body, true);
  1200. $provider = $this->getProvider('yanhao', 'RefillCallBack');
  1201. $ret = $provider->verify($params);
  1202. $resp = $provider->notify($params);
  1203. }
  1204. public function testYikatongfs()
  1205. {
  1206. $provider = $this->getProvider('yikatongfs');
  1207. // $resp = $provider->balance();
  1208. // $resp = $provider->add(13935705732, 5, 30, ['order_sn' => $this->make_sn()]);
  1209. $resp = $provider->query(['order_sn' => '30551636705402587123']);
  1210. // $body = '{"userid":"921416e51e434e0f94fa","ordernum":"34051636704939956177","mobile":"13935705732","timestamp":"20211112161545","state":"3","desc":"%E5%85%85%E5%80%BC%E5%A4%B1%E8%B4%A5%21","sign":"37cc198c1315c0a334f8c983f8dbec8a"}';
  1211. // $params = json_decode($body, true);
  1212. // $provider = $this->getProvider('yikatongfs','RefillCallBack');
  1213. // $ret = $provider->verify($params);
  1214. // $resp = $provider->notify($params);
  1215. }
  1216. public function testLexiangLt()
  1217. {
  1218. // $provider = $this->getProvider('lexianglt');
  1219. // $resp = $provider->balance();
  1220. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  1221. // $resp = $provider->query(['order_sn' => '48911637136021090867']);
  1222. $body = '{"PostData":"405deLsCOS2UNQTOH\/M+3IWDDMm841EhhBwTgdasFvVqqVS3RHA6YdIzxAS2g8PIjmie1mOw+aNzXZ\/8rVR8lQTjoaeOCkE04cTc07JvDe1IDtvO2e66u+zzO+x0MUfU"}';
  1223. $params = json_decode($body, true);
  1224. $provider = $this->getProvider('lexianglt', 'RefillCallBack');
  1225. $ret = $provider->verify($params);
  1226. $resp = $provider->notify($params);
  1227. }
  1228. public function testXiaoniu_doubi()
  1229. {
  1230. // $provider = $this->getProvider('xiaoniu_doubi');
  1231. // $resp = $provider->balance();
  1232. // $resp = $provider->add(61841435, 7, 100, ['order_sn' => $this->make_sn(), 'product_code' => 'XYZ100747']);
  1233. // $resp = $provider->query(['order_sn' => '22971637223235623767']);
  1234. $body = '{"content":"","realAmt":"92.0000","status":"1","timestamp":"20211118161507","sign":"28598a6c4674294aecb0337ef20b4e02","orderNo":"XN20211118161400122361716","mOrderNo":"22971637223235623767"}';
  1235. $params = json_decode($body, true);
  1236. $provider = $this->getProvider('xiaoniu_doubi', 'RefillCallBack');
  1237. $ret = $provider->verify($params);
  1238. $resp = $provider->notify($params);
  1239. }
  1240. public function testGuantu()
  1241. {
  1242. $provider = $this->getProvider('guantu');
  1243. // $resp = $provider->balance();
  1244. // $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]);
  1245. $resp = $provider->query(['order_sn' => '82321639620607197216']);
  1246. // $body = '{"orderId":"211207110843025294","appId":"sprTIuIsst","outOrderId":"86151638846512034929","sign":"a94dc11a88831c4cc9cf79cd2dc4b60c","orderStatus":"3","completeTime":"20211207110903","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
  1247. // $params = json_decode($body, true);
  1248. // $provider = $this->getProvider('guantu','RefillCallBack');
  1249. // $ret = $provider->verify($params);
  1250. // $resp = $provider->notify($params);
  1251. }
  1252. public function testYiqian()
  1253. {
  1254. $provider = $this->getProvider('yiqian');
  1255. // $resp = $provider->balance();
  1256. // $resp = $provider->add(185001234561608333, 5, 10, ['order_sn' => $this->make_sn()]);
  1257. $resp = $provider->query(['order_sn' => '58661639626089905328']);
  1258. // $body = '{"extOrderId":"12871637568430713782","orderId":"R2021112216240026238817","salePrice":"9.9950","sign":"b42f61bfb59f9f36c26c68e4f37f5a19","state":"4","exchangeTraded":"110103308002111221607170298685"}';
  1259. // $params = json_decode($body, true);
  1260. // $provider = $this->getProvider('yiqian','RefillCallBack');
  1261. // $ret = $provider->verify($params);
  1262. // $resp = $provider->notify($params);
  1263. }
  1264. public function testYinghuochong()
  1265. {
  1266. // $provider = $this->getProvider('yinghuochong');
  1267. // $resp = $provider->balance();
  1268. // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
  1269. // $resp = $provider->query(['order_sn' => '14911637655330156024']);
  1270. $body = '{"times":"20211123161536","orderId":"2021112316151926232932","voucher":"","customerOrderId":"14911637655330156024","qyKey":"qhsvsyvj9rsekyvadlctr1ptx135fb3t","sign":"15D3272BE7BB7B038EEC9EA344C86567","status":"2"}';
  1271. $params = json_decode($body, true);
  1272. $provider = $this->getProvider('yinghuochong', 'RefillCallBack');
  1273. $ret = $provider->verify($params);
  1274. $resp = $provider->notify($params);
  1275. }
  1276. public function testMeixu()
  1277. {
  1278. // $provider = $this->getProvider('meixu');
  1279. // $resp = $provider->balance();
  1280. // $resp = $provider->add(18500608333, 5, 10, ['order_sn' => $this->make_sn()]);
  1281. // $resp = $provider->query(['order_sn' => '89361637662404606711']);
  1282. $body = '{"orderid":"XOJ21112318130505847","sporderid":"89361637662404606711","userid":"10003105","merchantsubmittime":"20211123181328","resultno":"9","parvalue":"10","remark1":"","payno":"","fundbalance":"-10.02","sign":"634194D21B034356F32C5A9FB045F23F"}';
  1283. $params = json_decode($body, true);
  1284. $provider = $this->getProvider('meixu', 'RefillCallBack');
  1285. $ret = $provider->verify($params);
  1286. $resp = $provider->notify($params);
  1287. }
  1288. public function testFuyuan()
  1289. {
  1290. // $provider = $this->getProvider('fuyuan');
  1291. // $resp = $provider->balance();
  1292. // $resp = $provider->add(13699279618, 4, 10, ['order_sn' => $this->make_sn()]);
  1293. // $resp = $provider->query(['order_sn' => '60431637736327027514']);
  1294. $body = '{"agentid":"100354","mobile_num":"13699279618","charge_time":"20211124","operator":"\u79fb\u52a8","fy_order_no":"333876728","cp_order_no":"60431637736327027514","amount":"10","status":"3","sign":"3a271b104cb0c9d6d157e75e538c6b11","remark":"\u5145\u503c\u6210\u529f","flowNo":""}';
  1295. $params = json_decode($body, true);
  1296. $provider = $this->getProvider('fuyuan', 'RefillCallBack');
  1297. $ret = $provider->verify($params);
  1298. $resp = $provider->notify($params);
  1299. }
  1300. public function testDongye()
  1301. {
  1302. $provider = $this->getProvider('dongye');
  1303. // $resp = $provider->balance();
  1304. $resp = $provider->add(15139608757, 4, 10, ['order_sn' => $this->make_sn()]);
  1305. // $resp = $provider->query(['order_sn' => '94031638352288398624']);
  1306. // $body = '{"orderid":"NYG21113016502782946","sporderid":"33391638262247818098","userid":"10003105","merchantsubmittime":"20211130165104","resultno":"1","parvalue":"30","remark1":"100101101012111301651024042626","payno":"100101101012111301651024042626","fundbalance":"-30.075","sign":"4075B5A1D2639B19B91AC2FF45B5CFFE"}';
  1307. // $params = json_decode($body, true);
  1308. // $provider = $this->getProvider('dongye','RefillCallBack');
  1309. // $ret = $provider->verify($params);
  1310. // $resp = $provider->notify($params);
  1311. }
  1312. public function testDongyefs()
  1313. {
  1314. $provider = $this->getProvider('dongyefs');
  1315. // $resp = $provider->balance();
  1316. // [$goods_id, $price] = $provider->goods(1, 10, 4, 6, []);
  1317. // $resp = $provider->add(13898167806, 4, 10, ['order_sn' => $this->make_sn(),'regin_no' => 6]);
  1318. $resp = $provider->query(['order_sn' => '24461638757715661527']);
  1319. }
  1320. public function testBaixuan()
  1321. {
  1322. // $provider = $this->getProvider('baixuan');
  1323. // $resp = $provider->balance();
  1324. // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]);
  1325. // $resp = $provider->query(['order_sn' => '22241638773647636323']);
  1326. $body = '{"orderId":"211206145422241449","appId":"Hs2pvfcPTK","outOrderId":"22241638773647636323","sign":"acdd4cdbf6c9ad8d1eec12070caef9c7","orderStatus":"3","completeTime":"20211206145422","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
  1327. $params = json_decode($body, true);
  1328. $provider = $this->getProvider('baixuan', 'RefillCallBack');
  1329. $ret = $provider->verify($params);
  1330. $resp = $provider->notify($params);
  1331. }
  1332. public function testBaixuan_normal()
  1333. {
  1334. // $provider = $this->getProvider('baixuan_normal');
  1335. // $resp = $provider->balance();
  1336. // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]);
  1337. // $resp = $provider->query(['order_sn' => '79931638775980503797']);
  1338. $body = '{"orderId":"211206153306269670","appId":"ntzRlj2kNV","outOrderId":"79931638775980503797","sign":"f67939b937f818e97c551e76b4b4e5ea","orderStatus":"3","completeTime":"20211206153309","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
  1339. $params = json_decode($body, true);
  1340. $provider = $this->getProvider('baixuan_normal', 'RefillCallBack');
  1341. $ret = $provider->verify($params);
  1342. $resp = $provider->notify($params);
  1343. }
  1344. public function testCangbuYd()
  1345. {
  1346. // $provider = $this->getProvider('cangbuyd');
  1347. // $resp = $provider->balance();
  1348. // $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]);
  1349. // $resp = $provider->query(['order_sn' => '12441638778449837197']);
  1350. $body = '{"customerId":"220","tmporder":"12441638778449837197","orderno":"s16387784558073061114220","number":"13699279618","money":"50","amount":"47.9500","code":"-1","cardno":"","voucher":"","sign":"6623dbe8e392b61ddc843e16804e9eed"}';
  1351. $params = json_decode($body, true);
  1352. $provider = $this->getProvider('cangbuyd', 'RefillCallBack');
  1353. $ret = $provider->verify($params);
  1354. $resp = $provider->notify($params);
  1355. }
  1356. public function testShangtou()
  1357. {
  1358. // $provider = $this->getProvider('shangtou');
  1359. // $resp = $provider->balance();
  1360. // $resp = $provider->add(1004638637, 4, 100, ['order_sn' => $this->make_sn()]);
  1361. // $resp = $provider->query(['order_sn' => '88791638870099595473']);
  1362. $body = '{"order_id":"88791638870099595473","out_order_id":"EZZbg23f4K487498","orderBillNo":"","mchid":"20126","account":"1004638637","price":"100","status":"1","sign":"87c3fc2beaabb107ef80c06dd186742f"}';
  1363. $params = json_decode($body, true);
  1364. $provider = $this->getProvider('shangtou', 'RefillCallBack');
  1365. $ret = $provider->verify($params);
  1366. $resp = $provider->notify($params);
  1367. }
  1368. public function testGuantufs()
  1369. {
  1370. $provider = $this->getProvider('guantufs');
  1371. // $resp = $provider->balance();
  1372. $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]);
  1373. // $resp = $provider->query(['order_sn' => '88791638870099595473']);
  1374. }
  1375. public function testRuixunda()
  1376. {
  1377. // $provider = $this->getProvider('ruixunda');
  1378. // $resp = $provider->balance();
  1379. // $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]);
  1380. // $resp = $provider->query(['order_sn' => '35541639548211758246']);
  1381. $body = '{"orderId":"211215140335739778","appId":"kU6tn6YMjx","outOrderId":"35541639548211758246","sign":"524851b131c90398626e0e8798b73579","orderStatus":"3","completeTime":"20211215140440","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
  1382. $params = json_decode($body, true);
  1383. $provider = $this->getProvider('ruixunda', 'RefillCallBack');
  1384. $ret = $provider->verify($params);
  1385. $resp = $provider->notify($params);
  1386. }
  1387. public function testDashang_kami()
  1388. {
  1389. $provider = $this->getProvider('dashang_kami');
  1390. $resp = $provider->balance();
  1391. }
  1392. public function testWenye_oil()
  1393. {
  1394. $provider = $this->getProvider('wenye_oil', 'RefillOil');
  1395. $resp = $provider->add(1000111100021211884, 2, 100, ['order_sn' => $this->make_sn()]);
  1396. }
  1397. public function testYunlingdf()
  1398. {
  1399. // $provider = $this->getProvider('yunlingdf');
  1400. // $resp = $provider->add(1004638637, 4, 50, ['order_sn' => $this->make_sn(), 'province' => 1]);
  1401. // $resp = $provider->query(['order_sn' => '52311640682774916978']);
  1402. $body = '{"orderid":"RCE21122817138556500","sporderid":"52311640682774916978","userid":"10002623","merchantsubmittime":"20211228182932","resultno":"1","parvalue":"50","remark1":"50.00","payno":"50.00","fundbalance":"-46.5","sign":"B40807706460BAF9CBE150166633F20A"}';
  1403. $params = json_decode($body, true);
  1404. $provider = $this->getProvider('yunlingdf', 'RefillCallBack');
  1405. $ret = $provider->verify($params);
  1406. $resp = $provider->notify($params);
  1407. }
  1408. public function testYamiao_high()
  1409. {
  1410. $provider = $this->getProvider('yamiao_high');
  1411. $resp = $provider->balance();
  1412. // $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]);
  1413. // $resp = $provider->query(['order_sn' => '63301640162626708212']);
  1414. // $body = '{"orderId":"211222164353000006","appId":"piFzrSOCIy","outOrderId":"63301640162626708212","sign":"558e9992d99fb5e9dd47b1f5a7677b01","orderStatus":"3","completeTime":"20211222164445","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
  1415. // $params = json_decode($body, true);
  1416. // $provider = $this->getProvider('yamiao_high','RefillCallBack');
  1417. // $ret = $provider->verify($params);
  1418. // $resp = $provider->notify($params);
  1419. }
  1420. public function testYamiao_normal()
  1421. {
  1422. $provider = $this->getProvider('yamiao_normal');
  1423. $resp = $provider->balance();
  1424. // $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]);
  1425. // $resp = $provider->query(['order_sn' => '95951640223816352024']);
  1426. // $body = '{"orderId":"211223094402000046","appId":"1pjrA9YErq","outOrderId":"95951640223816352024","sign":"5bd7135f5ef35c8f111eddfc06593941","orderStatus":"3","completeTime":"20211223094512","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
  1427. // $params = json_decode($body, true);
  1428. // $provider = $this->getProvider('yamiao_normal','RefillCallBack');
  1429. // $ret = $provider->verify($params);
  1430. // $resp = $provider->notify($params);
  1431. }
  1432. public function testJiyemei_doubi()
  1433. {
  1434. $provider = $this->getProvider('jiyemei_doubi');
  1435. // $resp = $provider->balance();
  1436. $resp = $provider->add(588073521, mtopcard\ThirdRefillCard, 50, ['order_sn' => $this->make_sn(), 'product_code' => 'XYZ100753']);
  1437. // $resp = $provider->query(['order_sn' => '87081640849391308752']);
  1438. // $body ='{"userid":"da5fe7253b97460fb84d","ordernum":"87081640849391308752","mobile":"588073521","timestamp":"20211230153015","state":"2","desc":"%E5%85%85%E5%80%BC%E6%88%90%E5%8A%9F","serialno":"10000017047394231199159327","sign":"0feea71ea06c91bf67c6d866c050ca88"}';
  1439. // $params = json_decode($body, true);
  1440. // $provider = $this->getProvider('jiyemei_doubi','RefillCallBack');
  1441. // $ret = $provider->verify($params);
  1442. // $resp = $provider->notify($params);
  1443. }
  1444. public function testJiyemei()
  1445. {
  1446. // $provider = $this->getProvider('jiyemei');
  1447. // $resp = $provider->balance();
  1448. // $resp = $provider->add(13699279618, mtopcard\ChinaMobileCard, 50, ['order_sn' => $this->make_sn()]);
  1449. // $resp = $provider->query(['order_sn' => '22041640934793168827']);
  1450. $body = '{"userid":"80dfaeabbb7240268ac8","ordernum":"22041640934793168827","mobile":"13699279618","timestamp":"20211231151434","state":"3","desc":"%E5%85%85%E5%80%BC%E5%A4%B1%E8%B4%A5%21","sign":"4415ebb690da66aa8c0cf58a7130f1a5"}';
  1451. $params = json_decode($body, true);
  1452. $provider = $this->getProvider('jiyemei', 'RefillCallBack');
  1453. $ret = $provider->verify($params);
  1454. $resp = $provider->notify($params);
  1455. }
  1456. public function testCangxin()
  1457. {
  1458. $provider = $this->getProvider('cangxin');
  1459. // $resp = $provider->balance();
  1460. // $resp = $provider->add(13699279618, mtopcard\ChinaMobileCard, 100, ['order_sn' => $this->make_sn()]);
  1461. $resp = $provider->query(['order_sn' => '7388320697632252006499']);
  1462. // $body = '{"sysOrderNo":"R16409227448286K55VRJ","clientId":"10025","verifyString":"557363563501c97e9aa2f5cecc0b3679","clientOrderNo":"66891640922736203952","status":"3"}';
  1463. // $params = json_decode($body, true);
  1464. // $provider = $this->getProvider('cangxin','RefillCallBack');
  1465. // $ret = $provider->verify($params);
  1466. // $resp = $provider->notify($params);
  1467. }
  1468. public function testBaixuannew_high()
  1469. {
  1470. // $provider = $this->getProvider('baixuannew_high');
  1471. // $resp = $provider->balance();
  1472. // $resp = $provider->add(13699279618, mtopcard\ChinaMobileCard, 50, ['order_sn' => $this->make_sn()]);
  1473. // $resp = $provider->query(['order_sn' => '24051641457089799916']);
  1474. $body = '{"orderid":"PLN22010616189234154","sporderid":"24051641457089799916","userid":"10002504","merchantsubmittime":"20220106162023","resultno":"9","parvalue":"50","remark1":"","payno":"","fundbalance":"-48.1","sign":"0279426E9CCEF5366B422D44DB5976C1"}';
  1475. $params = json_decode($body, true);
  1476. $provider = $this->getProvider('baixuannew_high', 'RefillCallBack');
  1477. $ret = $provider->verify($params);
  1478. $resp = $provider->notify($params);
  1479. }
  1480. public function testYouhenew()
  1481. {
  1482. // $provider = $this->getProvider('youhenew');
  1483. // $resp = $provider->balance();
  1484. // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]);
  1485. // $resp = $provider->query(['order_sn' => '77201646366493835757']);
  1486. $body = '{"szOrderId":"77201646366493835757","fSalePrice":"28.59","szAgentId":"200038","nFlag":"3","szVerifyString":"bdaa73499a506839654d4b9c36c6831a","szPhoneNum":"18500608333","szRtnMsg":"","nDemo":"30"}';
  1487. $params = json_decode($body, true);
  1488. $provider = $this->getProvider('youhenew', 'RefillCallBack');
  1489. $ret = $provider->verify($params);
  1490. $resp = $provider->notify($params);
  1491. }
  1492. public function testHuoshenguo()
  1493. {
  1494. // $provider = $this->getProvider('huoshenguo');
  1495. // $resp = $provider->balance();
  1496. // $resp = $provider->add(13699279618, mtopcard\ChinaMobileCard, 50, ['order_sn' => $this->make_sn()]);
  1497. // $resp = $provider->query(['order_sn' => '90691642049771400349']);
  1498. $body = '{"orderId":"220113125625000016","appId":"xaPOF8SAEG","outOrderId":"90691642049771400349","sign":"b00285a7eabef29b0a0ad400ce8a3ea0","orderStatus":"3","completeTime":"20220113125843","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
  1499. $params = json_decode($body, true);
  1500. $provider = $this->getProvider('huoshenguo', 'RefillCallBack');
  1501. $ret = $provider->verify($params);
  1502. $resp = $provider->notify($params);
  1503. }
  1504. public function testXinhengyangnew()
  1505. {
  1506. // $provider = $this->getProvider('xinhengyangnew');
  1507. // $resp = $provider->balance();
  1508. // $resp = $provider->add(13699279618, mtopcard\ChinaMobileCard, 30, ['order_sn' => $this->make_sn()]);
  1509. // $resp = $provider->query(['order_sn' => '90991642572014786398']);
  1510. $body = '{"mchid":"200050","msg":"充值失败","oid":"1000325764014","orderid":"90991642572014786398","price":28.62,"sign":"56db7e6a4748a74bd1fac1a1ad5e8d6d","status":2,"voucher":""}';
  1511. $params = json_decode($body, true);
  1512. $provider = $this->getProvider('xinhengyangnew', 'RefillCallBack');
  1513. $ret = $provider->verify($params);
  1514. $resp = $provider->notify($params);
  1515. }
  1516. public function testTianchen()
  1517. {
  1518. // $provider = $this->getProvider('tianchen');
  1519. // $resp = $provider->balance();
  1520. // $resp = $provider->add(18500608333, mtopcard\ChinaUnicomCard, 500, ['order_sn' => $this->make_sn()]);
  1521. // $resp = $provider->query(['order_sn' => '60701644202744810497']);
  1522. $body = '{"mchid":"100125","msg":"充值失败","oid":"1000061410881","orderid":"60701644202744810497","price":"501.000","sign":"5dc1f9e466f30f02f2756c886ad36020","status":"2","voucher":""}';
  1523. $params = json_decode($body, true);
  1524. $provider = $this->getProvider('tianchen', 'RefillCallBack');
  1525. $ret = $provider->verify($params);
  1526. $resp = $provider->notify($params);
  1527. }
  1528. public function testYunchonggong_lt()
  1529. {
  1530. // $provider = $this->getProvider('yunchonggong_lt');
  1531. // $resp = $provider->balance();
  1532. // $resp = $provider->add(18500608333, mtopcard\ChinaUnicomCard, 50, ['order_sn' => $this->make_sn()]);
  1533. // $resp = $provider->query(['order_sn' => '97971642992760355090']);
  1534. $body = '{"orderId":"220124105256190713","appId":"nOlXoN2jRJ","outOrderId":"97971642992760355090","sign":"81a579f8c935da72fe94ca0960d0a71f","orderStatus":"3","completeTime":"20220124105547","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
  1535. $params = json_decode($body, true);
  1536. $provider = $this->getProvider('yunchonggong_lt', 'RefillCallBack');
  1537. $ret = $provider->verify($params);
  1538. $resp = $provider->notify($params);
  1539. }
  1540. public function testYiqianfs()
  1541. {
  1542. // $provider = $this->getProvider('yiqianfs');
  1543. // $resp = $provider->balance();
  1544. // $resp = $provider->add(13699279618, 4, 10, ['order_sn' => $this->make_sn()]);
  1545. // $resp = $provider->query(['order_sn' => '68971644218662333282']);
  1546. $body = '{"extOrderId":"68971644218662333282","orderId":"R2022020715240046789583","salePrice":"10.0000","sign":"cf59a3d76377cac096ac07c590657af0","state":"5"}';
  1547. $params = json_decode($body, true);
  1548. $provider = $this->getProvider('yiqianfs','RefillCallBack');
  1549. $ret = $provider->verify($params);
  1550. $resp = $provider->notify($params);
  1551. }
  1552. public function testZhutian()
  1553. {
  1554. $provider = $this->getProvider('zhutian');
  1555. // $resp = $provider->add(1004638637, 4, 50, ['order_sn' => $this->make_sn(), 'province' => 1]);
  1556. $resp = $provider->query(['order_sn' => '20661644895674724153']);
  1557. }
  1558. public function testRuizhi()
  1559. {
  1560. // $provider = $this->getProvider('ruizhi');
  1561. // $resp = $provider->balance();
  1562. // $resp = $provider->add(13699279618, 4, 100, ['order_sn' => $this->make_sn()]);
  1563. // $resp = $provider->query(['order_sn' => '66031645157064675953']);
  1564. $body = '{"userid":"65920","order_id":"22021812045065920f2b95cef2","account":"13699279618","amount":"100","price":"100.05","state":"success","user_order":"66031645157064675953","sign":"642AAB4C5A9CC56248AE80113878DB19","voucher":"220218-097370786582375"}';
  1565. $params = json_decode($body, true);
  1566. $provider = $this->getProvider('ruizhi','RefillCallBack');
  1567. $ret = $provider->verify($params);
  1568. $resp = $provider->notify($params);
  1569. }
  1570. public function testRuierxun()
  1571. {
  1572. // $provider = $this->getProvider('ruierxun');
  1573. // $resp = $provider->balance();
  1574. // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]);
  1575. // $resp = $provider->query(['order_sn' => '48011645165293970916']);
  1576. $body = '{"orderId":"220218142143123894","appId":"LaEORKdrnZ","outOrderId":"48011645165293970916","sign":"28f30e616d06e7936d612995bb086d39","orderStatus":"3","completeTime":"20220218142205","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
  1577. $params = json_decode($body, true);
  1578. $provider = $this->getProvider('ruierxun','RefillCallBack');
  1579. $ret = $provider->verify($params);
  1580. $resp = $provider->notify($params);
  1581. }
  1582. public function testNingying()
  1583. {
  1584. // $provider = $this->getProvider('ningying');
  1585. // $resp = $provider->balance();
  1586. // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]);
  1587. // $resp = $provider->query(['order_sn' => '59481645434420716297']);
  1588. $body = '{"orderId":"220221170704698128","appId":"O8y6eOzWY1","outOrderId":"59481645434420716297","sign":"7476bd7d6cb51a5b25a183145d4a0ada","orderStatus":"3","completeTime":"20220221171148","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
  1589. $params = json_decode($body, true);
  1590. $provider = $this->getProvider('ningying','RefillCallBack');
  1591. $ret = $provider->verify($params);
  1592. $resp = $provider->notify($params);
  1593. }
  1594. public function testCangxin_yi()
  1595. {
  1596. // $provider = $this->getProvider('cangxin_yi');
  1597. // $resp = $provider->balance();
  1598. // $resp = $provider->add(15811535608, 4, 50, ['order_sn' => $this->make_sn()]);
  1599. // $resp = $provider->query(['order_sn' => '98761645683605613490']);
  1600. $body = '{"sysOrderNo":"R1645683614014oToK4ua","officialOrderNo":"","clientId":"10043","verifyString":"4040530613390299cf5d432a59dad348","clientOrderNo":"98761645683605613490","status":"4"}';
  1601. $params = json_decode($body, true);
  1602. $provider = $this->getProvider('cangxin_yi','RefillCallBack');
  1603. $ret = $provider->verify($params);
  1604. $resp = $provider->notify($params);
  1605. }
  1606. public function testZhenghe()
  1607. {
  1608. // $provider = $this->getProvider('zhenghe');
  1609. // $resp = $provider->balance();
  1610. // $resp = $provider->add(15811535608, 4, 30, ['order_sn' => $this->make_sn()]);
  1611. // $resp = $provider->query(['order_sn' => '20411645686498504519']);
  1612. $body = '{"szOrderId":"20411645686498504519","fSalePrice":"30.15","szAgentId":"200032","nFlag":"2","szVerifyString":"af368366f759289054328390f419d062","szPhoneNum":"15811535608","szRtnMsg":"","nDemo":"30"}';
  1613. $params = json_decode($body, true);
  1614. $provider = $this->getProvider('zhenghe','RefillCallBack');
  1615. $ret = $provider->verify($params);
  1616. $resp = $provider->notify($params);
  1617. }
  1618. public function testLexiang()
  1619. {
  1620. // $provider = $this->getProvider('lexiang');
  1621. // $resp = $provider->balance();
  1622. // $resp = $provider->add(18074608795, 6, 30, ['order_sn' => $this->make_sn()]);
  1623. // $resp = $provider->query(['order_sn' => '36181645780442291806', 'commit_time' => 1645780259]);
  1624. $body = '{"mchId":"20","mchOrderNo":"36181645780442291806","sysOrderNo":"S202202251714039EusUAV0yO","account":"18074608795","money":"30.0000","status":"2","sign":"c55977367aa083850456c5ec7c14ed87","certificate":"1000000083422022517369130925"}';
  1625. $params = json_decode($body, true);
  1626. $provider = $this->getProvider('lexiang','RefillCallBack');
  1627. $ret = $provider->verify($params);
  1628. $resp = $provider->notify($params);
  1629. }
  1630. public function testKuaikuai()
  1631. {
  1632. // $provider = $this->getProvider('kuaikuai');
  1633. // $resp = $provider->balance();
  1634. // $resp = $provider->add(185006083, 5, 30, ['order_sn' => $this->make_sn()]);
  1635. // $resp = $provider->query(['order_sn' => '48821646219340197679']);
  1636. $body = '{"msg":"100101101012202281653493036477","orderId":"37691646038424123424","createTime":1646038427,"sign":"35df4f13ee4dcaed2d582d709ff66073","orderNum":"2c922ab97f2683b5017f3f89246d1e4a","status":2}';
  1637. $params = json_decode($body, true);
  1638. $provider = $this->getProvider('kuaikuai','RefillCallBack');
  1639. $ret = $provider->verify($params);
  1640. $resp = $provider->notify($params);
  1641. }
  1642. public function testJianjiao()
  1643. {
  1644. $provider = $this->getProvider('jianjiao');
  1645. // $resp = $provider->balance();
  1646. $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]);
  1647. // $resp = $provider->query(['order_sn' => '14481646204704630736']);
  1648. // $body = '{"order_id":"22030215052639807","out_order_id":"14481646204704630736","status":3,"mobile":"13699279618","amount":50,"app_key":"3l6kd2yqsvcwftij","official_sn":"","timestamp":1646205722,"sign":"db77f48b8964b74e9c5e44fa9b3dcf49"}';
  1649. // $params = json_decode($body, true);
  1650. // $provider = $this->getProvider('jianjiao','RefillCallBack');
  1651. // $ret = $provider->verify($params);
  1652. // $resp = $provider->notify($params);
  1653. }
  1654. public function testHuoli()
  1655. {
  1656. // $provider = $this->getProvider('huoli');
  1657. // $resp = $provider->balance();
  1658. // $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]);
  1659. // $resp = $provider->query(['order_sn' => '89741646294399883574']);
  1660. $body = '{"app_key":"expzye","out_trade_no":"89741646294399883574","sign":"24adfe57f5ada22db154d4ed4b4b8e5f","status":2}';
  1661. $params = json_decode($body, true);
  1662. $provider = $this->getProvider('huoli','RefillCallBack');
  1663. $ret = $provider->verify($params);
  1664. $resp = $provider->notify($params);
  1665. }
  1666. public function testNingying_normal()
  1667. {
  1668. // $provider = $this->getProvider('ningying_normal');
  1669. // $resp = $provider->balance();
  1670. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  1671. // $resp = $provider->query(['order_sn' => '20731646376051289638']);
  1672. $body = '{"orderId":"220304144055089955","appId":"wxhhe5zZhM","outOrderId":"20731646376051289638","sign":"c1f3622f9320c127ded0470246370bc9","orderStatus":"3","completeTime":"20220304144328","orderDesc":"\u5904\u7406\u8d85\u65f6"}';
  1673. $params = json_decode($body, true);
  1674. $provider = $this->getProvider('ningying_normal','RefillCallBack');
  1675. $ret = $provider->verify($params);
  1676. $resp = $provider->notify($params);
  1677. }
  1678. public function testYuanrun()
  1679. {
  1680. // $provider = $this->getProvider('yuanrun');
  1681. // $resp = $provider->balance();
  1682. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  1683. // $resp = $provider->query(['order_sn' => '25801646616116681917', 'card_no' => 18500608333, 'commit_time' => 1646616131]);
  1684. $body = '{"cpid":"49449","order_no":"22030709220549449952471675","mobile":"18500608333","amount":"30","status":"success","sz_order_no":"100101101042203070922143047338","ret_para":"25801646616116681917","sign":"2fd2661ce353e4cb554d7d3ca3f09f4d"}';
  1685. $params = json_decode($body, true);
  1686. $provider = $this->getProvider('yuanrun','RefillCallBack');
  1687. $ret = $provider->verify($params);
  1688. $resp = $provider->notify($params);
  1689. }
  1690. public function testFeimingyunew()
  1691. {
  1692. $provider = $this->getProvider('feimingyunew');
  1693. // $resp = $provider->balance();
  1694. $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  1695. // $resp = $provider->query(['order_sn' => '24001646631354076583']);
  1696. // $body = '{"orderid":"AUH22030713352134241","sporderid":"24001646631354076583","userid":"10002506","merchantsubmittime":"20220307133712","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-28.26","sign":"0C4A264A6692C68EB8CC000BEC5C0E53"}';
  1697. // $params = json_decode($body, true);
  1698. // $provider = $this->getProvider('feimingyunew','RefillCallBack');
  1699. // $ret = $provider->verify($params);
  1700. // $resp = $provider->notify($params);
  1701. }
  1702. public function testBailian()
  1703. {
  1704. $provider = $this->getProvider('bailian', 'RefillOil');
  1705. $resp = $provider->balance();
  1706. }
  1707. public function testHangtongyj()
  1708. {
  1709. $provider = $this->getProvider('hangtongyj');
  1710. // $resp = $provider->balance();
  1711. // $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]);
  1712. $resp = $provider->query(['order_sn' => '13791646729519910878']);
  1713. // $body = '{"phone":"13699279618","orderNo":"F2203081623054678137","status":"fail","otherNo":"23351646727780199005","msg":"产品不存在","ext":null}';
  1714. // $params = json_decode($body, true);
  1715. // $provider = $this->getProvider('hangtongyj','RefillCallBack');
  1716. // $ret = $provider->verify($params);
  1717. // $resp = $provider->notify($params);
  1718. }
  1719. public function testRuixundaman()
  1720. {
  1721. // $provider = $this->getProvider('ruixundaman');
  1722. // $resp = $provider->balance();
  1723. // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
  1724. // $resp = $provider->query(['order_sn' => '98441646796808890306']);
  1725. $body = '{"orderId":"220309113357355093","appId":"8tYeow0MYZ","outOrderId":"98441646796808890306","sign":"ec2619a26a11e3320fcdc71fccc7b310","orderStatus":"2","completeTime":"20220309193655","orderDesc":"\u8ba2\u5355\u6210\u529f","ext1":"2022233820220309193635"}';
  1726. $params = json_decode($body, true);
  1727. $provider = $this->getProvider('ruixundaman','RefillCallBack');
  1728. $ret = $provider->verify($params);
  1729. $resp = $provider->notify($params);
  1730. }
  1731. public function testRuizhi_tax()
  1732. {
  1733. // $provider = $this->getProvider('ruizhi_tax');
  1734. // $resp = $provider->balance();
  1735. // $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]);
  1736. // $resp = $provider->query(['order_sn' => '36411646882603857635']);
  1737. $body = '{"userid":"10713","order_id":"22031011232910713e1bc01a6b","account":"13699279618","amount":"50","price":"52.15","state":"success","user_order":"36411646882603857635","sign":"3CEDF5DF4F8A178471FA24B07C8D9BBB","voucher":"2022031027610736554488548137"}';
  1738. $params = json_decode($body, true);
  1739. $provider = $this->getProvider('ruizhi_tax','RefillCallBack');
  1740. $ret = $provider->verify($params);
  1741. $resp = $provider->notify($params);
  1742. }
  1743. public function testPengxinda()
  1744. {
  1745. $provider = $this->getProvider('pengxinda');
  1746. // $resp = $provider->balance();
  1747. $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  1748. // $resp = $provider->query(['order_sn' => '29131646900654146357']);
  1749. // $body = '{"api_userid":"beijingyz","order_no":"29131646900654146357","retcode":"1","errcode":"100101101042203101624383157550"}';
  1750. // $params = json_decode($body, true);
  1751. // $provider = $this->getProvider('pengxinda','RefillCallBack');
  1752. // $ret = $provider->verify($params);
  1753. // $resp = $provider->notify($params);
  1754. }
  1755. public function testHuazhong()
  1756. {
  1757. $provider = $this->getProvider('huazhong');
  1758. // $resp = $provider->balance();
  1759. // $resp = $provider->add(18074608795, 6, 30, ['order_sn' => $this->make_sn()]);
  1760. $resp = $provider->query(['order_sn' => '58581646984524382528']);
  1761. // $body = ' {"orderid":"GCN22031115279906665","sporderid":"54011646983613476599","userid":"10002763","merchantsubmittime":"20220311153014","resultno":"9","parvalue":"50","remark1":"","payno":"","fundbalance":"-47.65","sign":"198392B102B9B9FB60D52EF93EF2BDCC"}';
  1762. // $params = json_decode($body, true);
  1763. // $provider = $this->getProvider('huazhong','RefillCallBack');
  1764. // $ret = $provider->verify($params);
  1765. // $resp = $provider->notify($params);
  1766. }
  1767. public function testYamiaoman()
  1768. {
  1769. // $provider = $this->getProvider('yamiaoman');
  1770. // $resp = $provider->balance();
  1771. // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
  1772. // $resp = $provider->query(['order_sn' => '53351647242979116742']);
  1773. $body = '{"orderId":"220314152954756093","appId":"zIODZmzSCk","outOrderId":"53351647242979116742","sign":"41ad7d4b4b26559377c6443d2b0d6c68","orderStatus":"3","completeTime":"20220314172722","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
  1774. $params = json_decode($body, true);
  1775. $provider = $this->getProvider('yamiaoman','RefillCallBack');
  1776. $ret = $provider->verify($params);
  1777. $resp = $provider->notify($params);
  1778. }
  1779. public function testKailinyu()
  1780. {
  1781. // $provider = $this->getProvider('kailinyu');
  1782. // $resp = $provider->balance();
  1783. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  1784. // $resp = $provider->query(['order_sn' => '96401647327929264712']);
  1785. $body = '{"orderid":"AFO22031515056588604","sporderid":"96401647327929264712","userid":"10002963","merchantsubmittime":"20220315150727","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-28.59","sign":"597D9581047FD47B4117870FD49D9D10"}';
  1786. $params = json_decode($body, true);
  1787. $provider = $this->getProvider('kailinyu','RefillCallBack');
  1788. $ret = $provider->verify($params);
  1789. $resp = $provider->notify($params);
  1790. }
  1791. public function testKuaikuaifs()
  1792. {
  1793. $provider = $this->getProvider('kuaikuaifs');
  1794. // $resp = $provider->balance();
  1795. $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  1796. // $resp = $provider->query(['order_sn' => '96401647327929264712']);
  1797. }
  1798. public function testYouheman()
  1799. {
  1800. // $provider = $this->getProvider('youheman');
  1801. // $resp = $provider->balance();
  1802. // $resp = $provider->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]);
  1803. // $resp = $provider->query(['order_sn' => '65891648444382784227']);
  1804. $body = '{"szOrderId":"65891648444382784227","fSalePrice":"91.5","szAgentId":"200040","nFlag":"2","szVerifyString":"899758ef408c86164529a3724806d52b","szPhoneNum":"18500608333","szRtnMsg":"OM1508468825220870144","nDemo":"100"}';
  1805. $params = json_decode($body, true);
  1806. $provider = $this->getProvider('youheman','RefillCallBack');
  1807. $ret = $provider->verify($params);
  1808. $resp = $provider->notify($params);
  1809. }
  1810. public function testHuoshenguoman()
  1811. {
  1812. // $provider = $this->getProvider('huoshenguoman');
  1813. // $resp = $provider->balance();
  1814. // $resp = $provider->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]);
  1815. // $resp = $provider->query(['order_sn' => '89261649309598653504']);
  1816. $body = '{"orderId":"220407133327635878","appId":"tME7rcK07P","outOrderId":"89261649309598653504","sign":"e46a90c064177aa34cac3a3951410df9","orderStatus":"3","completeTime":"20220407140654","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
  1817. $params = json_decode($body, true);
  1818. $provider = $this->getProvider('huoshenguoman','RefillCallBack');
  1819. $ret = $provider->verify($params);
  1820. $resp = $provider->notify($params);
  1821. }
  1822. public function testGuitong()
  1823. {
  1824. // $provider = $this->getProvider('guitong');
  1825. // $resp = $provider->balance();
  1826. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  1827. // $resp = $provider->query(['order_sn' => '15551649669272272125']);
  1828. $body = '{"szOrderId":"15551649669272272125","fSalePrice":"28.62","szAgentId":"200062","nFlag":"3","szVerifyString":"62e5b8a71935a36acf563f232b75210e","szPhoneNum":"18500608333","szRtnMsg":"","nDemo":"30"}';
  1829. $params = json_decode($body, true);
  1830. $provider = $this->getProvider('guitong','RefillCallBack');
  1831. $ret = $provider->verify($params);
  1832. $resp = $provider->notify($params);
  1833. }
  1834. public function testYouhedf()
  1835. {
  1836. // $provider = $this->getProvider('youhedf');
  1837. // $resp = $provider->balance();
  1838. // $resp = $provider->add(1004638637, 101, 50, ['order_sn' => $this->make_sn(), 'regin_no' => 1]);
  1839. // $resp = $provider->query(['order_sn' => '80821649748836825835']);
  1840. $body = '{"szOrderId":"27341649750036121132","fSalePrice":"46.5","szAgentId":"200044","nFlag":"3","szVerifyString":"52b9057e467f09cf21eaceacddb475e6","szPhoneNum":"1004638637","szRtnMsg":"","nDemo":"50"}';
  1841. $params = json_decode($body, true);
  1842. $provider = $this->getProvider('youhedf', 'RefillCallBack');
  1843. }
  1844. public function testYunchonggongman()
  1845. {
  1846. // $provider = $this->getProvider('yunchonggongman');
  1847. // $resp = $provider->balance();
  1848. // $resp = $provider->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]);
  1849. // $resp = $provider->query(['order_sn' => '72011649828177343273']);
  1850. $body = '{"orderId":"220413133619562061","appId":"P9EYSTJenh","outOrderId":"72011649828177343273","sign":"5294a7cea3c30049f82454012d9dd028","orderStatus":"3","completeTime":"20220413140642","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
  1851. $params = json_decode($body, true);
  1852. $provider = $this->getProvider('yunchonggongman','RefillCallBack');
  1853. $ret = $provider->verify($params);
  1854. $resp = $provider->notify($params);
  1855. }
  1856. public function testJike()
  1857. {
  1858. // $provider = $this->getProvider('jike');
  1859. // $resp = $provider->balance();
  1860. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  1861. // $resp = $provider->query(['order_sn' => '61891650433011979641']);
  1862. $body = '{"amount":30.00,"finishTime":"2022-04-20 13:40:22","mobile":"18500608333","orderNo":"QY2022042013371516594bw95","outOrderNo":"61891650433011979641","refundAmount":0.00,"settlementAmount":29.25,"sign":"c9814fcd0e3fcc8f978a33cba1387ef4","status":3,"timestamp":1650433222213,"updateTime":"2022-04-20 13:40:22"}';
  1863. $params = json_decode($body, true);
  1864. $provider = $this->getProvider('jike','RefillCallBack');
  1865. $ret = $provider->verify($params);
  1866. $resp = $provider->notify($params);
  1867. }
  1868. public function testJumeng()
  1869. {
  1870. // $provider = $this->getProvider('jumeng');
  1871. // $resp = $provider->balance();
  1872. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  1873. // $resp = $provider->query(['order_sn' => '61891650433011979641']);
  1874. $body = '{"orderid":"NRG22042415190852684","sporderid":"54521650784779022915","userid":"10002591","merchantsubmittime":"20220424152241","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-28.32","sign":"315A02F52F772BFBE681541DC5D5A68F"}';
  1875. $params = json_decode($body, true);
  1876. $provider = $this->getProvider('jumeng','RefillCallBack');
  1877. $ret = $provider->verify($params);
  1878. $resp = $provider->notify($params);
  1879. }
  1880. public function testShantong()
  1881. {
  1882. // $provider = $this->getProvider('shantong');
  1883. // $resp = $provider->balance();
  1884. // $resp = $provider->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]);
  1885. // $resp = $provider->query(['order_sn' => '35151650783370889788']);
  1886. $body = '{"orderId":"23691650852278427609","mobile":"18500608333","sign":"e7239f5bc48819fcb18942ae56beba6c","orderStatus":3,"businessOrderId":"10040425100000001","finishDate":"2022-04-25 10:24:17","perValue":100}';
  1887. $params = json_decode($body, true);
  1888. $provider = $this->getProvider('shantong','RefillCallBack');
  1889. $ret = $provider->verify($params);
  1890. $resp = $provider->notify($params);
  1891. }
  1892. public function testYelin_hf()
  1893. {
  1894. // $provider = $this->getProvider('yelin_hf');
  1895. // $resp = $provider->balance();
  1896. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  1897. // $resp = $provider->query(['order_sn' => '96211651214739034917']);
  1898. $body = '{"mchid":"10286","order_sn":"96211651214739034917","amount":"30.0000","cardno":"18500608333","trade_no":"7442240704558746373340","idcard":"","card_name":"","official_sn":"","message":"fail","state":"CANCEL","sign":"317b6787d3fab8ce7f60a4acfe25bbc9"}';
  1899. $params = json_decode($body, true);
  1900. $provider = $this->getProvider('yelin_hf','RefillCallBack');
  1901. $ret = $provider->verify($params);
  1902. $resp = $provider->notify($params);
  1903. }
  1904. public function testAinika()
  1905. {
  1906. // $provider = $this->getProvider('ainika');
  1907. // $resp = $provider->balance();
  1908. // $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]);
  1909. // $resp = $provider->query(['order_sn' => '61961651223605267063']);
  1910. $body = '{"orderid":"HAP22042917132281477","sporderid":"61961651223605267063","userid":"10002584","merchantsubmittime":"20220429171341","resultno":"9","parvalue":"50","remark1":"","payno":"","fundbalance":"-47.9","sign":"36D1867A80924B6AE92C7B2CC1CE96BF"}';
  1911. $params = json_decode($body, true);
  1912. $provider = $this->getProvider('ainika','RefillCallBack');
  1913. $ret = $provider->verify($params);
  1914. $resp = $provider->notify($params);
  1915. }
  1916. public function testMiaoxt_tax()
  1917. {
  1918. // $provider = $this->getProvider('miaoxt_tax');
  1919. // $resp = $provider->balance();
  1920. // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
  1921. // $resp = $provider->query(['order_sn' => '26021652172403994919']);
  1922. $body = '{"szOrderId":"26021652172403994919","fSalePrice":"51.65","szAgentId":"200093","nFlag":"2","szVerifyString":"191888adc1a74ac284ab8a9aeba89753","szPhoneNum":"18500608333","szRtnMsg":"100101101052205101647064149797","nDemo":"50"}';
  1923. $params = json_decode($body, true);
  1924. $provider = $this->getProvider('miaoxt_tax','RefillCallBack');
  1925. $ret = $provider->verify($params);
  1926. $resp = $provider->notify($params);
  1927. }
  1928. public function testAmingjd()
  1929. {
  1930. // $provider = new refill\amingjd\RefillPhone([]);
  1931. // $resp = $provider->add(13699279618, 5, 30, ['order_sn' => $this->make_sn()]);
  1932. // $resp = $provider->query(['order_sn' => '42301616475989518588']);
  1933. $body = '{"order_id":"83321616478215494884","mchid":"10003","tel":"13699279618","price":"30.00","sign":"01c49620c155a80bc43cecc2b1651868","status":"0","out_order_id":"0"}';
  1934. $params = json_decode($body, true);
  1935. refill\RefillFactory::instance()->notify('amingjd', $params);
  1936. }
  1937. public function testAmingjdmanPhone()
  1938. {
  1939. $provider = new refill\amingjdman\RefillPhone([]);
  1940. // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
  1941. // $resp = $provider->query(['order_sn' => '82741619577673758623']);
  1942. $body = '{"order_id":"82741619577673758623","mchid":"10045","tel":"13699279618","price":"30.00","sign":"2fe55fb4d4b2acc2e98137adb82fa57e","status":"0","out_order_id":"0"}';
  1943. $params = json_decode($body, true);
  1944. refill\RefillFactory::instance()->notify('amingjdman', $params);
  1945. }
  1946. public function testWeishengyWtPhone()
  1947. {
  1948. $provider = new refill\weishengywt\RefillPhone([]);
  1949. // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
  1950. // $resp = $provider->query(['order_sn' => '27681620538125370652']);
  1951. $data = '{"szOrderId":"27681620538125370652","fSalePrice":"47.5","szAgentId":"200045","nFlag":"2","szVerifyString":"92fafec121b77518d539ed9f5005fdf9","szPhoneNum":"18500608333","szRtnMsg":"110103308032105091328520502948","nDemo":"50"}';
  1952. $params = json_decode($data, true);
  1953. refill\RefillFactory::instance()->notify('weishengywt', $params);
  1954. }
  1955. public function testWeishengyJDPhone()
  1956. {
  1957. $provider = new refill\weishengyjd\RefillPhone([]);
  1958. // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
  1959. // $resp = $provider->query(['order_sn' => '14261620887423822879']);
  1960. $data = '{"szOrderId":"14261620887423822879","fSalePrice":"44.0","szAgentId":"200050","nFlag":"3","szVerifyString":"3cceef390602058e1d2fdde2e07636a4","szPhoneNum":"18500608333","szRtnMsg":"","nDemo":"50"}';
  1961. $params = json_decode($data, true);
  1962. refill\RefillFactory::instance()->notify('weishengyjd', $params);
  1963. }
  1964. public function testYeziPhone()
  1965. {
  1966. $provider = new refill\yezi\RefillPhone([]);
  1967. // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
  1968. // $resp = $provider->query(['order_sn' => '35261620988265145105']);
  1969. $data = '{"mchid":"10147","order_sn":"35261620988265145105","amount":"50.00","cardno":"18500608333","trade_no":"6363570674332280422825","idcard":"","card_name":"","official_sn":"","message":"","state":"CANCEL","sign":"b79f2ddbb5b7eef98f414585a5bd2cde"}';
  1970. $params = json_decode($data, true);
  1971. refill\RefillFactory::instance()->notify('yezi', $params);
  1972. }
  1973. public function testWeishengysixPhone()
  1974. {
  1975. $provider = new refill\weishengysix\RefillPhone([]);
  1976. // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
  1977. // $resp = $provider->query(['order_sn' => '17171624434289348649']);
  1978. $data = '{"szOrderId":"17171624434289348649","fSalePrice":"44.5","szAgentId":"200074","nFlag":"2","szVerifyString":"fa5735090199d97e6a50e7f3083be111","szPhoneNum":"18500608333","szRtnMsg":"AW2021062315464045A27","nDemo":"50"}';
  1979. $params = json_decode($data, true);
  1980. refill\RefillFactory::instance()->notify('weishengysix', $params);
  1981. }
  1982. public function testHaohaoOil()
  1983. {
  1984. $provider = new refill\haohao\RefillOil([]);
  1985. // $resp = $provider->add(1000111100021211884, 2, 100, ['order_sn' => $this->make_sn()]);
  1986. $data['amount'] = 20000;
  1987. $data['mchId'] = 467253;
  1988. $data['mchOrderNo'] = '5514850674656058146707';
  1989. $data['mobile'] = '';
  1990. $data['sign'] = 'F282D68972A437F3CEB3516BB2FDD19A';
  1991. $data['operator'] = 4;
  1992. $data['number'] = '1000113200020348885';
  1993. $data['thirdOrderNo'] = '2317184088901537792';
  1994. $data['directStatus'] = 5;
  1995. // $input = json_decode($data, true);
  1996. refill\RefillFactory::instance()->notify('haohao',$data);
  1997. }
  1998. public function testJuzhuoOil()
  1999. {
  2000. $provider = new refill\juzhuo\RefillOil([]);
  2001. // $resp = $provider->add(1000111100021211884, 2, 200, ['order_sn' => $this->make_sn()]);
  2002. // $resp = $provider->query(['order_sn' => '20121621578185774451']);
  2003. // $data = '{"channelsort":"OIL_CARD","channelno":"185176855832","onlystr":"20121621578185774451","channel":"JD","sign":"34dce9329fef7997c134987247ac6ee1","amt":"200","notifyurl":"https:\/\/www.xyzshops.cn\/mobile\/signature.php","cardtype":"Sinoepc","cardno":"1000111100021211884","orgid":"6095171500","account":"","status":"2"}';
  2004. // $input = json_decode($data, true);
  2005. $data['channelsort'] = 'OIL_CARD';
  2006. $data['channelno'] = '';
  2007. $data['onlystr'] = '0772770675248490450497';
  2008. $data['channel'] = 'JD';
  2009. $data['sign'] = '4a9f113bfa4aa2d155de7136ca0afe2d';
  2010. $data['amt'] = '100';
  2011. $data['notifyurl'] = 'http://121.89.212.167/racc/callback/lingzh/juzhuo.php';
  2012. $data['cardtype'] = 'Sinoepc';
  2013. $data['cardno'] = '1000113200029532754';
  2014. $data['orgid'] = '6095171500';
  2015. $data['account'] = '';
  2016. $data['status'] = '3';
  2017. refill\RefillFactory::instance()->notify('juzhuo',$data);
  2018. }
  2019. public function testZeheng()
  2020. {
  2021. $provider = new refill\zeheng\RefillOil([]);
  2022. // $resp = $provider->add(1000111100021211884, mtopcard\SinopecCard, 100, ['order_sn' => $this->make_sn()]);
  2023. // $resp = $provider->query(['order_sn' => '45951620814813332604']);
  2024. $data = '{"extOrderId":"45951620814813332604","orderId":"R2021051218240000192928","salePrice":"96.8000","sign":"0d6b9641eaf8d36ecba82cfefc6aa307","state":"4"}';
  2025. $input = json_decode($data, true);
  2026. refill\RefillFactory::instance()->notify('zeheng',$input);
  2027. }
  2028. public function testXiaoniu()
  2029. {
  2030. $provider = $this->getProvider('xiaoniu','RefillOil');
  2031. // $resp = $provider->add(1000111100021211884, mtopcard\SinopecCard, 500, ['order_sn' => $this->make_sn()]);
  2032. $resp = $provider->query(['order_sn' => '15981632813532634860']);
  2033. // $data = '{"content":"\u3010\u4e2d\u56fd\u77f3\u5316\u3011\u60a8\u5c3e\u53f7\u4e3a211884\u7684\u52a0\u6cb9\u5361\u4e8e07\u670809\u65e5 16\u65f630\u5206\u5145\u503c\u6210\u529f,\u91d1\u989d500\u5143,\u8ba2\u5355\u53f7:2521070916304172","realAmt":"490.0000","status":"1","timestamp":"20210709163042","sign":"110aaae89243c9ed2d6aa4d753597224","orderNo":"XN20210709162351796707722","mOrderNo":"39911625819031601073"}';
  2034. // $input = json_decode($data, true);
  2035. // refill\RefillFactory::instance()->notify('xiaoniu',$input);
  2036. // $resp = $provider->balance();
  2037. }
  2038. public function testYingdian()
  2039. {
  2040. $provider = $this->getProvider('yingdian','RefillOil');
  2041. $resp = $provider->balance();
  2042. // $resp = $provider->add(1000111100021211884, mtopcard\SinopecCard, 200, ['order_sn' => $this->make_sn()]);
  2043. // $resp = $provider->query(['order_sn' => '94691626688509004979']);
  2044. // $resp = $provider->query(['order_sn' => '45671626687631917892']);
  2045. // $data = '{"orderNo":"94691626688509004979","vouchers":"[\"2421071918070053\"]","orderId":"63400811-e877-11eb-a89f-00163e147a9b","spOrderNo":"052423YK241720210719175503603473","status":"SUCCESS"}';
  2046. // $input = json_decode($data, true);
  2047. // refill\RefillFactory::instance()->notify('yingdian',$input);
  2048. }
  2049. public function testZhenqi()
  2050. {
  2051. $provider = new refill\zhenqi\RefillPhone([]);
  2052. // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
  2053. // $resp = $provider->query(['order_sn' => '42611626267945146350']);
  2054. // $data = '{"out_trade_no":"14001626266194932132","create_time":"1626266201","sp_order_no":"110103353232107142044550619272","status":"1","sign":"3C2F8ED40EEB9151D2117E2DA1FA64AA"}';
  2055. // $input = json_decode($data, true);
  2056. // refill\RefillFactory::instance()->notify('zhenqi',$input);
  2057. $resp = $provider->balance();
  2058. }
  2059. public function testYunsuoyaofs()
  2060. {
  2061. $provider = new refill\yunsuoyaofs\RefillPhone([]);
  2062. // $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]);
  2063. // $resp = $provider->query(['order_sn' => '85681626322286098163']);
  2064. // $data = '{"orderid":"AMU21071512111544162","sporderid":"85681626322286098163","userid":"10002671","merchantsubmittime":"20210715121132","resultno":"9","parvalue":"50","remark1":"","payno":"","fundbalance":"-47.7","sign":"45ECFF26E84F7DC3BFFDCFAFF3B1E561"}';
  2065. // $input = json_decode($data, true);
  2066. // refill\RefillFactory::instance()->notify('yunsuoyaofs',$input);
  2067. $resp = $provider->balance();
  2068. }
  2069. public function testZhenqi1m()
  2070. {
  2071. $provider = new refill\zhenqi1m\RefillPhone([]);
  2072. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  2073. // $resp = $provider->query(['order_sn' => '45611626334593130605']);
  2074. // $data = '{"out_trade_no":"45611626334593130605","create_time":"1626334606","sp_order_no":"202107152200117311004426885635","status":"1","sign":"CF8EB902F60B76591C898C991361BB4D"}';
  2075. // $input = json_decode($data, true);
  2076. // refill\RefillFactory::instance()->notify('zhenqi1m',$input);
  2077. $resp = $provider->balance();
  2078. }
  2079. public function testHongxudayz()
  2080. {
  2081. $provider = new refill\hongxudayz\RefillPhone([]);
  2082. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  2083. // $resp = $provider->query(['order_sn' => '78221626445316011524']);
  2084. $data = '{"sale_value":"29.76","supply_id":"18789504","order_status":"0","mer_oid":"78221626445316011524","phone_no":"18500608333","mer_id":"yzhfcz","sale_discount":"0.992","sign":"51696429B62E74266516326279C2C97B","cp_id":"","product_no":"HFLTBJ_****00003000","product_face":"30","cp_ctype":""}';
  2085. $input = json_decode($data, true);
  2086. refill\RefillFactory::instance()->notify('hongxudayz',$input);
  2087. }
  2088. public function testHongxudagy()
  2089. {
  2090. $provider = new refill\hongxudagy\RefillPhone([]);
  2091. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  2092. // $resp = $provider->query(['order_sn' => '86521626446475240639']);
  2093. // $data = '{"sale_value":"29.76","supply_id":"18790079","order_status":"0","mer_oid":"86521626446475240639","phone_no":"18500608333","mer_id":"bjgyfl","sale_discount":"0.992","sign":"9BDA608364D4E08C653E8C6798151AC2","cp_id":"","product_no":"HFLTBJ_****00003000","product_face":"30","cp_ctype":""}';
  2094. // $input = json_decode($data, true);
  2095. // refill\RefillFactory::instance()->notify('hongxudagy',$input);
  2096. $resp = $provider->balance();
  2097. }
  2098. public function testHongxudayz996()
  2099. {
  2100. $provider = new refill\hongxudayz996\RefillPhone([]);
  2101. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  2102. // $resp = $provider->query(['order_sn' => '73691626753698522472']);
  2103. $data = '{"sale_value":"29.88","supply_id":"18888477","order_status":"3","mer_oid":"73691626753698522472","phone_no":"18500608333","mer_id":"bjyz2","sale_discount":"0.996","sign":"8E98EA2B6B81D832EBA8F89611A3F9B9","cp_id":"","product_no":"HFLTBJ_****00003000","product_face":"30","cp_ctype":""}';
  2104. $input = json_decode($data, true);
  2105. refill\RefillFactory::instance()->notify('hongxudayz996',$input);
  2106. }
  2107. public function testHongxudagy996()
  2108. {
  2109. $provider = new refill\hongxudagy996\RefillPhone([]);
  2110. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  2111. // $resp = $provider->query(['order_sn' => '87681626758209689412']);
  2112. $data = '{"sale_value":"29.88","supply_id":"18889758","order_status":"3","mer_oid":"87681626758209689412","phone_no":"18500608333","mer_id":"bjgy2","sale_discount":"0.996","sign":"0CBA5B8F34D40914CB86CC74BE8EF15B","cp_id":"","product_no":"HFLTBJ_****00003000","product_face":"30","cp_ctype":""}';
  2113. $input = json_decode($data, true);
  2114. refill\RefillFactory::instance()->notify('hongxudagy996',$input);
  2115. }
  2116. public function testYunchonggong()
  2117. {
  2118. $provider = $this->getProvider('yunchonggong');
  2119. // $resp = $provider->balance();
  2120. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  2121. $resp = $provider->query(['order_sn' => '59901635220132734124']);
  2122. $body = '{"orderId":"211026114901000481","appId":"c4vuuOV43q","outOrderId":"59901635220132734124","sign":"4749539f129242a13f1f083dbc114f23","orderStatus":"3","completeTime":"20211026115027","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
  2123. $params = json_decode($body, true);
  2124. $provider = $this->getProvider('yunchonggong', 'RefillCallback');
  2125. $ret = $provider->verify($params);
  2126. $resp = $provider->notify($params);
  2127. }
  2128. public function testBingdht()
  2129. {
  2130. $provider = new refill\bingdht\RefillPhone([]);
  2131. // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
  2132. // $resp = $provider->query(['order_sn' => '62491626761331174794']);
  2133. // $data = '{"szOrderId":"62491626761331174794","fSalePrice":"45.25","szAgentId":"200044","nFlag":"3","szVerifyString":"46745191d31b16ee7978a7f5554357d6","szPhoneNum":"18500608333","szRtnMsg":"","nDemo":"50"}';
  2134. // $input = json_decode($data, true);
  2135. // refill\RefillFactory::instance()->notify('bingdht',$input);
  2136. $resp = $provider->balance();
  2137. }
  2138. public function testYuecheng()
  2139. {
  2140. $provider = new refill\yuecheng\RefillPhone([]);
  2141. // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
  2142. // $resp = $provider->query(['order_sn' => '45101626776884387650']);
  2143. $data = '{"ste":"0","cpid":"982100572516571","sign":"E0347851C8395B4FC08DA51FC650ABDA","dm":"49.6500","pid":"HFLTBJ_****00005000","oid":"45101626776884387650","sid":"200014603779","ct":"","tf":"50.0000","nb":"1","cardinfo":"","salevalue":"49.6500","pn":"18500608333","cid":"gyhf"}';
  2144. $input = json_decode($data, true);
  2145. refill\RefillFactory::instance()->notify('yuecheng',$input);
  2146. }
  2147. public function testPrice()
  2148. {
  2149. $amounts = [10, 20, 30, 50, 100, 200, 300, 500];
  2150. $rate = 0.994;
  2151. foreach ($amounts as $amount) {
  2152. $price[] = $amount * $rate;
  2153. }
  2154. }
  2155. public function testCallbackDir()
  2156. {
  2157. $path = "/callback";
  2158. $file = "/mobile/callback/refill_call.php";
  2159. $basename = basename($file);
  2160. $tmp = "{$path}/{$basename}.php";
  2161. return file_exists($tmp);
  2162. }
  2163. public function testWeisPhone()
  2164. {
  2165. $provider = new refill\weisyd\RefillPhone([]);
  2166. $resp = $provider->add(17801048874, 4, 10, ['order_sn' => $this->make_sn()]);
  2167. }
  2168. public function testXcPhone()
  2169. {
  2170. $provider = new refill\xc\RefillPhone([]);
  2171. $resp = $provider->add(13699279618, 5, 100, ['order_sn' => $this->make_sn()]);
  2172. // $resp = $provider->query(['order_sn' => '87961616926444043617']);
  2173. $params['pay_orderid'] = '87961616926444043617';
  2174. $params['pay_iphone'] = '18500608333';
  2175. $params['pay_money'] = '100';
  2176. $params['wt_orderid'] = '202103281816121070';
  2177. $params['status'] = '1';
  2178. $params['sign'] = 'f7be2e859a5a6dc7b1a8273361617752';
  2179. // refill\RefillFactory::instance()->notify('xc',$params);
  2180. }
  2181. public function testAfandPhone()
  2182. {
  2183. $provider = new refill\afand\RefillPhone([]);
  2184. // for ($i = 3; $i > 0; --$i) {
  2185. $resp = $provider->query(['order_sn' => '540668612768904780']);
  2186. // }
  2187. }
  2188. public function testAfandengPhone()
  2189. {
  2190. $provider = new refill\afandeng\RefillPhone([]);
  2191. // for ($i = 5; $i > 0; --$i) {
  2192. $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]);
  2193. // }
  2194. // $resp = $provider->query(['order_sn' => '20941616115610023539']);
  2195. // $params['usr'] = 'afandeng';
  2196. // $params['ord'] = '20941616115610023539';
  2197. // $params['state'] = '2';
  2198. // $params['bz'] = '';
  2199. // $params['sgn'] = 'BA2C9D379C3EB648A0B7AAB3A21A3F6A';
  2200. // refill\RefillFactory::instance()->notify('afandeng',$params);
  2201. }
  2202. public function testWantongPhone()
  2203. {
  2204. $provider = new refill\wantong\RefillPhone([]);
  2205. // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]);
  2206. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  2207. $resp = $provider->query(['order_sn' => '26061618988575301841']);
  2208. $data = '{"uid":"97396885","order_no":"26061618988575301841","mobile_order_no":"","phone_number":"13699279618","face_value":"3000","status":"9","sign":"1a019202656cf4feffe715025fab01bf"}';
  2209. $input = json_decode($data, true);
  2210. // refill\RefillFactory::instance()->notify('wantong',$input);
  2211. }
  2212. public function testXunyinPhone()
  2213. {
  2214. $provider = $this->getProvider('xunyin');
  2215. $resp = $provider->balance();
  2216. // $resp = $provider->add(17703711950, 6, 30, ['order_sn' => $this->make_sn()]);
  2217. // $resp = $provider->query(['order_sn' => '76831617176125893158']);
  2218. // $xml = '<Order><cpid>8417</cpid><orderid>40591617173295524057</orderid><order_no>14784226</order_no><msg>充值中</msg><Code>0000</Code><Cards/></Order>';
  2219. // $resp = $provider->xmlToArray($xml);
  2220. // if ($resp['Code'] === '0000') {
  2221. // return [true, $resp['order_no'], false];
  2222. // } else {
  2223. // return [false, $resp['msg'], false];
  2224. // }
  2225. // $params['ext'] = '';
  2226. // $params['code'] = '8888';
  2227. // $params['sign'] = '428ac223cf3a1f6f3d382aac754e8e17';
  2228. // $params['statemes'] = '成功';
  2229. // $params['id'] = '76831617176125893158';
  2230. // $params['userid'] = '8417';
  2231. // $params['operatorid'] = '1000000083421033115583773201';
  2232. // $params['status'] = 'SUCCESS';
  2233. // refill\RefillFactory::instance()->notify('xunyin',$params);
  2234. $resp = $provider->balance();
  2235. }
  2236. public function testFenshengPhone()
  2237. {
  2238. $file = BASE_HELPER_RAPI_PATH . "/qianqian/RefillPhone.php";
  2239. if(!file_exists($file)){
  2240. Log::record("provider api file={$file} not exist.",Log::DEBUG);
  2241. return false;
  2242. } else {
  2243. require_once($file);
  2244. Log::record("file={$file} load success.",Log::DEBUG);
  2245. }
  2246. $provider = new refill\qianqian\RefillPhone([]);
  2247. $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]);
  2248. // $resp = $provider->query(['order_sn' => '27511617764278021035']);
  2249. // $datas = '[{"orderNo":"F2104071058069438461","status":"001","consumerNo":"27511617764278021035","voucherNo":"510490688023364042","mobile":"13699279618"}]';
  2250. // $datas = json_decode($datas,true);
  2251. // foreach ($datas as $data) {
  2252. // refill\RefillFactory::instance()->notify('fensheng',$data);
  2253. // }
  2254. }
  2255. public function testQianqianPhone()
  2256. {
  2257. $provider = new refill\qianqian\RefillPhone([]);
  2258. // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]);
  2259. // $resp = $provider->query(['order_sn' => '27511617764278021035']);
  2260. // $datas = '[{"orderNo":"F2104071058069438461","status":"001","consumerNo":"27511617764278021035","voucherNo":"510490688023364042","mobile":"13699279618"}]';
  2261. // $datas = json_decode($datas,true);
  2262. // foreach ($datas as $data) {
  2263. // refill\RefillFactory::instance()->notify('fensheng',$data);
  2264. // }
  2265. $resp = $provider->balance();
  2266. }
  2267. public function testQianqianmanPhone()
  2268. {
  2269. $provider = new refill\qianqianman\RefillPhone([]);
  2270. // $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]);
  2271. // $resp = $provider->query(['order_sn' => '72011621236975003462']);
  2272. $data = '{"orderNo":"F2105171538062539442","status":"019","consumerNo":"72011621236975003462","voucherNo":null,"mobile":"13699279618"}';
  2273. $input = json_decode($data, true);
  2274. refill\RefillFactory::instance()->notify('qianqianman',$input);
  2275. }
  2276. public function testRiyingPhone()
  2277. {
  2278. $provider = new refill\riying\RefillPhone([]);
  2279. // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]);
  2280. $resp = $provider->query(['ch_trade_no' => '2021041311120213187423105022']);
  2281. $data = '{"UserId":"10050","SysOrderId":"2021041311120213187423105022","OrderId":"15641618283518423567","State":"4","Timestamp":"1618283565746","VoucherType":"1","VoucherContent":"511009928000087852","Sign":"a6ec70a3ea42baae941528398c6d0a43"}';
  2282. $input = json_decode($data, true);
  2283. // refill\RefillFactory::instance()->notify('riying',$input);
  2284. }
  2285. public function testWeishengyPhone()
  2286. {
  2287. $provider = new refill\weishengy\RefillPhone([]);
  2288. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  2289. // $resp = $provider->query(['order_sn' => '15551618590601301527']);
  2290. $data = '{"masId":"699270071532654592","oids":"158877719094,166090529155,158887187476","orderNo":"62411618635377880788","orderPrice":"150.00","phone":"18500608333","sign":"3EC10A32FC4CCC976048E1164D0FCBF6","status":"1","time":"1618643281063","type":"2"}';
  2291. $input = json_decode($data, true);
  2292. refill\RefillFactory::instance()->notify('weishengy',$input);
  2293. }
  2294. public function testWailingPhone()
  2295. {
  2296. $provider = new refill\wailing\RefillPhone([]);
  2297. // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]);
  2298. $resp = $provider->query(['order_sn' => '73241618543784045618']);
  2299. $data = '{"order_id":"73241618543784045618","mchid":"10045","tel":"13699279618","price":"30.00","sign":"4991de3e40f14c198b8c194455ea021b","status":"0","out_order_id":"0"}';
  2300. $input = json_decode($data, true);
  2301. // refill\RefillFactory::instance()->notify('wailing',$input);
  2302. }
  2303. public function testShengyingPhone()
  2304. {
  2305. $provider = new refill\shengying\RefillPhone([]);
  2306. // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]);
  2307. $resp = $provider->query(['order_sn' => '37571618805115582483']);
  2308. $data = '{"TaskID":"129636","Mobile":"13699279618","Status":"4","ReportTime":"2021-04-19T12:06:16.050","ReportCode":"1:511531522026586295","OutTradeNo":"37571618805115582483","ReceiptNum":"511531522026586295","Sign":"a7f46a988bc8483091d94130804e5078"}';
  2309. $input = json_decode($data, true);
  2310. // refill\RefillFactory::instance()->notify('shengying',$input);
  2311. }
  2312. public function testYunlingPhone()
  2313. {
  2314. $provider = new refill\yunling\RefillPhone([]);
  2315. // $resp = $provider->add(18074608795, 6, 30, ['order_sn' => $this->make_sn()]);
  2316. // $resp = $provider->query(['order_sn' => '73791623147517199719']);
  2317. // $data = '{"orderid":"EAF21060818183032772","sporderid":"73791623147517199719","userid":"10002504","merchantsubmittime":"20210608181912","resultno":"1","parvalue":"30","remark1":"1000000083421060818483137636","payno":"1000000083421060818483137636","fundbalance":"-28.59","sign":"8D77517AC3905ED88BF79EE789A5FA86"}';
  2318. // $input = json_decode($data, true);
  2319. // refill\RefillFactory::instance()->notify('yunling',$input);
  2320. $resp = $provider->balance();
  2321. }
  2322. public function testZhongstPhone()
  2323. {
  2324. // $provider = $this->getProvider('zhongst');
  2325. // $resp = $provider->balance();
  2326. // $resp = $provider->add(18500608333, 5, 1, ['order_sn' => $this->make_sn()]);
  2327. // $resp = $provider->query(['order_sn' => '14941642477572151012']);
  2328. $body = '{"orderId":"220118114638207211","appId":"Jab1HfumVk","outOrderId":"14941642477572151012","sign":"4e594f9c541667ea5f07c509993932fb","orderStatus":"2","completeTime":"20220118115013","orderDesc":"\u8ba2\u5355\u6210\u529f","ext1":"110103308212201181148550490052"}';
  2329. $params = json_decode($body, true);
  2330. $provider = $this->getProvider('zhongst','RefillCallBack');
  2331. $ret = $provider->verify($params);
  2332. $resp = $provider->notify($params);
  2333. }
  2334. public function testXunaoPhone()
  2335. {
  2336. $provider = new refill\xunao\RefillPhone([]);
  2337. // $resp = $provider->add(18074608795, 6, 10, ['order_sn' => $this->make_sn()]);
  2338. // $resp = $provider->query(['order_sn' => '40021619431386253803', 'card_no' => 18074608795, 'card_type' => 6]);
  2339. // $data = '{"amount":"10.00","orderNo":"40021619431386253803","supplierId":"10","orderId":"S20210426180311761051424910","notifyTime":"1619431456411","sign":"c4eef22091831104be7ae95a0292c703","discountAmount":"0.50","phoneNo":"18074608795","queryUrl":"https:\/\/www.189.cn\/client\/wap\/wapproject\/wapclient\/feecharge\/feecharge_result.html?sessionid=f633d8a270aa4e5892d0f7ca6f09e95e","payType":"alipay","ticketNo":"1000000083421042618356072935","company":"dx","status":"2"}';
  2340. // $input = json_decode($data, true);
  2341. // refill\RefillFactory::instance()->notify('xunao',$input);
  2342. $resp = $provider->balance();
  2343. }
  2344. public function testYonghePhone()
  2345. {
  2346. $provider = new refill\yonghe\RefillPhone([]);
  2347. // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]);
  2348. // $resp = $provider->query(['order_sn' => '20461619597297972685']);
  2349. // $data = '{"szOrderId":"20461619597297972685","fSalePrice":"29.955","szAgentId":"200115","nFlag":"2","szVerifyString":"b5c292a13c5e67a9b850eb37239682ae","szPhoneNum":"13699279618","szRtnMsg":"2021042822001139701437383521","nDemo":"30"}';
  2350. // $input = json_decode($data, true);
  2351. // refill\RefillFactory::instance()->notify('yonghe',$input);
  2352. $resp = $provider->balance();
  2353. }
  2354. public function testJumiPhone()
  2355. {
  2356. $provider = new refill\jumikc\RefillPhone([]);
  2357. // $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]);
  2358. // $resp = $provider->query(['order_sn' => '12161619768293529384']);
  2359. // $data = '{"order_no":"12161619768293529384","channel_order_no":"C2104300338227862125","status":1,"money":"50.00","cost_money":"48.60","mch_no":210303112631,"account":"13699279618","official_sn":"","sign":"efa99b969f318ef934d8120ccfc77c3e"}';
  2360. // $input = json_decode($data, true);
  2361. // refill\RefillFactory::instance()->notify('jumi',$input);
  2362. $resp = $provider->balance();
  2363. }
  2364. public function testJumiOil()
  2365. {
  2366. $provider = new refill\jumi\RefillOil([]);
  2367. // $resp = $provider->add(1000111100021211884, 2, 100, ['order_sn' => $this->make_sn()]);
  2368. // $resp = $provider->query(['order_sn' => '29021620617872685187']);
  2369. $data = '{"order_no":"29021620617872685187","channel_order_no":"C2105101138061082025","status":1,"money":"100.00","cost_money":"98.00","mch_no":210303112631,"account":"1000111100021211884","official_sn":"","sign":"0914807052a04282aeb855f459fcc7b7"}';
  2370. $input = json_decode($data, true);
  2371. refill\RefillFactory::instance()->notify('jumi',$input);
  2372. }
  2373. public function testFengyePhone()
  2374. {
  2375. $provider = new refill\fengye\RefillPhone([]);
  2376. // $resp = $provider->add(18074608795, 6, 50, ['order_sn' => $this->make_sn()]);
  2377. // $resp = $provider->query(['order_sn' => '53511620355988978053', 'card_no' => 18074608795, 'card_type' => 6]);
  2378. $data = '{"amount":"50.00","orderNo":"53511620355988978053","supplierId":"13","orderId":"S20210507105309202749918513","notifyTime":"1620356062365","sign":"371260b007f2e64d86873ce3ede67fa3","discountAmount":"2.50","phoneNo":"18074608795","queryUrl":"https:\/\/www.189.cn\/client\/wap\/wapproject\/wapclient\/feecharge\/feecharge_result.html?sessionid=e896e66c2e134ba3b469b26df34d12d1","payType":"wechat","ticketNo":"1000000083421050710397228882","company":"dx","status":"2"}';
  2379. $input = json_decode($data, true);
  2380. refill\RefillFactory::instance()->notify('fengye',$input);
  2381. }
  2382. public function testYunsuoyaoPhone()
  2383. {
  2384. $provider = new refill\yunsuoyao\RefillPhone([]);
  2385. // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
  2386. // $resp = $provider->query(['order_sn' => '20431621331092296201']);
  2387. // $data = '{"orderid":"RLU21051817441937847","sporderid":"20431621331092296201","userid":"10002501","merchantsubmittime":"20210518174858","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-28.74","sign":"426EAC103B79505BAE7AB3F16886F1A8"}';
  2388. // $input = json_decode($data, true);
  2389. // refill\RefillFactory::instance()->notify('yunsuoyao',$input);
  2390. $resp = $provider->balance();
  2391. }
  2392. public function testAfdPhone()
  2393. {
  2394. $provider = new refill\afd\RefillPhone([]);
  2395. // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
  2396. // $resp = $provider->query(['order_sn' => '71001621233525947994']);
  2397. $data = '{"code":"000","merchantorderId":"71001621233525947994","platformorderid":"aab01693204b95c4df1268313","orderid":"经度110103308082105171438580570638","rechargeno":"18500608333","amount":"50.00","payamount":"47.40000","rechargestate":"99","createtime":"2021-05-17 14:38:29","sign":"62d9af5833e1bf489998a0425107573f"}';
  2398. $input = json_decode($data, true);
  2399. refill\RefillFactory::instance()->notify('afd',$input);
  2400. }
  2401. public function testLuqianPhone()
  2402. {
  2403. $provider = new refill\luqian\RefillPhone([]);
  2404. // $resp = $provider->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]);
  2405. $resp = $provider->query(['order_sn' => '2829660672500596314764']);
  2406. $data = '{"amount":"100","charge_type":"0","code":"1","partner_id":"38","phone":"18500608333","sign":"c2c86cccc73fa991a63c369e683c91f2","partner_order_no":"34101618897099329575","official_order_id":"110103308072104201338340278420"}';
  2407. $input = json_decode($data, true);
  2408. // refill\RefillFactory::instance()->notify('luqian',$input);
  2409. }
  2410. public function testAfandfsPhone()
  2411. {
  2412. $provider = new refill\afandfs\RefillPhone([]);
  2413. // $resp = $provider->add(15139608757, 4, 30, ['order_sn' => $this->make_sn()]);
  2414. // $resp = $provider->query(['order_sn' => '65101618975926761630']);
  2415. // $data = '{"amount":"30","charge_type":"2","code":"1","partner_id":"52","phone":"15139608757","sign":"a7f54c1ac3e1af72f9fc849086cc4bec","partner_order_no":"65101618975926761630","official_order_id":"20210421113256628350"}';
  2416. // $input = json_decode($data, true);
  2417. // refill\RefillFactory::instance()->notify('afandfs',$input);
  2418. $resp = $provider->balance();
  2419. }
  2420. public function testYunlingfsPhone()
  2421. {
  2422. $provider = $this->getProvider('yunlingfs');
  2423. $resp = $provider->add(18074608795, 6, 10, ['order_sn' => $this->make_sn()]);
  2424. // $resp = $provider->query(['order_sn' => '79251623739433607563']);
  2425. // $data = '{"orderid":"BGC21061514434393910","sporderid":"79251623739433607563","userid":"10002543","merchantsubmittime":"20210615144434","resultno":"1","parvalue":"50","remark1":"20210615144420321813","payno":"20210615144420321813","fundbalance":"-47.65","sign":"6B9B7C15A3F9CBC773562327B6744B1E"}';
  2426. // $input = json_decode($data, true);
  2427. // refill\RefillFactory::instance()->notify('yunlingfs',$input);
  2428. // $resp = $provider->balance();
  2429. }
  2430. public function testTianchengPhone()
  2431. {
  2432. $provider = new refill\tiancheng\RefillPhone([]);
  2433. // $resp = $provider->add(18074608795, 6, 30, ['order_sn' => $this->make_sn()]);
  2434. // $resp = $provider->query(['order_sn' => '15301619399212504464']);
  2435. // $data = ' {"result":"fail","msg":"0","order":"null","phone_no":"13699279618","amount":"10","op_no":"84801619340283980506","settle":"0","sign":"D64039ED791920B08BDA9DD95700C0E6"}';
  2436. // $input = json_decode($data, true);
  2437. // refill\RefillFactory::instance()->notify('tiancheng',$input);
  2438. $resp = $provider->balance();
  2439. }
  2440. public function testLingzhPhone()
  2441. {
  2442. $provider = new refill\lingzh\RefillPhone([]);
  2443. // $resp = $provider->add(18500608333, 5, 10, ['order_sn' => $this->make_sn()]);
  2444. // $resp = $provider->query(['order_sn' => '59911615124025101286']);
  2445. $resp = $provider->balance();
  2446. // $input['usr'] = 1;
  2447. // $input['ord'] = '52741615119546453690';
  2448. // $input['bz'] = '';
  2449. // $input['state'] = 2;
  2450. // $input['sgn'] = 'FFCBB75C307154DD306F4EC75BB69A6D';
  2451. // refill\RefillFactory::instance()->notify('lingzh',$input);
  2452. }
  2453. public function testAfandnewPhone()
  2454. {
  2455. $provider = new refill\afandnew\RefillPhone([]);
  2456. // $resp = $provider->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]);
  2457. // $resp = $provider->query(['order_sn' => '45371617101073876975', 'ch_trade_no' => '33018443659736309']);
  2458. $params = '{"amount":"100","carrierOrderNo":null,"mobile":"18500608333","orderNo":"45371617101073876975","orderStatus":3,"sign":"8DE392AD6B4730AD9EE0FC2B95BBDF17","tradeNo":"33018443659736309"}';
  2459. $input = json_decode($params, true);
  2460. refill\RefillFactory::instance()->notify('afandnew', $input);
  2461. }
  2462. public function testYifaPhone()
  2463. {
  2464. $provider = new refill\yifa\RefillPhone([]);
  2465. $resp = $provider->add(15120035568, 5, 50, ['order_sn' => $this->make_sn()]);
  2466. }
  2467. public function testTianjtOil()
  2468. {
  2469. $cardno = 1000111100021211884;
  2470. $provider = new refill\tianjt\RefillOil([]);
  2471. $resp = $provider->add($cardno, 2, 500, ['order_sn' => $this->make_sn()]);
  2472. }
  2473. public function testWeitPhone()
  2474. {
  2475. $provider = new refill\weit\RefillPhone([]);
  2476. for ($i = 0; $i <= 10; $i++) {
  2477. $resp = $provider->add(18500608333, 5, 10, ['order_sn' => $this->make_sn()]);
  2478. }
  2479. }
  2480. public function testWeitCB()
  2481. {
  2482. $params['sign'] = 'af820c33472f4b571fa0c48483dfb975';
  2483. $params['status'] = 0;
  2484. $params['price'] = 30;
  2485. $params['op_order_id'] = '';
  2486. $params['mch_order_id'] = '900664281823957221';
  2487. $params['pt_order_id'] = '2021011802434412825405218901';
  2488. $params['pay_type'] = '';
  2489. $params['tel'] = 18500608333;
  2490. $params['mchid'] = 10014;
  2491. $resp = http_request($this->mReqHost . "/mobile/refill_weit.php", $params, 'POST');
  2492. }
  2493. public function testYifaCB()
  2494. {
  2495. $body = '{"app_id":"e4a61b2acf1119c72c1ed9b61781494e","nonce_str":"OQMEBRQWJGPKOWYUXDVPTNMLEQJHXFWG","timestamp":1610275083,"order_sn":"161027325773032634","coder_order_sn":"60641610273255214687","isp_order_sn":null,"phone":"15120035568","amount":"94.000","discount":"0.9400","create_time":"2021-01-10 18:07:42","recharge_time":"","status":"fail","channel_id":3,"sign":"47278AD74EFA7F5FC8DE3A6D362C409B"}';
  2496. $input = json_decode($body, true);
  2497. refill\RefillFactory::instance()->notify('yifa', $input);
  2498. }
  2499. public function testBjbQuery()
  2500. {
  2501. $provider = new refill\bjb\RefillPhone([]);
  2502. $refill_info = ['order_sn' => 110667993758599771, 'ch_trade_no' => 499, 'card_no' => 1000111200005252927];
  2503. $resp = $provider->query($refill_info);
  2504. }
  2505. public function testXcQuery()
  2506. {
  2507. $provider = new refill\xc\RefillPhone([]);
  2508. $refill_info = ['order_sn' => 950663423236726632, 'ch_trade_no' => 499, 'card_no' => 1000111200005252927];
  2509. $resp = $provider->query($refill_info);
  2510. }
  2511. public function testTianjtQuery()
  2512. {
  2513. $provider = new refill\tianjt\RefillOil([]);
  2514. $refill_info = ['order_sn' => 680665862267622221, 'ch_trade_no' => 499, 'card_no' => 1000111200005252927];
  2515. $resp = $provider->query($refill_info);
  2516. }
  2517. public function testSaihuOil()
  2518. {
  2519. $provider = new refill\saihu\RefillOil([]);
  2520. $resp = $provider->add(1000111100021211884, 2, 100, ['order_sn' => $this->make_sn()]);
  2521. }
  2522. public function testBdtOil()
  2523. {
  2524. $provider = new refill\bdt\RefillOil([]);
  2525. $resp = $provider->add(1000111100021211884, 2, 100, ['order_sn' => '200229600556618886']);
  2526. }
  2527. public function testGFTDOil()
  2528. {
  2529. $provider = new refill\gftd\RefillOil([]);
  2530. $resp = $provider->add(1000111100020445281, mtopcard\SinopecCard, 100, ['order_sn' => $this->make_sn()]);
  2531. }
  2532. public function testYichangtOil()
  2533. {
  2534. $provider = $this->getProvider('yichangt','RefillOil');
  2535. // $resp = $provider->balance();
  2536. $resp = $provider->add(1000111100021211884, mtopcard\SinopecCard, 50, ['order_sn' => $this->make_sn()]);
  2537. // $resp = $provider->query(['order_sn' => '86471642400354465488']);
  2538. }
  2539. public function testYichangt_hf()
  2540. {
  2541. $provider = $this->getProvider('yichangt_hf');
  2542. // $resp = $provider->balance();
  2543. $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
  2544. // $resp = $provider->query(['order_sn' => '33161643533975771522']);
  2545. }
  2546. public function testYichangt_doubi()
  2547. {
  2548. $provider = $this->getProvider('yichangt_doubi');
  2549. // $resp = $provider->balance();
  2550. // $card_no = ['WK6788','575547903','1249835915','1943707492','LYYY520999','a88254587','45871584136','1877477562','1983377511','22291865790','1617206604','yy8672','1179363707','1770307081','Kurama..','Kakin0821','linxiaomi882','996407176','dyoehdm1c5sm','zhongge7686','1639978001','24198995','lbxb8023','setmefreeboy','setmefreeboy','JY20080121ZQ','25416140735','zg199388','dyt23c595wy8','1471177523','IP66600000','989501943','Maoxianwanglion','zouwenbin','tianshanzhid33','OscarKing1017','131250753','844740031','Bst0528','86391613636','880213019','59706196913','lieyinghusha','1190084099','42447950732','937099409','helei55432','mxy13629303898'];
  2551. $card_no = ['WK6788','575547903','1249835915','1943707492','LYYY520999','a88254587','45871584136','1877477562','1983377511','22291865790','1617206604','yy8672','1179363707','1770307081','Kurama..','Kakin0821','linxiaomi882','996407176','dyoehdm1c5sm'];
  2552. foreach ($card_no as $no)
  2553. {
  2554. $order_sn = $this->make_sn();
  2555. $resp = $provider->add($no, mtopcard\ThirdRefillCard, 100, ['order_sn' => $order_sn]);
  2556. $order_sns[] = $order_sn;
  2557. }
  2558. $order_sns = json_encode($order_sns);
  2559. Log::record("{$order_sns}");
  2560. // $resp = $provider->query(['order_sn' => '78111640843635846927']);
  2561. }
  2562. public function testGFTDCB()
  2563. {
  2564. $data = '{"channelOrderNumber":"79091610959059372019","orderNumber":"GYFL1610959060397001","message":"充值成功","storage":"881036222bd8f067ff47d248c75f4c8d","voucher":"","status":101}';
  2565. $url = "http://192.168.1.220/mobile/refill_gftd.php?" . $data;
  2566. $resp = http_post_data($url, $data, ['Content-Type: application/json;charset=UTF-8;', 'Accept:application/json;charset=UTF-8;']);
  2567. }
  2568. public function testJiecPhone()
  2569. {
  2570. $provider = new refill\jiec\RefillPhone([]);
  2571. $resp = $provider->add('18500608333', 5, 30, ['order_sn' => $this->make_sn()]);
  2572. }
  2573. public function testBxtwtCB()
  2574. {
  2575. $data = '{"order_number":18219726,"shipping_status":4,"shipping_status_desc":"发货失败","shipping_status_message":"","sign":"863b4d972f2a4d39a9af7396879116c4","voucher":"","vouchertype":"","voucherurl":"","tradeNo":"100662475851197741"}';
  2576. }
  2577. public function testTianjtJDVerify()
  2578. {
  2579. $data = 'onlystr=920661883198026632&sign=533151e3f0dff5f507786aabc37b18f7&amt=100&notifyurl=https%3A%2F%2Fwww.xyzshops.cn%2Fmobile%2Frefill_tianjt.php&jdno&cardtype=Sinoepc&batchid=26106&cardno=1000111100020654226&orgid=1590993600&status=3';
  2580. $url = "http://192.168.1.220/mobile/refill_tianjt.php?" . $data;
  2581. $resp = http_request($url);
  2582. }
  2583. public function testSuhcPDD()
  2584. {
  2585. $data = 'onlystr=820663525320005221&pddno&sign=4b1e8645f7541ced34855779448d9d52&amt=100&notifyurl=https%3A%2F%2Fwww.xyzshops.cn%2Fmobile%2Frefill_suhcpdd.php&cardtype=Sinoepc&batchid=3&cardno=1000111100020445281&orgid=1590993600&status=2';
  2586. $url = "https://www.xyzshops.cn/mobile/refill_suhcpdd.php?" . $data;
  2587. $resp = http_request($url);
  2588. }
  2589. public function testSuhcTMVerify()
  2590. {
  2591. $data = 'onlystr=180662473867058221&sign=5ff5f95d54a89e78dbb49923f6b20c08&amt=100&notifyurl=https%3A%2F%2Fwww.xyzshops.cn%2Fmobile%2Frefill_suhctm.php&cardtype=Sinoepc&batchid=3&cardno=1000111100020445281&orgid=1590993600&status=3';
  2592. $url = "https://www.xyzshops.cn/mobile/refill_suhctm.php?" . $data;
  2593. $resp = http_request($url);
  2594. }
  2595. public function testBeixtVerify()
  2596. {
  2597. $data = '{"order_number":18219726,"shipping_status":4,"shipping_status_desc":"发货失败","shipping_status_message":"","sign":"863b4d972f2a4d39a9af7396879116c4","voucher":"","vouchertype":"","voucherurl":"","tradeNo":"100662475851197741"}';
  2598. $url = "https://www.xyzshops.cn/mobile/refill_bxtwt.php";
  2599. $headers = ['Content-Type: application/json'];
  2600. $resp = http_post_data($url, $data, $headers);
  2601. }
  2602. public function testInput()
  2603. {
  2604. $input = fopen("php://input", "rw");
  2605. file_put_contents($input, 'xxxx');
  2606. $content = file_get_contents('php://input');
  2607. }
  2608. public function testUrl()
  2609. {
  2610. $data = 'onlystr=190661874318128632&sign=9eb60765c356341fd41c9bec6526f46a&amt=1000&notifyurl=https%3A%2F%2Fwww.xyzshops.cn%2Fmobile%2Frefill_suhc.php&jdno&cardtype=Sinoepc&batchid=25940&cardno=1000111100012304048&orgid=1590993600&status=2';
  2611. $params = preg_split('/&/', $data);
  2612. foreach ($params as $pair) {
  2613. $kv = explode('=', $pair);
  2614. $count = count($kv);
  2615. if ($count === 1) {
  2616. $key = $kv[0];
  2617. $val = "";
  2618. } elseif ($count === 2) {
  2619. $key = $kv[0];
  2620. $val = $kv[1];
  2621. } else {
  2622. continue;
  2623. }
  2624. Log::record("{$key}:{$val}", Log::DEBUG);
  2625. }
  2626. }
  2627. public function testAddoil()
  2628. {
  2629. $url = $this->mReqHost . "/mobile/index.php";
  2630. $notifyurl = 'http://121.89.196.45/mobile/signature.php';
  2631. $params = ['mchid' => $this->mMchid,
  2632. 'cardno' => '1000111100020445281',
  2633. 'amount' => "100",
  2634. "act" => "refill",
  2635. "op" => "add",
  2636. 'order_sn' => $this->make_sn(),
  2637. 'notifyurl' => $notifyurl];
  2638. $resp = $this->send_md5($url, $params);
  2639. Log::record($resp, Log::DEBUG);
  2640. }
  2641. public function testBalance()
  2642. {
  2643. $url = $this->mReqHost . "/mobile/index.php";
  2644. $params = ['mchid' => 1092,
  2645. "act" => "refill",
  2646. "op" => "balance"];
  2647. $resp = $this->send_md5($url, $params);
  2648. Log::record($resp, Log::DEBUG);
  2649. }
  2650. public function testNotify()
  2651. {
  2652. $params = [
  2653. "mchid" => 10202,
  2654. "order_sn" => '21090216132600003_11675',
  2655. "amount" => '30.00',//intval($refill_info['refill_amount'] + 0.05),
  2656. "cardno" => 18639492164,
  2657. "trade_no" => 8693160683914496896438,
  2658. "idcard" => "",
  2659. "card_name" => "",
  2660. 'official_sn' => "",
  2661. 'message' => "匹配不到合适的充值通道",
  2662. "state" => 'CANCEL'];
  2663. $sign = $this->md5_sign($params,'KxK9f3yaBDOXVwvuOKDozvQ9Mt1CoqRX');
  2664. $notify_url = 'https://openapi-gateway-test.bbinsure.cn/ants_charge/v1/charge/order/notify/yeziOrderNew/1140';
  2665. $resp = http_request($notify_url, $params, 'POST');
  2666. }
  2667. public function testAddPhoe()
  2668. {
  2669. $url = $this->mReqHost . "/mobile/index.php";
  2670. $params = ['mchid' => $this->mMchid,
  2671. 'cardno' => '',
  2672. 'amount' => 100,
  2673. "act" => "refill",
  2674. "op" => "add",
  2675. 'order_sn' => '',
  2676. 'notifyurl' => "https://www.baoyung.com/api/unionservice/yezicharge"];
  2677. Log::record(json_encode($params), Log::DEBUG);
  2678. // $resp = $this->send_md5($url, $params);
  2679. }
  2680. public function testProxyHelper()
  2681. {
  2682. $phone = '13911129867';
  2683. $amount = 100;
  2684. $url = $this->mReqHost . "/mobile/index.php";
  2685. $params = ['mchid' => $this->mMchid,
  2686. 'cardno' => $phone,
  2687. 'amount' => $amount,
  2688. "act" => "refill",
  2689. "op" => "add",
  2690. 'order_sn' => $this->make_sn(),
  2691. 'notifyurl' => "https://xxx"];
  2692. $proxy = new refill_proxy("xxx");
  2693. $resp = $proxy->send($url, $params);
  2694. }
  2695. public function testGoods()
  2696. {
  2697. $req_url = $this->mReqHost . '/mobile/index.php';
  2698. $params = ['mchid' => $this->mMchid,
  2699. "act" => "refill",
  2700. "op" => "goods"];
  2701. $resp = $this->send_md5($req_url, $params);
  2702. }
  2703. public function testQueryFactory()
  2704. {
  2705. refill\RefillFactory::instance()->query(295);
  2706. }
  2707. public function testQuery()
  2708. {
  2709. //$req_url = 'https://www.xyzshops.cn/mobile/index.php';
  2710. // $notifyurl = 'https://www.xyzshops.cn/mobile/signature.php';
  2711. $req_url = BASE_SITE_URL . '/mobile/index.php';
  2712. $notifyurl = 'https://www.xyzshops.cn/mobile/signature.php';
  2713. $params = ['mchid' => 1,
  2714. "act" => "refill",
  2715. "op" => "query",
  2716. 'order_sn' => "13281476"];
  2717. $resp = $this->send_md5($req_url, $params);
  2718. }
  2719. public function testRemoveSession()
  2720. {
  2721. $resp = http_request(BASE_SITE_URL . "/mobile/signature.php", [], 'POST');
  2722. }
  2723. public function testTianjtCB()
  2724. {
  2725. // $notifyurl = BASE_SITE_URL . "/mobile/refill_tianjt.php";
  2726. $notifyurl = "https://www.xyzshops.cn/mobile/refill_tianjt.php";
  2727. // $notifyurl = "https%3A%2F%2Fwww.xyzshops.cn%2Fmobile%2Frefill_tianjt.php";
  2728. $params = ['onlystr' => '690665858589475818',
  2729. 'amt' => 1000,
  2730. 'jdno' => '',
  2731. 'notifyurl' => $notifyurl,
  2732. 'cardtype' => 'Sinoepc',
  2733. 'batchid' => 30589,
  2734. 'cardno' => '1000113300007993287',
  2735. 'orgid' => '1590993600',
  2736. 'status' => 3];
  2737. $sign = $this->md5_sign($params);
  2738. $params['sign'] = $sign;
  2739. $resp = http_request($notifyurl, $params, 'POST');
  2740. Log::record($resp, Log::DEBUG);
  2741. }
  2742. public function testBJBCB()
  2743. {
  2744. $params = [
  2745. 'usr' => '13699279618',
  2746. 'ord' => '710662733975412771',
  2747. 'state' => '2',
  2748. 'bz' => '',
  2749. 'sgn' => 'AC9AFD254DE682D8440A97CA68B992DA'
  2750. ];
  2751. $resp = http_request("https://www.xyzshops.cn/mobile/refill_bjb.php", $params, 'POST');
  2752. }
  2753. public function testJiecCB()
  2754. {
  2755. $params['result'] = 'fail';
  2756. $params['msg'] = '0';
  2757. $params['order'] = 'null';
  2758. $params['phone_no'] = '18500608333';
  2759. $params['amount'] = '30.00';
  2760. $params['op_no'] = '800663597981819221';
  2761. $params['sign'] = '2510046895e8e12322c8a32547905ee9';
  2762. $resp = http_request($this->mReqHost . "/mobile/refill_jiec.php", $params, 'POST');
  2763. }
  2764. public function testZFKJ()
  2765. {
  2766. //带签名参数:mchid=1090&act=refill&op=add&cardno=100112121212212133
  2767. //&amount=10&order_sn=PH2012261356569433&
  2768. //notifyurl=https%3A%2F%2Fqzcz.edusahoo.com.cn%2Findex%2Findex%2Fcallback
  2769. //&sign=4a3ac5f9706e64aa70c6cab0fc5839d3
  2770. $params = ['mchid' => 1090,
  2771. 'cardno' => '100112121212212133',
  2772. 'amount' => '10',
  2773. "act" => "refill",
  2774. "op" => "add",
  2775. 'order_sn' => 'PH2012261356569433',
  2776. 'notifyurl' => 'https://qzcz.edusahoo.com.cn/index/index/callback'];
  2777. $resp = $this->send_md5(BASE_SITE_URL . '/mobile/index.php', $params);
  2778. }
  2779. protected function check_empty($value)
  2780. {
  2781. if (!isset($value))
  2782. return true;
  2783. if ($value === null)
  2784. return true;
  2785. if (trim($value) === "")
  2786. return true;
  2787. return false;
  2788. }
  2789. public function testcreateSign()
  2790. {
  2791. $params['act'] = 'refill';
  2792. $params['amount'] = '30';
  2793. $params['cardno'] = '18111516552';
  2794. $params['mchid'] = '10179';
  2795. $params['notifyurl'] = 'http://czapi2.1jinb.net/YeZiHCCallBackOrderServlet';
  2796. $params['op'] = 'add';
  2797. $params['order_sn'] = 'JFNOR10835056877';
  2798. $sign = $this->md5_sign($params);
  2799. }
  2800. public function testCheckphone()
  2801. {
  2802. $check = function ($phone) {
  2803. $url = 'https://mobileempty.shumaidata.com/mobileempty';
  2804. $params['mobile'] = $phone;
  2805. $headers = array();
  2806. array_push($headers, "Authorization:APPCODE " . '8f92d951293f4d2ea48ff86d5a70c537');
  2807. $resp = http_request($url, $params, 'GET', false, $headers);
  2808. $resp = json_decode($resp, true);
  2809. if ($resp['success'] == true && $resp['code'] == 200) {
  2810. Log::record("data phone:{$phone} , status : {$resp['data']['status']}", Log::DEBUG);
  2811. if (in_array($resp['data']['status'], [0, 3, 4, 5])) {
  2812. return false;
  2813. }
  2814. } else {
  2815. Log::record("data phone:{$phone} , 不支持的号段", Log::DEBUG);
  2816. }
  2817. };
  2818. $check(17801048874);
  2819. }
  2820. public function testCtSign()
  2821. {
  2822. $params['act'] = 'refill';
  2823. $params['op'] = 'add';
  2824. $params['mchid'] = '10198';
  2825. $params['cardno'] = '18696902060';
  2826. $params['amount'] = '30';
  2827. $params['order_sn'] = '163782007236900000878';
  2828. $params['notifyurl'] = 'http://open.apiwater.xyz:20801/';
  2829. $sign = $this->md5_sign($params,'b9b30f57eac34a398a7534021fa23a16');
  2830. }
  2831. private function md5_sign($params,$key = '')
  2832. {
  2833. ksort($params);
  2834. $body = "";
  2835. $i = 0;
  2836. foreach ($params as $k => $v) {
  2837. if (false === $this->check_empty($v) && "@" != substr($v, 0, 1)) {
  2838. if ($i == 0) {
  2839. $body .= "{$k}" . "=" . urlencode($v);
  2840. } else {
  2841. $body .= "&" . "{$k}" . "=" . urlencode($v);
  2842. }
  2843. $i++;
  2844. }
  2845. }
  2846. $body .= "&key={$key}";
  2847. return md5($body);
  2848. }
  2849. public function testCallMech()
  2850. {
  2851. $logic = Logic('queue');
  2852. $logic->NotifyMerchantComplete(['order_id' => 18171, 'manual' => true]);
  2853. }
  2854. //docker-compose run phpcli php /var/www/html/phpunit-9.2.5.phar --filter "/(TestRefill::testCallMech)( .*)?$/" --test-suffix TestRefill.php /var/www/html/test
  2855. private function send($url, $params)
  2856. {
  2857. $mchid = $params['mchid'];
  2858. $pri_key = BASE_DATA_PATH . "/api/merchant/key/{$mchid}_pri.pem";
  2859. $key = file_get_contents($pri_key);
  2860. $pri = openssl_get_privatekey($key);
  2861. $body = $this->body($params);
  2862. openssl_sign($body, $signed, $pri);
  2863. $sign = base64_encode($signed);
  2864. $params['sign'] = $sign;
  2865. $resp = http_request($url, $params, 'POST');
  2866. Log::record("resp:{$resp}", Log::DEBUG);
  2867. }
  2868. private function send_md5($url, $params)
  2869. {
  2870. $body = $this->body($params);
  2871. $body .= "&key={$this->mKey}";
  2872. $params['sign'] = md5($body);
  2873. $resp = http_request($url, $params, 'POST');
  2874. Log::record("resp:{$resp}", Log::DEBUG);
  2875. return $resp;
  2876. }
  2877. public function testCardType()
  2878. {
  2879. $cardno = '1000111100021211884';
  2880. $ret = preg_match('/^1[0-9]{18}$/', $cardno, $matches);
  2881. }
  2882. public function testMtrand()
  2883. {
  2884. }
  2885. public function testHttpRefill()
  2886. {
  2887. $mchid = '000001';
  2888. $pri_key = BASE_DATA_PATH . "/api/merchant/key/{$mchid}_pri.pem";
  2889. $key = file_get_contents($pri_key);
  2890. $pri = openssl_get_privatekey($key);
  2891. $params = ['MCHID' => $mchid, 'cardno' => '1000111100021211884', 'amt' => "100", "act" => "refill", "op" => "addoil"];
  2892. $body = $this->body($params);
  2893. openssl_sign($body, $signed, $pri);
  2894. $sign = base64_encode($signed);
  2895. $params['sign'] = $sign;
  2896. $resp = http_request(BASE_SITE_URL . "/mobile/index.php", $params, 'POST');
  2897. }
  2898. private function body($params)
  2899. {
  2900. ksort($params);
  2901. $body = "";
  2902. $i = 0;
  2903. foreach ($params as $k => $v) {
  2904. if (false === $this->checkEmpty($v) && "@" != substr($v, 0, 1)) {
  2905. if ($i == 0) {
  2906. $body .= "{$k}" . "=" . urlencode($v);
  2907. } else {
  2908. $body .= "&" . "{$k}" . "=" . urlencode($v);
  2909. }
  2910. $i++;
  2911. }
  2912. }
  2913. return $body;
  2914. }
  2915. private function checkEmpty($value)
  2916. {
  2917. if (!isset($value))
  2918. return true;
  2919. if ($value === null)
  2920. return true;
  2921. if (trim($value) === "")
  2922. return true;
  2923. return false;
  2924. }
  2925. public function testKsort()
  2926. {
  2927. $age = ["Peter" => "35", "Ben" => "37", "Joe" => "43"];
  2928. ksort($age);
  2929. foreach ($age as $x => $x_value) {
  2930. echo "Key=" . $x . ", Value=" . $x_value;
  2931. echo "<br>";
  2932. }
  2933. }
  2934. public function testip()
  2935. {
  2936. $model_merchant = Model('merchant');
  2937. $merchant_info = $model_merchant->getMerchantInfo(['mchid' => 1]);
  2938. $ipwhitelist = unserialize($merchant_info['ip_white_list']);
  2939. $res = json_encode($ipwhitelist);
  2940. }
  2941. //测试向内部店提交订单,可先屏蔽其它充值通道
  2942. public function testAddoilToInnerStore()
  2943. {
  2944. $url = $this->mReqHost . "/mobile/index.php";
  2945. $notifyurl = BASE_SITE_URL . '/mobile/signature.php';
  2946. $params = ['mchid' => 1,
  2947. 'cardno' => '1000111100020445281',
  2948. 'amount' => "1000",
  2949. "act" => "refill",
  2950. "op" => "add",
  2951. 'order_sn' => $this->make_sn(),
  2952. 'notifyurl' => $notifyurl];
  2953. $resp = $this->send_md5($url, $params);
  2954. Log::record($resp, Log::DEBUG);
  2955. }
  2956. public function testRefillInnerCB()
  2957. {
  2958. $params = ['state_type' => 'order_cancel', 'order_id' => 311, 'channel_name' => 'lx'];
  2959. $resp = http_request(BASE_SITE_URL . '/mobile/refill_inner.php', $params, 'POST');
  2960. }
  2961. public function testArgs()
  2962. {
  2963. Log::record($_SERVER['argv'], Log::DEBUG);
  2964. }
  2965. public function testCall()
  2966. {
  2967. $order_id = 14974;
  2968. QueueClient::async_push("NotifyMerchantComplete", ['order_id' => $order_id, 'manual' => true], 10);
  2969. }
  2970. public function testSyncconfig()
  2971. {
  2972. $name_val_cfg = function ($items) {
  2973. $result = [];
  2974. foreach ($items as $item) {
  2975. $name = $item->name();
  2976. $result[$name] = $item;
  2977. }
  2978. return $result;
  2979. };
  2980. $name_val_row = function ($items) {
  2981. $result = [];
  2982. foreach ($items as $item) {
  2983. $name = $item['name'];
  2984. $result[$name] = $item;
  2985. }
  2986. return $result;
  2987. };
  2988. $match = function ($all, $cur) {
  2989. $insert = [];
  2990. foreach ($all as $key => $value) {
  2991. if (!array_key_exists($key, $cur)) {
  2992. $insert[] = $key;
  2993. }
  2994. }
  2995. return $insert;
  2996. };
  2997. $inserter = function ($mod, $type, $names) {
  2998. foreach ($names as $name) {
  2999. $data = ['name' => $name, 'type' => $type];
  3000. $mod->insert($data);
  3001. }
  3002. };
  3003. $provider = refill\RefillFactory::instance()->providers();
  3004. $oils = $name_val_cfg($provider['oil']);
  3005. $phones = $name_val_cfg($provider['phone']);
  3006. $mod_prov = Model('refill_provider');
  3007. $oil_items = $mod_prov->getProviderList(['type' => 1]);
  3008. $oil_items = $name_val_row($oil_items);
  3009. $oil_inserts = $match($oils, $oil_items);
  3010. $phone_items = $mod_prov->getProviderList(['type' => 2]);
  3011. $phone_items = $name_val_row($phone_items);
  3012. $phone_inserts = $match($phones, $phone_items);
  3013. $inserter($mod_prov, 1, $oil_inserts);
  3014. $inserter($mod_prov, 2, $phone_inserts);
  3015. }
  3016. public function testStat()
  3017. {
  3018. $model_refill_order = Model('refill_order');
  3019. $stat = Model('')->table('refill_order,vr_order')->join('inner')
  3020. ->on('refill_order.order_id=vr_order.order_id')
  3021. ->field('sum(refill_amount) as refill_amounts , sum(channel_amount) as channel_amounts , sum(mch_amount) as mch_amounts')
  3022. ->where([])->select();
  3023. }
  3024. public function testRefillGoods()
  3025. {
  3026. $goods = refill\RefillFactory::instance()->goods();
  3027. }
  3028. private function make_mobile()
  3029. {
  3030. $no = "1" . mt_rand(3000000000, 3999999999);
  3031. return $no;
  3032. }
  3033. private function refill_info($card_no, $card_type)
  3034. {
  3035. $data = rcache($card_no, 'cardrefill-');
  3036. if (empty($data)) {
  3037. $mod_topcard = Model('topcard');
  3038. $ret = $mod_topcard->get_card($card_no);
  3039. if (empty($ret)) {
  3040. $bind_phone = $this->make_mobile();
  3041. $mod_topcard->add($card_no, $card_type, time(), $bind_phone);
  3042. $data['bind_phone'] = $bind_phone;
  3043. $data['refill_time'] = time();
  3044. $data['times'] = 0;
  3045. wcache($card_no, $data, 'cardrefill-');
  3046. } else {
  3047. $val = $ret[0];
  3048. $data['bind_phone'] = $val['bind_phone'];
  3049. $data['refill_time'] = time();
  3050. $data['times'] = 0;
  3051. }
  3052. }
  3053. return $data;
  3054. }
  3055. public function testGetMobile()
  3056. {
  3057. $card_no = '1000119000001679247';
  3058. $card_type = 1;
  3059. $info = $this->refill_info($card_no, $card_type);
  3060. }
  3061. private function check_mchorder($mchid, $mch_order)
  3062. {
  3063. if (empty($mch_order)) {
  3064. return true;
  3065. } else {
  3066. $refill_order = Model('refill_order');
  3067. $ret = $refill_order->getOrderInfo(['mchid' => $mchid, 'mch_order' => $mch_order]);
  3068. return empty($ret);
  3069. }
  3070. }
  3071. public function testCheckMchorder()
  3072. {
  3073. $ret = $this->check_mchorder(1, '13281475');
  3074. }
  3075. public function testMakemobile()
  3076. {
  3077. $mobile = refill\util::make_mobile();
  3078. $ret = refill\util::set_black('1000111100020445281');
  3079. }
  3080. public function testLoadBlack()
  3081. {
  3082. $path = BASE_DATA_PATH . "/log";
  3083. $names = ['20210119-mobile.log',
  3084. '20210120-mobile.log', '20210121-mobile.log', '20210122-mobile.log', '20210123-mobile.log',
  3085. '20210124-mobile.log', '20210125-mobile.log'];
  3086. foreach ($names as $name) {
  3087. $file_name = $path . "/" . $name;
  3088. refill\util::black_from_log($file_name);
  3089. }
  3090. }
  3091. public function testStats()
  3092. {
  3093. $date = date('Y-m-d', time());
  3094. $today = strtotime("{$date}");
  3095. $times_begin = function ($start) {
  3096. $times = [];
  3097. $begin = $start;
  3098. for ($i = 0; $i < 7; $i++) {
  3099. $times[] = $begin;
  3100. $begin -= 86400;
  3101. }
  3102. return $times;
  3103. };
  3104. $reader = function ($mchid, $time) {
  3105. $cond['mchid'] = $mchid;
  3106. $cond['inner_status'] = 0;
  3107. $cond['refill_order.order_time'] = ['between', [$time, $time + 86400 - 1]];
  3108. $items = Model('')->table('refill_order,vr_order')->join('inner')
  3109. ->on('refill_order.order_id=vr_order.order_id')
  3110. ->field('count(*) as order_count, vr_order.order_state, sum(mch_amount) as mch_amounts')
  3111. ->group('vr_order.order_state')
  3112. ->where($cond)->select();
  3113. return $items;
  3114. };
  3115. $begins = $times_begin($today);
  3116. $mchid = 10096;
  3117. // $states = rcache($this->mchid() , 'refillstat-');
  3118. $states = unserialize($states ?? "");
  3119. if (empty($states)) $states = [];
  3120. $result = [];
  3121. $cache = [];
  3122. foreach ($begins as $begin) {
  3123. if (array_key_exists($begin, $states)) {
  3124. $item = $states[$begin];
  3125. } else {
  3126. $item = $reader($mchid, $begin);
  3127. }
  3128. $result[$begin] = $item;
  3129. //判断item 中充值中的状态是否为0,为0的情况下放进cache
  3130. $cache = $item;
  3131. }
  3132. wcache($this->mchid(), $cache, 'refillstat-');
  3133. return $result;
  3134. }
  3135. public function testNotifyx()
  3136. {
  3137. $mch_cache = rcache("merchant-notify", 'refill-');
  3138. $caches = empty($mch_cache['data']) ? [] : unserialize($mch_cache['data']);
  3139. $new_caches = [];
  3140. $merchants = Model('merchant')->getMerchantList([], '', '', 'merchant.*,member.available_predeposit', "0,1000");
  3141. foreach ($merchants as $merchant) {
  3142. $mchid = $merchant['mchid'];
  3143. $phone = $merchant['contact_phone'] ?? "";
  3144. $available_pd = intval($merchant['available_predeposit']);
  3145. $alarm_pd = intval($merchant['alarm_amount']) < 10000 ? 10000 : intval($merchant['alarm_amount']);
  3146. if (array_key_exists($mchid, $caches)) {
  3147. $mch_cache = $caches[$mchid];
  3148. } else {
  3149. $mch_cache = ['last_time' => 0, 'send_count' => 0];
  3150. }
  3151. if (!empty($phone) && ($available_pd < $alarm_pd)) {
  3152. $counts = $mch_cache['send_count'];
  3153. if (($mch_cache['last_time'] + 300 < time()) && $counts < 5) {
  3154. $mch_cache = ['last_time' => time(), 'send_count' => $counts + 1];
  3155. QueueClient::push('sendSMS', ['mobile' => $merchant['contact_phone'],
  3156. 'type' => 'balance_warning', 'datas' => [date("m月d日H时"), $merchant['available_predeposit']]]);
  3157. }
  3158. } else {
  3159. $mch_cache = ['last_time' => 0, 'send_count' => 0];
  3160. }
  3161. $new_caches[$mchid] = $mch_cache;
  3162. }
  3163. wcache("merchant-notify", ['data' => serialize($new_caches)], 'refill-');
  3164. }
  3165. public function testReadChannel()
  3166. {
  3167. refill\RefillFactory::instance()->read_channel();
  3168. }
  3169. public function testAllow()
  3170. {
  3171. $allow = refill\RefillFactory::instance()->allow(10096, 1, 100);
  3172. }
  3173. public function testCheckData()
  3174. {
  3175. $str = '|2|110667993758599771-充值失败|';
  3176. // $str = '0|提交成功|-36557.7400';
  3177. // if(preg_match( '/^-*[0-9]{1,3}\|[\x{4e00}-\x{9fa5}]+\|-*[0-9]+\.*[0-9]+$/u',$str,$matches)) {
  3178. // return true;
  3179. // }
  3180. // if(preg_match('/^[0-3]\|[0-9]+-*[\x{4e00}-\x{9fa5}]+\|[0-9]*$/u',$str,$matches)){
  3181. // return true;
  3182. // }
  3183. // return false;
  3184. $resp = ltrim($str, '|');
  3185. $resp = explode('|', $resp);
  3186. if (count($resp) != 3) {
  3187. return [false, '返回值错误'];
  3188. }
  3189. }
  3190. public function testErrre()
  3191. {
  3192. $line = '[13 2021-01-24 16:07:03] DEBUG: type = application/json;charset=utf-8, content={"channelOrderNumber":"610664819621371793","orderNumber":"GYFL1611475621525437","message":"充值失败","signature":"6c28c15b9ce2b2243742ecebbd929ac5","status":109}';
  3193. $ret = preg_match('/[\w\W]+"channelOrderNumber":"(?P<order_sn>[^"]+)"[\w\W]+"message":"(?P<message>[\x{4e00}-\x{9fa5}]+)"[\w\W]+"status":109/u', $line, $matches);
  3194. }
  3195. public function testExpolode()
  3196. {
  3197. $x = "HTTP-504";
  3198. [$type,$code] = explode('-',$x);
  3199. }
  3200. public function testMchctl()
  3201. {
  3202. $ctl = new refill\mchctl();
  3203. }
  3204. public function testAsyncadd()
  3205. {
  3206. $x = \refill\util::async_add(['xxxx' => 1],4);
  3207. }
  3208. private function getProvider($name,$type = 'RefillPhone')
  3209. {
  3210. $file = BASE_HELPER_RAPI_PATH . "/$name/{$type}.php";
  3211. if(!file_exists($file)){
  3212. Log::record("provider api file={$file} not exist.",Log::DEBUG);
  3213. return false;
  3214. } else {
  3215. require_once($file);
  3216. Log::record("file={$file} load success.",Log::DEBUG);
  3217. }
  3218. $class_name = "refill\\{$name}\\{$type}";
  3219. if (class_exists($class_name, false)) {
  3220. $caller = new $class_name([]);
  3221. return $caller;
  3222. } else {
  3223. $error = "Base Error: class {$class_name} isn't exists!";
  3224. Log::record($error, Log::ERR);
  3225. return false;
  3226. }
  3227. }
  3228. public function testOrderExist()
  3229. {
  3230. $refill_order = Model('refill_order');
  3231. $ret = $refill_order->exist(10116,'Yzb20210825111251415');
  3232. }
  3233. public function testRGoods()
  3234. {
  3235. $goods_list = refill\RefillFactory::instance()->goods();
  3236. }
  3237. public function testCanbu()
  3238. {
  3239. $notify = function ($resp)
  3240. {
  3241. if (empty($resp)) {
  3242. return [false, '网络错误'];
  3243. }
  3244. else
  3245. {
  3246. Log::record($resp, Log::DEBUG);
  3247. $resp = json_decode($resp, true);
  3248. if (empty($resp)) {
  3249. return [false, '网络错误'];
  3250. }
  3251. if($resp['code'] == 1)
  3252. {
  3253. $status = $resp['data']['status'];
  3254. if ($status == 'success') {
  3255. $order_state = ORDER_STATE_SUCCESS;
  3256. } elseif ($status == 'failed') {
  3257. $order_state = ORDER_STATE_CANCEL;
  3258. } elseif ($status == 'wait') {
  3259. $order_state = ORDER_STATE_SEND;
  3260. } else {
  3261. return [false, $status];
  3262. }
  3263. return [true, $order_state];
  3264. }
  3265. elseif($resp['code'] == -1 && $resp['msg'] == '订单不存在')
  3266. {
  3267. return [true, ORDER_STATE_NOEXIST];
  3268. }
  3269. else
  3270. {
  3271. return [false, $resp['msg']];
  3272. }
  3273. }
  3274. };
  3275. $resp = '{"code":1,"msg":"查询成功","data":{"systemOrderNo":"2049420687473912283808","agentOrderNo":"s16341299122819479569112","phone":"18571522718","itemName":"UNICOM","itemFacePrice":"50","status":0,"description":"待处理","amount":"47.2500","officialOrderNo":""}}';
  3276. $ret = $notify($resp);
  3277. }
  3278. }
  3279. //docker-compose run phpcli php /var/www/html/phpunit-9.2.5.phar --filter "/(TestRefill::testLoadBlack)( .*)?$/" --test-suffix TestRefill.php /var/www/html/test
  3280. //docker-compose -f ./docker-compose-dev.yml run phpcli php /var/www/html/phpunit-9.2.5.phar --filter "/(TestRefill::testCall)( .*)?$/" --test-suffix TestRefill.php /var/www/html/test