mReqHost = BASE_SITE_URL; $this->mMchid = 1; $this->mKey = '1ff02223b771c0414468c8892151c602'; } else { $this->mReqHost = 'https://www.xyzshops.cn'; // $this->mReqHost = 'http://121.89.196.45'; $this->mMchid = 1092; $this->mKey = '210fe406954220f56085997d6a4c5b80'; } $this->make_sn(); } public static function setUpBeforeClass(): void { Base::run_util(); refill\RefillFactory::instance(); } public function testExist() { $functor = function($card_no) { $ins = Cache::getInstance('cacheredis'); $today = strtotime(date('Ymd', time())); $name = "unique_tongfu_{$today}"; $key = "$card_no"; $value = $ins->hget($name, '', $key); if ($value === false) { $ins->hset($name, '', [$key => 1]); return false; } else { return true; } }; $x = $functor(13911129867); $x = $functor(13911129867); } public function testIsDay() { $ret = refill\functional::isDay(); } public function testBodian_yd() { // $provider = $this->getProvider('bodian_yd'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '16971663724801057246']); $body = ' {"szOrderId":"16971663724801057246","fSalePrice":"30.09","szAgentId":"200064","nFlag":"2","szVerifyString":"69c41652845d37f130186b05ddeecf6a","szPhoneNum":"15811535608","szRtnMsg":"00772022092109464443723910546991","nDemo":"30"}'; $params = json_decode($body, true); $provider = $this->getProvider('bodian_yd', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testMerchantPrice() { $price = new refill\merchant_price(); } public function testCallBack() { $params = [ "mchid" => 10193, "order_sn" => 'open1632462013152110599086', "amount" => '100.0000',//intval($refill_info['refill_amount'] + 0.05), "cardno" => 18505101761, "trade_no" => '4034130685806092699201', "idcard" => $refill_info['idcard'] ?? "", "card_name" => $refill_info['card_name'] ?? "", 'official_sn' => '110103353072109241341340249560', 'message' => '', "state" => 'SUCCESS' ]; $params['sign'] = $this->md5_sign($params, '0a845c18fbefaa121f36169ab8c880f3'); $notify_url = 'http://v3.biyingniao.com/web/yezi/v2/straight_url?from=equityOpen'; $resp = http_request($notify_url, $params, 'POST'); } public function testFactory() { $provider = refill\RefillFactory::instance(); } private function make_sn() { return mt_rand(1000, 9999) . sprintf('%010d', time()) . sprintf('%06d', (float)microtime() * 1000000); } public function testRandomMobile() { $no = "1" . mt_rand(1, 9999999999); Log::record("phone no={$no}", Log::DEBUG); } public function testBJBAddPhone() { $provider = new refill\bjb\RefillPhone([]); for ($i = 3; $i > 0; --$i) { $resp = $provider->add(13911129867, 4, 10, ['order_sn' => $this->make_sn()]); $resp = $provider->add(18500608333, 4, 10, ['order_sn' => $this->make_sn()]); $resp = $provider->add(18510683168, 4, 10, ['order_sn' => $this->make_sn()]); $resp = $provider->add(18513846008, 4, 10, ['order_sn' => $this->make_sn()]); $resp = $provider->add(18518237398, 4, 10, ['order_sn' => $this->make_sn()]); } } public function testOilticket() { $provider = new refill\bjb\RefillPhone([]); } public function testBjbRet() { $resp = '0|提交成功|14936.8600'; $resp = explode('|', $resp); } public function testIpWhiteList() { $x = serialize(['47.99.57.105']); $ips = unserialize('a:1:{i:0;s:12:"47.99.57.105";}'); if (!empty($ips)) { $addr = '47.99.57.105'; Log::record("request ip:{$addr}", Log::DEBUG); if (!in_array($addr, $ips)) { throw new Exception("请求地址不在白名单中"); } } } public function testBaizePhone() { $provider = new refill\baizeyd\RefillPhone([]); // $resp = $provider->add(17801048874, 5, 10, ['order_sn' => $this->make_sn()]); $resp = $provider->query(['order_sn' => '930668700375312006']); // $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'; // $input = $this->parse_request($str); // $input['amount'] = 10.00; // $input['orderId'] = '92391614943913061206'; // $input['phone'] = 17801048874; // $input['payTime'] = '2021-03-05 19:31:55'; // $input['sign'] = 'bef6ae50319fb1e8cb3f21302f0abef8'; // $input['appKey'] = 'uECmTOFAY6RPCTtI'; // $input['payUrl'] = ''; // $input['statusDes'] = '支付失败'; // $input['status'] = 7; // refill\RefillFactory::instance()->notify('baizeyd',$input); } private function parse_request($squery) { if (empty($squery)) return []; $result = []; $params = preg_split('/&/', $squery); foreach ($params as $pair) { if (empty($pair)) continue; $kv = explode('=', $pair); $count = count($kv); if ($count === 1) { $key = $kv[0]; $val = ""; } elseif ($count === 2) { $key = $kv[0]; $val = urldecode($kv[1]); } else { continue; } if (!empty($key)) { $result[$key] = $val; } } return $result; } public function testAmPhone() { // $provider = new refill\aming\RefillOil([]); // $resp = $provider->add(18500608333, 5, 10, ['order_sn' => $this->make_sn()]); $input['result'] = 'fail'; $input['msg'] = 0; $input['order'] = 'null'; $input['phone_no'] = 18500608333; $input['sign'] = 'c925ad19c63c3eb36ffc52d938e24604'; $input['amount'] = '10.00'; $input['op_no'] = '42601615096072517841'; refill\RefillFactory::instance()->notify('aming', $input); } public function testBhcPhone() { $provider = new refill\binghc\RefillPhone([]); $resp = $provider->query(['order_sn' => 250668618955902006]); // $input['result'] = 'fail'; // $input['msg'] = 0; // $input['order'] = 'null'; // $input['phone_no'] = 18500608333; // $input['sign'] = 'c3aa38ee07cd1b69bfd5ead56f6da8d6'; // $input['amount'] = '10.00'; // $input['op_no'] = '24061615096361999002'; // refill\RefillFactory::instance()->notify('binghc',$input); } public function testRuishunPhone() { // $provider = new refill\ruishun\RefillOil([]); // $resp = $provider->add(18500608333, 5, 10, ['order_sn' => $this->make_sn()]); $input['result'] = 'fail'; $input['msg'] = 0; $input['order'] = null; $input['phone_no'] = 18500608333; $input['sign'] = 'e234f7d1c0458ca236f53a0008436b46'; $input['amount'] = "10.00"; $input['op_no'] = '76361615095403188513'; refill\RefillFactory::instance()->notify('ruishun', $input); } public function testWuchenPhone() { $provider = new refill\wuchen\RefillPhone([]); // $resp = $provider->add('13699279618', 5, 30, ['order_sn' => $this->make_sn()]); $resp = $provider->query(['order_sn' => '790668630498425006']); // $input['app_id'] = '70016'; // $input['message'] = 'fail'; // $input['order_sn'] = '43101615277293035501'; // $input['platform_order_id'] = ''; // $input['sign'] = '5ea59f8ac51a518f2c622824d7db2a04'; // $input['state'] = "fail"; // $input['sys_sn'] = '202103091608231836913889'; // $input['timestamp'] = '1615277361'; // refill\RefillFactory::instance()->notify('wuchen',$input); } public function testYibaoPhone() { $provider = new refill\yibao\RefillPhone([]); // $resp = $provider->add('13699279618', 5, 30, ['order_sn' => $this->make_sn()]); $resp = $provider->query(['ch_trade_no' => '31215002972142736']); // $str = '{"amount":"30","carrierOrderNo":null,"mobile":"13699279618","orderNo":"27961615532426088043","orderStatus":3,"sign":"012BA0B093A0473D7DD1634A8356DCB1","tradeNo":"31215002972142736"}'; // $data = json_decode($str,true); // refill\RefillFactory::instance()->notify('yibao',$data); } public function testAmingydPhone() { $provider = new refill\amingyd\RefillPhone([]); // $resp = $provider->add('13699279618', 5, 30, ['order_sn' => $this->make_sn()]); $resp = $provider->query(['order_sn' => '15421615627436792938']); // $str = '{"orderId":"15421615627436792938","amount":3000,"appKey":"40695059","timestamp":1615627503,"status":3,"operatorId":"508353854027968617","sign":"2A0562319ED4845AB9E3812A58F0B425"}'; // $data = json_decode($str,true); // refill\RefillFactory::instance()->notify('amingyd',$data); } public function testChukaPhone() { $provider = new refill\chuka\RefillPhone([]); // $resp = $provider->add('18500608333', 5, 20, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '92161616314884175179']); $params['customerId'] = '101787'; $params['orderno'] = 'C1616314888506705492'; $params['tmporder'] = '92161616314884175179'; $params['code'] = '1'; $params['number'] = '18500608333'; $params['money'] = '20'; $params['amount'] = '0'; refill\RefillFactory::instance()->notify('chuka', $params); } public function testLegouPhone() { $provider = new refill\legou\RefillPhone([]); // $resp = $provider->add('18500608333', 5, 30, ['order_sn' => '200649600557718881' , 'order_id' => 247 , 'buyer_id' => 52667]); $resp = $provider->query(['order_sn' => '200649600557718881', 'order_id' => 247]); $params['username'] = 'lzdc'; $params['orderNumber'] = '690653407667699667'; $params['cardNumber'] = '18500608333'; $params['orderMoney'] = '30.0'; $params['orderPay'] = '1.0'; $params['resultCode'] = '2'; $params['rechargeDesc'] = '{"rechargeStatus":600200,"rechargeDesc":"充值成功"}'; $params['rechargeVoucher'] = '100407307092103291444050244599'; $params['sign'] = 'c054884422a8c3749cbfda0e82b9af70'; // refill\RefillFactory::instance()->notify('legou',$params); } public function testFeinimoshu() { $provider = new refill\feinimoshu\RefillOil([]); // $resp = $provider->query(['order_sn' => '3708210680873565742704']); $resp = $provider->balance(); } public function testFeinimoshu_hf() { $provider = new refill\feinimoshu_hf\RefillPhone([]); // $resp = $provider->query(['order_sn' => '3708210680873565742704']); $resp = $provider->balance(); } public function testFeiniaoPhone() { $provider = new refill\feiniao\RefillPhone([]); // $order_sn = $this->make_sn(); // Log::record($order_sn, Log::DEBUG); // $resp = $provider->add('13699279618', 4, 50, ['order_sn' => $order_sn]); $resp = $provider->query(['order_sn' => '28641617178590981824']); $params['result'] = 'fail'; $params['msg'] = '0'; $params['order'] = 'null'; $params['phone_no'] = '18500608333'; $params['amount'] = '100.00'; $params['op_no'] = '64591617090761169983'; $params['settle'] = '0'; $params['sign'] = '907d2640f96e8d78d59202d090ddb470'; // refill\RefillFactory::instance()->notify('feiniao',$params); } public function testTongyPhone() { $provider = new refill\tongy\RefillPhone([]); // $resp = $provider->add('18500608333', 5, 30, ['order_sn' => '690653407667699667', 'order_id' => 248, 'buyer_id' => 52667]); // $params['UserId'] = '100857'; // $params['ShopId'] = '300000'; // $params['SysOrderId'] = '21070215141210085700010'; // $params['OrderId'] = '9241650678554051429291'; // $params['State'] = '5'; // $params['Timestamp'] = '1625210740472'; // $params['sign'] = 'C5C4E888A3B678470071CDA6DC31719D'; // $params['ParValue'] = '100.0000'; // $params['VoucherType'] = ''; // $params['VoucherContent'] = ''; // $params['CreateTime'] = '2021-07-02 15:14:12'; // $params['CompleteTime'] = '2021-07-02 15:25:40'; // refill\RefillFactory::instance()->notify('tongy',$params); $resp = $provider->balance(); } public function testWeiyiPhone() { $provider = new refill\weiyi\RefillPhone([]); // $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '90401621489214002876']); $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"}'; $params = json_decode($body, true); refill\RefillFactory::instance()->notify('weiyi', $params); } public function testWeiyimanPhone() { $provider = new refill\weiyiman\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '47591620898269370373']); $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"}'; $params = json_decode($data, true); refill\RefillFactory::instance()->notify('weiyiman', $params); } public function testWeiyiWtPhone() { $provider = new refill\weiyiwt\RefillPhone([]); // $resp = $provider->add(18074608795, 6, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '38451621924366009924']); $body = '{"szOrderId":"38451621924366009924","fSalePrice":"47.25","szAgentId":"200016","nFlag":"2","szVerifyString":"a0b5bfc0bbf6c121a4cd74d9ecb2427d","szPhoneNum":"18074608795","szRtnMsg":"1000000083421052514441119833","nDemo":"50"}'; $params = json_decode($body, true); refill\RefillFactory::instance()->notify('weiyiwt', $params); } public function testXiaochuangPhone() { $provider = new refill\xiaochuang\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '84891623028826872085']); // $body = '{"fail_msg":"","order_sn":"84891623028826872085","order_status":"4","p_order_sn":"2021060709203558011797441162","sign":"E842203C3CA48E924D60B1B56AB93C3B"}'; // $params = json_decode($body , true); // refill\RefillFactory::instance()->notify('xiaochuang',$params); $resp = $provider->balance(); } public function testYintengPhone() { $provider = new refill\yinteng\RefillPhone([]); // $resp = $provider->add(18074608795, 6, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '49631623737966351874']); // $data = '{"szOrderId":"49631623737966351874","fSalePrice":"47.35","szAgentId":"200009","nFlag":"2","szVerifyString":"01c5fafb1d67175f0533b69a762286e8","szPhoneNum":"18074608795","szRtnMsg":"1000000083421061514495400262","nDemo":"50"}'; // $params = json_decode($data , true); // refill\RefillFactory::instance()->notify('yinteng',$params); $resp = $provider->balance(); } public function testMoxjPhone() { $provider = new refill\moxj\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]); $resp = $provider->query(['order_sn' => '91131623906171663147']); $data = '{"result":"fail","msg":"0","order":"null","phone_no":"18500608333","amount":"50.0","op_no":"84901623900668776864","sign":"896b54914a07b814573d7f6cc403848a"}'; $params = json_decode($data, true); // refill\RefillFactory::instance()->notify('moxj',$params); } public function testMoxj_fsPhone() { $provider = new refill\moxj_fs\RefillPhone([]); // $resp = $provider->add(15139608757, 4, 100, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '42741624242693157165']); // $data = '{"amount":"100","charge_type":"2","code":"1","partner_id":"58","phone":"15139608757","sign":"30d193dba4101e50851ed0efabb75fb1","partner_order_no":"42741624242693157165","official_order_id":"20210621103211948830"}'; // $params = json_decode($data , true); // refill\RefillFactory::instance()->notify('moxj_fs',$params); $resp = $provider->balance(); } public function testZanzanquickPhone() { $provider = new refill\zanzanquick\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '90831623925322675223']); // $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"}'; // $params = json_decode($data , true); // refill\RefillFactory::instance()->notify('zanzanquick',$params); $resp = $provider->balance(); } public function testFengyemanPhone() { $provider = new refill\fengyeman\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '46221624265179185139']); // $data = '{"order_id":"46221624265179185139","mchid":"HF67a65_10008","tel":"18500608333","price":"50.00","sign":"2bb4ed5edc97ba7f60cf3848aab82cf4","out_order_id":"206877995456","status":"1"}'; // $params = json_decode($data , true); // refill\RefillFactory::instance()->notify('fengyeman',$params); $resp = $provider->balance(); } public function testMoxj_ydPhone() { $provider = new refill\moxj_yd\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '52101624413125875436']); // $data = '{"customer_order_no":"47651624412877257722","status":1,"merchant_id":"76505818","sign":"c185a0f2152b3ac3ee3f29009dec5a6b"}'; // $params = json_decode($data , true); // refill\RefillFactory::instance()->notify('moxj_yd',$params); $resp = $provider->balance(); } public function testXingzyPhone() { $provider = new refill\xingzy\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '76791624441423287373', 'ch_trade_no' => '210623174333941000']); // $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}'; // $params = json_decode($data , true); // refill\RefillFactory::instance()->notify('xingzy',$params); $resp = $provider->balance(); } public function testYuanmaiPhone() { $provider = new refill\yuanmai\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '24231624865882625203', 'ch_trade_no' => '210623174333941000']); // $data = '{"orderid":"24231624865882625203","status":"2","ordermoney":"50","sign":"94be5b1754ffcc7f0fe1551072146941","spsno":""}'; // $params = json_decode($data, true); // refill\RefillFactory::instance()->notify('yuanmai',$params); $resp = $provider->balance(); } public function testLangkePhone() { $provider = new refill\langke\RefillPhone([]); // $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]); $resp = $provider->query(['order_sn' => '29461624952660047520', 'ch_trade_no' => '210623174333941000']); $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"}'; $params = json_decode($data, true); // refill\RefillFactory::instance()->notify('langke',$params); } public function testYunlingdsPhone() { $provider = new refill\yunlingds\RefillPhone([]); // $resp = $provider->add(18074608795, 6, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '85351624961920020593']); // $data = '{"orderid":"OWS21062918188862392","sporderid":"85351624961920020593","userid":"10002623","merchantsubmittime":"20210629181929","resultno":"1","parvalue":"30","remark1":"AW20210629181906yRAvM","payno":"AW20210629181906yRAvM","fundbalance":"-28.59","sign":"11369509ADCF2A2612B3531A15049BDD"}'; // $params = json_decode($data, true); // refill\RefillFactory::instance()->notify('yunlingds',$params); $resp = $provider->balance(); } public function testLingzhmanPhone() { // $provider = $this->getProvider('lingzhman'); // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '91641644558361512676']); // $resp = $provider->balance(); $body = '{"orderNo":"F2202111346304162782","status":"001","consumerNo":"91641644558361512676","voucherNo":null,"mobile":"18500608333"}'; $params = json_decode($body, true); $provider = $this->getProvider('lingzhman', 'RefillCallback'); $resp = $provider->notify($params); } public function testQijutangPhone() { $provider = new refill\qijutang\RefillPhone([]); // for ($i=1;$i<2;$i++) { // $resp = $provider->add(13699279618, 4, 100, ['order_sn' => $this->make_sn()]); // } // $resp = $provider->query(['order_sn' => '51501625218912512231']); // $data = '{"szOrderId":"51501625218912512231","fSalePrice":"28.44","szAgentId":"200010","nFlag":"3","szVerifyString":"20cf16c6bb239e2a703d0bf3e5ef2d5a","szPhoneNum":"18500608333","szRtnMsg":"","nDemo":"30"}'; // $params = json_decode($data, true); // refill\RefillFactory::instance()->notify('qijutang',$params); $resp = $provider->balance(); } public function testLingzhman48Phone() { // $provider = $this->getProvider('lingzhman48'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '39991649558290585085']); $body = '{"orderNo":"F2204101038212358481","status":"019","consumerNo":"39991649558290585085","voucherNo":null,"mobile":"18500608333"}'; $params = json_decode($body, true); $provider = $this->getProvider('lingzhman48', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testcangbuPhone() { $provider = $this->getProvider('cangbu'); // $resp = $provider->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]); $resp = $provider->query(['order_sn' => '4024880687558152076462']); // $data = '{"customerId":"112","tmporder":"35041626071052333060","orderno":"s16260710607417944801112","number":"18500608333","money":"100","amount":"94.9000","code":"1","cardno":"","voucher":"110103307042107121424210550266","sign":"de463c3d389a4afe4a2c58257972121a"}'; // $params = json_decode($data, true); // refill\RefillFactory::instance()->notify('cangbu',$params); $resp = $provider->balance(); } public function testCangbukami() { $provider = new refill\cangbukami\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 20, ['order_sn' => $this->make_sn()]); $resp = $provider->query(['order_sn' => '23231627380108954478']); } public function testTongykamiPhone() { $provider = new refill\tongykami\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 20, ['order_sn' => $this->make_sn()]); $resp = $provider->query(['order_sn' => '26961626077050756648']); $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"}'; $params = json_decode($data, true); // refill\RefillFactory::instance()->notify('tongykami',$params); } public function testTongluPhone() { $provider = new refill\tonglu\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]); $resp = $provider->query(['order_sn' => '22961616468561936356']); // $body = '{"order_no":"22961616468561936356","order_status":"5","phone_no":"18500608333","amount":5000,"time_paid":1616468856287,"order_cert_no":"","paid":false,"order_id":"20210323966497008"}'; // $sign = '9E41F52F612D60EBB654B3A5D1E2F1E5'; // $params = json_decode($body , true); // $params['sign'] = $sign; // refill\RefillFactory::instance()->notify('tonglu',$params); } public function testSialan() { $provider = $this->getProvider('sialan'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 10, ['order_sn' => $this->make_sn()]); $resp = $provider->query(['ch_trade_no' => '21112214053736552180705']); // $body = '{"api_id":"16855","recharge":"18500608333","amount":"10","order_sn":"21112213553615606755893","query_sn":"29151637560521755792","operator_sn":"","status":"2","sign":"32867363957ed9688b8bbdd8f42c08eb"}'; // $params = json_decode($body, true); // $provider = $this->getProvider('sialan', 'RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testMoxj_new() { $provider = new refill\moxj_new\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '33301627887529587739', 'card_no' => 13699279618]); // $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"}'; // $params = json_decode($body, true); // refill\RefillFactory::instance()->notify('moxj_new', $params); $resp = $provider->balance(); } public function testKangkai() { $provider = new refill\kangkai\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '25431627898461762024']); // $body = '{"TaskID":"267459","Mobile":"18500608333","Status":"5","ReportTime":"2021-08-02T18:02:01.777","ReportCode":"7:","OutTradeNo":"25431627898461762024","Price":"44.2500","ReceiptNum":"","Sign":"f0934a621fd0b076373f77a9bf8d7051"}'; // $params = json_decode($body, true); // refill\RefillFactory::instance()->notify('kangkai', $params); $resp = $provider->balance(); } public function testLechong() { $provider = new refill\lechong\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '55641627902450221838']); // $body = '{"sellerid":"55641627902450221838","agentcode":"202108021753","account":"MTg1MDA2MDgzMzM=","value":"50","payvalue":"47.8500","voucher":"","createtime":"20210802190739","endtime":"20210802191008","state":"4","remark":"","time":"20210802191008","sign":"0e2d69318d03871d887debd498cc50f2"}'; // $params = json_decode($body, true); // refill\RefillFactory::instance()->notify('lechong', $params); $resp = $provider->balance(); } public function testXinhengyang() { $provider = $this->getProvider('xinhengyang'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]); $resp = $provider->query(['order_sn' => '6966570691155594416360']); // $body = '{"reqNo":"f619063cc8f443e1a3ee1cc5fe868817","userReqNo":"12621636363677759274","evidence":"","sign":"fc184436350396baf252ff56aee6f5ce","billDiscount":"0.953","billAmount":"28.59","status":"50100","message":"fail"}'; // $params = json_decode($body, true); // $provider = $this->getProvider('xinhengyang', 'RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testMiaoxt() { $provider = new refill\miaoxt\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 10, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '85101628064401524483']); // $resp = $provider->balance(); $body = '{"szOrderId":"85101628064401524483","fSalePrice":"10.2","szAgentId":"200050","nFlag":"2","szVerifyString":"7a08b9a71a297a28843d749a7bf79dbc","szPhoneNum":"18500608333","szRtnMsg":"","nDemo":"10"}'; $params = json_decode($body, true); refill\RefillFactory::instance()->notify('miaoxt', $params); } public function testTianyan() { $provider = new refill\tianyan\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 10, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '71241628067981955316', 'card_no' => 18500608333, 'card_type' => 5]); // $resp = $provider->balance(); $params['amount'] = '100.00'; $params['orderNo'] = '2618380681466713437097'; $params['supplierId'] = '48'; $params['orderId'] = 'S20210805081833371976224648'; $params['notifyTime'] = '1628122793669'; $params['sign'] = '4d8f70bf451608359e256ee1e5f30de1'; $params['discountAmount'] = '5.50'; $params['phoneNo'] = '17696554433'; $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'; $params['payType'] = 'wechat'; $params['ticketNo'] = '110103353022108050819140250945'; $params['company'] = 'lt'; $params['status'] = '2'; refill\RefillFactory::instance()->notify('tianyan', $params); } public function testYunsuoyaoman() { // $provider = $this->getProvider('yunsuoyaoman'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '58771629702960801700']); $body = '{"orderid":"RLD21082315152651196","sporderid":"58771629702960801700","userid":"10002745","merchantsubmittime":"20210823152623","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-27.45","sign":"76A29E0101644831526138D63917C130"}'; $params = json_decode($body, true); $provider = $this->getProvider('yunsuoyaoman', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testYouhe() { // $provider = $this->getProvider('youhe'); // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '41051635145081582785']); // $resp = $provider->balance(); $body = ' {"seqNo":"FE4D9D65781C0758","orderNo":"46101635142848462768","result":"Q0001","transo":"","sign":"3B02C7864154C94D8479305D27F3831C"}'; $params = json_decode($body, true); $provider = $this->getProvider('youhe', 'RefillCallback'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testWenye() { $provider = new refill\wenye\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '88871628157083445809']); // $resp = $provider->balance(); $body = '{"orderNo":"F2108051529062719948","status":"019","consumerNo":"95291628148539909985","voucherNo":null,"mobile":"18500608333"}'; $params = json_decode($body, true); // refill\RefillFactory::instance()->notify('wenye', $params); } public function testXinyang() { $provider = new refill\xinyang\RefillPhone([]); // $resp = $provider->add(13699279618, 4, 10, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '68151628157534687971']); // $resp = $provider->balance(); $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"}'; $params = json_decode($body, true); refill\RefillFactory::instance()->notify('xinyang', $params); } public function testGuochuang() { $provider = $this->getProvider('guochuang'); $resp = $provider->add(13699279618, 4, 5, ['order_sn' => $this->make_sn(), 'regin_no' => 1]); // $resp = $provider->query(['order_sn' => '82951628231038096078']); // $resp = $provider->balance(); // $body = '{"account":"18074608795","evidence":"1000000083421080614310024563","evidenceType":"","id":"D2021080614235942044","inTime":"2021/08/06 14:26:22","money":"10","outerId":"82951628231038096078","status":"SUCCESS"}'; // $params['ts'] = 1628231182; // $params['sign'] = '545F7024870B145915934CA36C6D341E'; // $params['body'] = $body; // refill\RefillFactory::instance()->notify('guochuang', $params); // [$goods_id, $price] = $provider->goods(2, 10, 4, 1, []); } public function testXianghongrui() { $provider = new refill\xianghongrui\RefillPhone([]); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '87691628758730981608']); $body = '{"orderid":"BAT21081216581941649","sporderid":"87691628758730981608","userid":"10002503","merchantsubmittime":"20210812165918","resultno":"1","parvalue":"50","remark1":"110103353052108121658550256634","payno":"110103353052108121658550256634","fundbalance":"-47.5","sign":"EF34F6FB6D37E4FCB92DCD8F41CC67E1"}'; $params = json_decode($body, true); refill\RefillFactory::instance()->notify('xianghongrui', $params); } public function testDianchong() { $provider = $this->getProvider('dianchong'); // $resp = $provider->balance(); // $resp = $provider->add(18074608795, 5, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '26671629190230227788']); $body = '{"seqNo":"5C2D85572F8743CF","orderNo":"26671629190230227788","result":"Q0000","transo":"1000000083421081716331202254","sign":"87F3F67EA2B91709FD05468CF74210A1"}'; $params = json_decode($body, true); $provider = $this->getProvider('dianchong', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testXunyinOil() { $provider = $this->getProvider('xunyinoil', 'RefillOil'); // $resp = $provider->balance(); // $resp = $provider->add(9030230005180327, 1, 50, ['order_sn' => $this->make_sn()]); $resp = $provider->query(['order_sn' => '77791629450541412891']); // $body = '{"ext":"","code":"8888","sign":"7db98f3f271013688134f2fbd503dc15","statemes":"\u6210\u529f","id":"80641629442789487318","userid":"8417","operatorid":"2421082015001888","status":"SUCCESS"}'; // $params = json_decode($body, true); // $provider = $this->getProvider('xunyinoil','RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testJumiThird() { $provider = $this->getProvider('jumithird'); // $resp = $provider->balance(); $resp = $provider->add(588073521, 7, 100, [ 'order_sn' => $this->make_sn(), 'goods_id' => 6978, 'product_code' => 'XYZ100747' ]); // $resp = $provider->query(['order_sn' => '53151629791019902609']); // $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"}'; // $params = json_decode($body, true); // $provider = $this->getProvider('jumithird','RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testWangliantx() { // $provider = $this->getProvider('wangliantx'); // $resp = $provider->balance(); // for ($i = 1; $i<=1; $i++){ // $resp = $provider->add(18074608795, 6, 50, [ // 'order_sn' => $this->make_sn(), // 'regin_no' => 1 // ]); // } // $resp = $provider->query(['order_sn' => '85901629801033376170']); $body = '{"userid":"10073664","sporderid":"85901629801033376170","orderid":"C5C5D4F49DB61A8773664","resultno":"1","merchantsubmittime":"20210824183109","ordermoney":"47.6","verifystring":"b6a873ecd6dc9cea3a410c6386cdab84","sign":"4a80e2a8c7b07c8aacada4feedd581bd","supnumber":"1000000083421082418345386156"}'; $params = json_decode($body, true); $provider = $this->getProvider('wangliantx', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testZhuojian() { // $provider = $this->getProvider('zhuojian'); // $resp = $provider->add(18500608333, 5, 50, [ // 'order_sn' => $this->make_sn() // ]); // $resp = $provider->query(['order_sn' => '87231630026579229295']); $body = '{"money":"50.00","official_trade_no":"","out_trade_no":"87231630026579229295","status":"4","trade_no":"10000077828","sign":"0e19142c014ef6fe263601956e0be436"}'; $params = json_decode($body, true); $provider = $this->getProvider('zhuojian', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testXianghongruifs() { // $provider = $this->getProvider('xianghongruifs'); // $resp = $provider->balance(); // $resp = $provider->add(15252490862, 4, 30, [ // 'order_sn' => $this->make_sn() // ]); // $resp = $provider->query(['order_sn' => '70881632644084577858']); $body = '{"orderid":"AAO21092616144271467","sporderid":"70881632644084577858","userid":"10002524","merchantsubmittime":"20210926161610","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-28.5","sign":"343C28C4EB13F68E2EE251FA0F2A8262"}'; $params = json_decode($body, true); $provider = $this->getProvider('xianghongruifs', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testYilin() { $provider = $this->getProvider('yilin'); $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 30, [ // 'order_sn' => $this->make_sn() // ]); // $resp = $provider->query(['order_sn' => '86981630484634157631']); // $body = '{"orderid":"NZX21090116244713140","sporderid":"86981630484634157631","userid":"10002543","merchantsubmittime":"20210901163039","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-28.71","sign":"53717BF9ECE83F4AD96C1EDD4BAE4E87"}'; // $params = json_decode($body, true); // $provider = $this->getProvider('yilin','RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testMiaoxt_fs() { $provider = $this->getProvider('miaoxt_fs'); // $resp = $provider->balance(); // $resp = $provider->add(13945846040, 4, 10, [ // 'order_sn' => $this->make_sn() // ]); $resp = $provider->query(['order_sn' => '33101630577689278074']); // $body = '{"szOrderId":"33101630577689278074","fSalePrice":"9.95","szAgentId":"200055","nFlag":"2","szVerifyString":"1649fb2815926b75e4ed7e0fef3172ae","szPhoneNum":"13945846040","szRtnMsg":"","nDemo":"10"}'; // $params = json_decode($body, true); // $provider = $this->getProvider('miaoxt_fs','RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testXianzhibb() { // $provider = $this->getProvider('xianzhibb'); // $resp = $provider->balance(); // $resp = $provider->add(13699279618, 4, 200, [ // 'order_sn' => $this->make_sn() // ]); // $resp = $provider->query(['order_sn' => '80881630650784871094']); $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"}'; $params = json_decode($body, true); $provider = $this->getProvider('xianzhibb', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testYikatong() { // $provider = $this->getProvider('yikatong'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 30, [ // 'order_sn' => $this->make_sn() // ]); // $resp = $provider->query(['order_sn' => '54641640157747514762']); $body = '{"msg":"","code":"1","productId":"2000030","orderId":"54641640157747514762","systemOrderId":"1042390009","faceValue":"30","price":"28.35","appId":"200005","mobile":"18500608333","sign":"caafec8ef1abcf6db5517245dbeceb9c"}'; $params = json_decode($body, true); $provider = $this->getProvider('yikatong', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testSanti() { $provider = $this->getProvider('santi'); // $resp = $provider->get_product(17801048874); // $resp = $provider->add(18500608333, 5, 1024, [ // 'order_sn' => $this->make_sn(), // 'goods_id' => 7000, // 'product_code' => 'XYZ100751' // ]); $resp = $provider->query(['ch_trade_no' => '1631945759171581']); // $resp = $provider->balance(); $body = '{"channelOrderNo":"49991631861285846684","extraData":"","orderNo":"1631861288127072","orderStatus":"4","providerResultCode":"3","providerResultReason":"\u5145\u503c\u6210\u529f","resultCode":"1000","resultMessage":"\u6210\u529f","sign":"472490783eaa82c76a1af8702881f04f"}'; $params = json_decode($body, true); $provider = $this->getProvider('santi', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testSialan_tax() { // $provider = $this->getProvider('sialan_tax'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 10, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['ch_trade_no' => '21112214170092559557647']); $body = '{"api_id":"16856","recharge":"18500608333","amount":"10","order_sn":"21112214170092559557647","query_sn":"64801637561821444619","operator_sn":"","status":"2","sign":"900a01a1268cb14a37d6567691303ed9"}'; $params = json_decode($body, true); $provider = $this->getProvider('sialan_tax', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testYunchonggong_yd() { $provider = $this->getProvider('yunchonggong_yd'); // $resp = $provider->balance(); // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '40181650866044454847']); // $body = '{"szOrderId":"34061631002071526340","fSalePrice":"47.7","szAgentId":"200043","nFlag":"3","szVerifyString":"48a7329c13af06b5be1d2fdad706b22e","szPhoneNum":"13699279618","szRtnMsg":"","nDemo":"50"}'; // $params = json_decode($body, true); // $provider = $this->getProvider('yunchonggong_yd','RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testGuochuang_nation() { $provider = $this->getProvider('guochuang_nation'); $resp = $provider->add(18500608333, 5, 1, ['order_sn' => $this->make_sn(), 'regin_no' => 1]); // $resp = $provider->query(['order_sn' => '4372390688043259849812']); // $resp = $provider->balance(); // $body = '{"account":"18500608333","evidence":"N/A","evidenceType":"","id":"D2021090718185107657","inTime":"2021/09/07 18:19:05","money":"1","outerId":"65261631009929751933","status":"SUCCESS"}'; // $params['ts'] = 1631009945; // $params['sign'] = 'C53F921EB5573EF4D0C757C5B5D4185D'; // $params['body'] = $body; // $provider = $this->getProvider('guochuang_nation','RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testTianyanman() { $provider = $this->getProvider('tianyanman'); $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '12191631078826857172', 'card_no' => 18500608333, 'card_type' => 5]); // $resp = $provider->balance(); // $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"}'; // $params = json_decode($body, true); // $provider = $this->getProvider('tianyanman','RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testShimer() { $provider = $this->getProvider('shimier'); // $resp = $provider->balance(); $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '56391631086657239320']); // $body = '{"orderId":"210908153756535112","appId":"b3k6DRwSOw","outOrderId":"56391631086657239320","sign":"86f9e783a3374463d546bedfc6920eff","orderStatus":"3","completeTime":"20210908154810","orderDesc":"\u8ba2\u5355\u5931\u8d25"}'; // $params = json_decode($body, true); // $provider = $this->getProvider('shimier','RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testZhongst_mix() { // $provider = $this->getProvider('zhongst_mix'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '81331649907306739763']); $body = '{"orderId":"220414113514628825","appId":"aKz6PN5XIw","outOrderId":"81331649907306739763","sign":"140099d15593e363e6b2682a4c2f24c2","orderStatus":"2","completeTime":"20220414120642","orderDesc":"\u8ba2\u5355\u6210\u529f","ext1":"110103308032204141204470484590"}'; $params = json_decode($body, true); $provider = $this->getProvider('zhongst_mix', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testHangtong() { // $provider = $this->getProvider('hangtong'); // $resp = $provider->balance(); // $resp = $provider->add(13699279618, 4, 100, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '68221631775122967358']); $body = '{"phone":"13699279618","orderNo":"F2109161452121045530","status":"success","otherNo":"68221631775122967358","msg":"提交/充值成功","ext":"524501553021467113"}'; $params = json_decode($body, true); $provider = $this->getProvider('hangtong', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testJinfeng() { // $provider = $this->getProvider('jinfeng'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '78561631769733386091']); $body = '{"orderNo":"F2109161322374838924","status":"003","consumerNo":"78561631769733386091","voucherNo":null,"mobile":"18500608333"}'; $params = json_decode($body, true); $provider = $this->getProvider('jinfeng', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testDashang() { // $provider = $this->getProvider('dashang'); // $resp = $provider->balance(); // $resp = $provider->add(18074608795, 6, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '63101631784169445345']); $body = '{"userId":"80800346","bizId":"90290050","ejId":"90916171545126","downstreamSerialno":"67971631783703671946","status":"3","voucher":"","voucherType":"0","sign":"46b13acf67f271e2f85db189ab9e1391"}'; $params = json_decode($body, true); $provider = $this->getProvider('dashang', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testYuanta() { // $provider = $this->getProvider('yuanta'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '96081645088688480739']); $body = '{"orderId":"220217170449505863","appId":"Uar9JIo4Zz","outOrderId":"96081645088688480739","sign":"1483916dbdc2f3b6024894442af816aa","orderStatus":"2","completeTime":"20220217175606","orderDesc":"\u8ba2\u5355\u6210\u529f"}'; $params = json_decode($body, true); $provider = $this->getProvider('yuanta', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testDuojing() { // $provider = $this->getProvider('duojing'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '51421642755293155833']); // $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"}'; // $params = json_decode($body, true); // $provider = $this->getProvider('duojing','RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testMenggu() { $provider = $this->getProvider('menggu', 'RefillOil'); // $resp = $provider->add(1000111100021211884, 2, 500, ['order_sn' => $this->make_sn()]); $resp = $provider->query(['order_sn' => '63021632301956855605']); // $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"}'; // $params = json_decode($body, true); // $provider = $this->getProvider('menggu','RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testMenggu_hf() { $provider = $this->getProvider('menggu_hf'); // $resp = $provider->balance(); $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '24481632298991701065']); // $body = '{"orderId":"210922162318123069","appId":"1hqLCRUja7","outOrderId":"24481632298991701065","sign":"73faefba3e179641af0df6f59becce8f","orderStatus":"3","completeTime":"20210922162451","orderDesc":"\u8ba2\u5355\u5931\u8d25"}'; // $params = json_decode($body, true); // $provider = $this->getProvider('menggu_hf','RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testChizeng() { $provider = $this->getProvider('chizeng'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]); $resp = $provider->query(['order_sn' => '7013163540140101017048563']); // $body = '{"orderid":"UQX21102814052855105","sporderid":"71241635401103845030","userid":"10002523","merchantsubmittime":"20211028140512","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-28.35","sign":"0B97DC1E16EC3BC5F139AAC3FB4C51BF"}'; // $params = json_decode($body, true); // $provider = $this->getProvider('chizeng','RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testJinxin() { // $provider = $this->getProvider('jinxin'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '83481632465671278322']); $body = '{"orderNo":"210924140000185","requestId":"83481632465671278322","sign":"80184350EC5C60445A50C9450D6CFB28","status":1,"supplierNo":"110103353192109241442090289402","timeStamp":"2021-09-24 14:43:07"}'; $params = json_decode($body, true); $provider = $this->getProvider('jinxin', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testKachong() { // $provider = $this->getProvider('kachong'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 20, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '30691632889605245135']); $body = '{"szAgentId":"200046","szOrderId":"30691632889605245135","szPhoneNum":"18500608333","nDemo":"20","fSalePrice":"19.82","nFlag":"2","szVerifyString":"dbac0df5e9ff2b067f74850f0cf55f3c","szRtnMsg":"982100337029603"}'; $params = json_decode($body, true); $provider = $this->getProvider('kachong', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testXingzyNormal() { // $provider = $this->getProvider('xingzy_normal'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '62881632898853651364']); $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}'; $params = json_decode($body, true); $provider = $this->getProvider('xingzy_normal', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testDingxin() { $provider = $this->getProvider('dingxin'); $resp = $provider->balance(); } public function testPushang() { $provider = $this->getProvider('pushang'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]); $resp = $provider->query(['order_sn' => '23391632986567769626']); // $body = '{"msg":"\u8d26\u52a1\u6263\u6b3e\u5931\u8d25","extOrderId":"22081632982700152800","orderId":"R2021093014240000154555","salePrice":"30.0900","sign":"b0fe238f16e516316729589d42ab97b1","state":"5","exchangeTraded":""}'; // $params = json_decode($body, true); // $provider = $this->getProvider('pushang','RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testDinghui() { // $providers = $this->getProvider('dinghui'); // $resp = $providers->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]); // $resp = $providers->query(['order_sn' => '84891634279500368841']); // $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"}'; // $params = json_decode($body, true); $params['method'] = 'order.charge.status.update.notify'; $params['format'] = 'json'; $params['sign'] = '60d4e658cb730b9d8cc0c451414de9b51b79d14fa217261f7bbcf4a3472553b093a5c2377abba9573ed9d5e1a39a9f693830671ff1e641cc97a9782d2b2f393bed6a7bd22be0c642a13e20a7c6cf9f562c11ae65335758bd58ee55853b555cc2e511b6655c6e944a9defa6f0247263578d1554ff7709a7ced90db93911562dcb485518a4da3c21cb650ff01cacfcfa8dd9de533f5a5be2accc065e23cbd38b1b104e15feb3ce823c8cb7c7d5adf3fef0be768d8c25dc813a9112a14ec54a9e2ee517a5ba5b9ce2234dd4329b61c5456a82405aa6d2a307b4ec04be52bd1e3e5b204a2a4d7899d6fbf0fc09cd443cddc947f02bf58730142e9edc2b98eeeae086'; $params['message'] = 'GYmjEFMoy5jUfg/Ju7NRCSyaoyg2fu9EWpABAHb55xKpkvIedqXPDqRwG6Lo7iNx0A2yc6/IaU7vqwNV9YEVZOwHBDtsGXuHK1GCq5KUaW70pq1wEKr6kgjAHDITH7XdB3jmdSAQFhQYTi5hCz5EWWAzRKLYgTZeDksePKshm67QDbJzr8hpTu+rA1X1gRVkVqAL750crFPclgeWEYFG4mO4ZlmqygUrgz4si+seZ3f0pq1wEKr6kgjAHDITH7XdkFLNHratZfufbZKIZ5r+CA=='; $params['msgtype'] = 'notify_msg'; $params['version'] = 'V2.0'; $params['app_id'] = 'yeziapi'; $params['notify_id'] = '0000017c83f4786201547473800e31ee'; $params['timestamp'] = '1634301409378'; $providers = $this->getProvider('dinghui', 'RefillCallBack'); $ret = $providers->verify($params); $resp = $providers->notify($params); } public function testHuafutong() { // $provider = $this->getProvider('huafutong'); // $resp = $provider->balance(); // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '48151634200413207059']); $body = '{"PostData":"MJ88hD85bb2VPjI+q9R64jrR2TnZQSUn+4PHZCz1of27YQswyLKdNoNyyNuVEd2+98raKRC0pD+KFQf6beJn5mgOe+u9JjTtqxM5VcVYX93DQACU1ZdfJ+rSx5WRMwvi"}'; $params = json_decode($body, true); $provider = $this->getProvider('huafutong', 'RefillCallBack'); $data = $provider->notify($params); } public function testShuoruan() { $provider = $this->getProvider('shuoruan'); // $resp = $provider->balance(); $resp = $provider->add(13911129867, 5, 10, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '80261634802627091026']); $params['Action'] = 'CX'; $params['AgentAccount'] = '18600608333'; $params['Agentbalance'] = '-9.970'; $params['Orderid'] = '80261634802627091026'; $params['Chargeid'] = '2162076796'; $params['Orderstatu_int'] = '16'; $params['Orderstatu_text'] = '缴费成功_'; $params['TransCash'] = '10.000'; $params['OrderPayment'] = '9.970'; $params['Errorcode'] = '0000'; $params['Errormsg'] = ''; $params['Sign'] = '654fbc24c3d0878247bc3be3ed699f16'; $provider = $this->getProvider('shuoruan', 'RefillCallBack'); // $ret = $provider->verify($params); // $data = $provider->notify($params); } public function testLinzhu() { // $provider = $this->getProvider('linzhu'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '43881634986696312260']); $body = '{"orderNo":"F2110231858443112627","status":"019","consumerNo":"43881634986696312260","voucherNo":null,"mobile":"18500608333"}'; $params = json_decode($body, true); $provider = $this->getProvider('linzhu', 'RefillCallBack'); $ret = $provider->verify($params); $data = $provider->notify($params); } public function testFangxing() { $provider = $this->getProvider('fangxing'); // $resp = $provider->balance(); // $resp = $provider->add(13898167806, 4, 10, ['order_sn' => $this->make_sn(), 'order_id' => 111111]); $resp = $provider->query(['order_sn' => '82581635239506988570']); $body = '{"orderId":"O21102617115969210570","respCode":"10003","respMsg":"\u6210\u529f \u5bf9\u7aef\u6d41\u6c34\u53f7: 21102617611981771","sign":"013F54D5E415668D3E012BBDE9E4BF16","transNo":"82581635239506988570"}'; $params = json_decode($body, true); $provider = $this->getProvider('fangxing', 'RefillCallBack'); $ret = $provider->verify($params); $data = $provider->notify($params); } public function testHuafutongMan() { // $provider = $this->getProvider('huafutongman'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '73721635476007331621']); $body = '{"PostData":"1Gi96e4PzohQIdxj8W4uOH4Q5pzT8ZHyCc+ZpTl7XEEF5TPgXffD32KLy0l2fZ7X36qZTO4JJA\/4nhWJRERklMy1FQuan825KK5vy2zQ6FOxg8vXMy0e7HOVg0kx123i"}'; $params = json_decode($body, true); $provider = $this->getProvider('huafutongman', 'RefillCallBack'); $data = $provider->notify($params); } public function testFeimingyu() { // $provider = $this->getProvider('feimingyu'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 30, ['order_sn' => $this->make_sn(), 'regin_no' => 18]); // $resp = $provider->query(['order_sn' => '33891681804839775889']); $body = '{"finishTime":"20230418160354079","orderNo":"XY3569958846292104149","appId":"VIP006","applyNo":"33891681804839775889","orderStatusDesc":"\u5931\u8d25","sign":"9196fe618512ad84fe1fdbbeb687253a","orderStatus":"FAILED","ext2":"NORMAL_FAILED","timestamp":"20230418160657014"}'; $params = json_decode($body, true); $provider = $this->getProvider('feimingyu', 'RefillCallback'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testDashangnormal() { // $provider = $this->getProvider('dashang_normal'); // $resp = $provider->balance(); // $resp = $provider->add(18074608795, 6, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '34461636081408575185']); $body = '{"userId":"80800357","bizId":"60040030","ejId":"91105110431325","downstreamSerialno":"34461636081408575185","status":"3","voucher":"","voucherType":"0","sign":"24a40c2b677820533e418d4a2b3f0806"}'; $params = json_decode($body, true); $provider = $this->getProvider('dashang_normal', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testHuafutong_doubi() { $provider = $this->getProvider('huafutong_doubi'); // $resp = $provider->balance(); $resp = $provider->add(588073521, 7, 100, [ 'order_sn' => $this->make_sn(), 'product_code' => 'XYZ100747' ]); // $resp = $provider->query(['order_sn' => '53151629791019902609']); // $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"}'; // $params = json_decode($body, true); // $provider = $this->getProvider('huafutong_doubi','RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testYunchonggongfs() { // $provider = $this->getProvider('yunchonggongfs'); // $resp = $provider->balance(); // $resp = $provider->add(13935705732, 4, 30, ['order_sn' => $this->make_sn(), 'regin_no' => 4]); // $resp = $provider->query(['order_sn' => '44721636430254462028']); $body = '{"orderId":"211109115744298048","appId":"Z1sU5unYK7","outOrderId":"44721636430254462028","sign":"a368d3f6a8c2ec2d2dbd587f9a78a937","orderStatus":"3","completeTime":"20211109115840","orderDesc":"timeout"}'; $params = json_decode($body, true); $provider = $this->getProvider('yunchonggongfs', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testDingchi() { // $provider = $this->getProvider('dingchi'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '70651636508446628072']); $body = '{"userId":"671","bizId":"200","id":"32894267","downstreamSerialno":"70651636508446628072","status":"2","statusDesc":"","extend":"100101101002111100940543157996","sign":"984c4708c14d0c2e08295c5010109ecf"}'; $params = json_decode($body, true); $provider = $this->getProvider('dingchi', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testYanhao() { // $provider = $this->getProvider('yanhao'); // $resp = $provider->balance(); // $resp = $provider->add(2423503330, 5, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '49571636609949577130']); $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":""}'; $params = json_decode($body, true); $provider = $this->getProvider('yanhao', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testYikatongfs() { $provider = $this->getProvider('yikatongfs'); // $resp = $provider->balance(); // $resp = $provider->add(13935705732, 5, 30, ['order_sn' => $this->make_sn()]); $resp = $provider->query(['order_sn' => '30551636705402587123']); // $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"}'; // $params = json_decode($body, true); // $provider = $this->getProvider('yikatongfs','RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testLexiangLt() { // $provider = $this->getProvider('lexianglt'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '48911637136021090867']); $body = '{"PostData":"405deLsCOS2UNQTOH\/M+3IWDDMm841EhhBwTgdasFvVqqVS3RHA6YdIzxAS2g8PIjmie1mOw+aNzXZ\/8rVR8lQTjoaeOCkE04cTc07JvDe1IDtvO2e66u+zzO+x0MUfU"}'; $params = json_decode($body, true); $provider = $this->getProvider('lexianglt', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testXiaoniu_doubi() { // $provider = $this->getProvider('xiaoniu_doubi'); // $resp = $provider->balance(); // $resp = $provider->add(608168539, 7, 30, ['order_sn' => $this->make_sn(), 'product_code' => 'XYZ100771']); // $resp = $provider->query(['order_sn' => '49401678258857712229']); $body = '{"content":"","realAmt":"27.3000","status":"1","timestamp":"20230308150118","sign":"4ec73b268388c6f5b794e0d0d91a9ad1","orderNo":"23030815010252905769","mOrderNo":"49401678258857712229"}'; $params = json_decode($body, true); $provider = $this->getProvider('xiaoniu_doubi', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testGuantu() { $provider = $this->getProvider('guantu'); // $resp = $provider->balance(); // $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]); $resp = $provider->query(['order_sn' => '82321639620607197216']); // $body = '{"orderId":"211207110843025294","appId":"sprTIuIsst","outOrderId":"86151638846512034929","sign":"a94dc11a88831c4cc9cf79cd2dc4b60c","orderStatus":"3","completeTime":"20211207110903","orderDesc":"\u8ba2\u5355\u5931\u8d25"}'; // $params = json_decode($body, true); // $provider = $this->getProvider('guantu','RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testYiqian() { $provider = $this->getProvider('yiqian'); // $resp = $provider->balance(); // $resp = $provider->add(185001234561608333, 5, 10, ['order_sn' => $this->make_sn()]); $resp = $provider->query(['order_sn' => '58661639626089905328']); // $body = '{"extOrderId":"12871637568430713782","orderId":"R2021112216240026238817","salePrice":"9.9950","sign":"b42f61bfb59f9f36c26c68e4f37f5a19","state":"4","exchangeTraded":"110103308002111221607170298685"}'; // $params = json_decode($body, true); // $provider = $this->getProvider('yiqian','RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testYinghuochong() { // $provider = $this->getProvider('yinghuochong'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '14911637655330156024']); $body = '{"times":"20211123161536","orderId":"2021112316151926232932","voucher":"","customerOrderId":"14911637655330156024","qyKey":"qhsvsyvj9rsekyvadlctr1ptx135fb3t","sign":"15D3272BE7BB7B038EEC9EA344C86567","status":"2"}'; $params = json_decode($body, true); $provider = $this->getProvider('yinghuochong', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testMeixu() { // $provider = $this->getProvider('meixu'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 10, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '89361637662404606711']); $body = '{"orderid":"XOJ21112318130505847","sporderid":"89361637662404606711","userid":"10003105","merchantsubmittime":"20211123181328","resultno":"9","parvalue":"10","remark1":"","payno":"","fundbalance":"-10.02","sign":"634194D21B034356F32C5A9FB045F23F"}'; $params = json_decode($body, true); $provider = $this->getProvider('meixu', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testFuyuan() { // $provider = $this->getProvider('fuyuan'); // $resp = $provider->balance(); // $resp = $provider->add(13699279618, 4, 10, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '60431637736327027514']); $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":""}'; $params = json_decode($body, true); $provider = $this->getProvider('fuyuan', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testDongye() { $provider = $this->getProvider('dongye'); // $resp = $provider->balance(); $resp = $provider->add(15139608757, 4, 10, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '94031638352288398624']); // $body = '{"orderid":"NYG21113016502782946","sporderid":"33391638262247818098","userid":"10003105","merchantsubmittime":"20211130165104","resultno":"1","parvalue":"30","remark1":"100101101012111301651024042626","payno":"100101101012111301651024042626","fundbalance":"-30.075","sign":"4075B5A1D2639B19B91AC2FF45B5CFFE"}'; // $params = json_decode($body, true); // $provider = $this->getProvider('dongye','RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testDongyefs() { $provider = $this->getProvider('dongyefs'); // $resp = $provider->balance(); // [$goods_id, $price] = $provider->goods(1, 10, 4, 6, []); // $resp = $provider->add(13898167806, 4, 10, ['order_sn' => $this->make_sn(),'regin_no' => 6]); $resp = $provider->query(['order_sn' => '24461638757715661527']); } public function testBaixuan() { // $provider = $this->getProvider('baixuan'); // $resp = $provider->balance(); // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '22241638773647636323']); $body = '{"orderId":"211206145422241449","appId":"Hs2pvfcPTK","outOrderId":"22241638773647636323","sign":"acdd4cdbf6c9ad8d1eec12070caef9c7","orderStatus":"3","completeTime":"20211206145422","orderDesc":"\u8ba2\u5355\u5931\u8d25"}'; $params = json_decode($body, true); $provider = $this->getProvider('baixuan', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testBaixuan_normal() { // $provider = $this->getProvider('baixuan_normal'); // $resp = $provider->balance(); // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '79931638775980503797']); $body = '{"orderId":"211206153306269670","appId":"ntzRlj2kNV","outOrderId":"79931638775980503797","sign":"f67939b937f818e97c551e76b4b4e5ea","orderStatus":"3","completeTime":"20211206153309","orderDesc":"\u8ba2\u5355\u5931\u8d25"}'; $params = json_decode($body, true); $provider = $this->getProvider('baixuan_normal', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testCangbuYd() { // $provider = $this->getProvider('cangbuyd'); // $resp = $provider->balance(); // $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '12441638778449837197']); $body = '{"customerId":"220","tmporder":"12441638778449837197","orderno":"s16387784558073061114220","number":"13699279618","money":"50","amount":"47.9500","code":"-1","cardno":"","voucher":"","sign":"6623dbe8e392b61ddc843e16804e9eed"}'; $params = json_decode($body, true); $provider = $this->getProvider('cangbuyd', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testShangtou() { // $provider = $this->getProvider('shangtou'); // $resp = $provider->balance(); // $resp = $provider->add(1004638637, 4, 100, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '88791638870099595473']); $body = '{"order_id":"88791638870099595473","out_order_id":"EZZbg23f4K487498","orderBillNo":"","mchid":"20126","account":"1004638637","price":"100","status":"1","sign":"87c3fc2beaabb107ef80c06dd186742f"}'; $params = json_decode($body, true); $provider = $this->getProvider('shangtou', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testGuantufs() { $provider = $this->getProvider('guantufs'); // $resp = $provider->balance(); $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '88791638870099595473']); } public function testRuixunda() { // $provider = $this->getProvider('ruixunda'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '77251661569789921261']); $body = '{"orderid":"LRF22082711096411807","sporderid":"77251661569789921261","userid":"10002506","merchantsubmittime":"20220827110959","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-21500.17","sign":"34DD64D730CC71BD74A64A86FF623754"}'; $params = json_decode($body, true); $provider = $this->getProvider('ruixunda', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testDashang_kami() { $provider = $this->getProvider('dashang_kami'); $resp = $provider->balance(); } public function testWenye_oil() { $provider = $this->getProvider('wenye_oil', 'RefillOil'); $resp = $provider->add(1000111100021211884, 2, 100, ['order_sn' => $this->make_sn()]); } public function testYunlingdf() { $provider = $this->getProvider('yunlingdf'); // $resp = $provider->balance(); $resp = $provider->add(2079727198, 7, 100, [ 'order_sn' => $this->make_sn(), 'company_type' => 'nation', 'use_type' => 'home', 'province' => 18, 'city' => '永州市', 'product_code' => 'DF_nation_home_100' ]); // $resp = $provider->query(['order_sn' => '45331652932902024418']); // $body = ' {"orderid":"JDE22051911549026252","sporderid":"26641652932472092667","userid":"10002623","merchantsubmittime":"20220519115448","resultno":"9","parvalue":"100","remark1":"","payno":"","fundbalance":"-140.5","sign":"1EC1F9730A66ED23B68B89DD7CA4EB15"}'; // $params = json_decode($body, true); // $provider = $this->getProvider('yunlingdf', 'RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testYamiao_high() { $provider = $this->getProvider('yamiao_high'); $resp = $provider->balance(); // $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '63301640162626708212']); // $body = '{"orderId":"211222164353000006","appId":"piFzrSOCIy","outOrderId":"63301640162626708212","sign":"558e9992d99fb5e9dd47b1f5a7677b01","orderStatus":"3","completeTime":"20211222164445","orderDesc":"\u8ba2\u5355\u5931\u8d25"}'; // $params = json_decode($body, true); // $provider = $this->getProvider('yamiao_high','RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testYamiao_normal() { $provider = $this->getProvider('yamiao_normal'); $resp = $provider->balance(); // $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '95951640223816352024']); // $body = '{"orderId":"211223094402000046","appId":"1pjrA9YErq","outOrderId":"95951640223816352024","sign":"5bd7135f5ef35c8f111eddfc06593941","orderStatus":"3","completeTime":"20211223094512","orderDesc":"\u8ba2\u5355\u5931\u8d25"}'; // $params = json_decode($body, true); // $provider = $this->getProvider('yamiao_normal','RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testJiyemei_doubi() { $provider = $this->getProvider('jiyemei_doubi'); // $resp = $provider->balance(); $resp = $provider->add(588073521, mtopcard\ThirdRefillCard, 50, ['order_sn' => $this->make_sn(), 'product_code' => 'XYZ100753']); // $resp = $provider->query(['order_sn' => '87081640849391308752']); // $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"}'; // $params = json_decode($body, true); // $provider = $this->getProvider('jiyemei_doubi','RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testJiyemei() { // $provider = $this->getProvider('jiyemei'); // $resp = $provider->balance(); // $resp = $provider->add(13699279618, mtopcard\ChinaMobileCard, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '22041640934793168827']); $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"}'; $params = json_decode($body, true); $provider = $this->getProvider('jiyemei', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testCangxin() { $provider = $this->getProvider('cangxin'); // $resp = $provider->balance(); // $resp = $provider->add(13699279618, mtopcard\ChinaMobileCard, 100, ['order_sn' => $this->make_sn()]); $resp = $provider->query(['order_sn' => '7388320697632252006499']); // $body = '{"sysOrderNo":"R16409227448286K55VRJ","clientId":"10025","verifyString":"557363563501c97e9aa2f5cecc0b3679","clientOrderNo":"66891640922736203952","status":"3"}'; // $params = json_decode($body, true); // $provider = $this->getProvider('cangxin','RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testBaixuannew_high() { // $provider = $this->getProvider('baixuannew_high'); // $resp = $provider->balance(); // $resp = $provider->add(13699279618, mtopcard\ChinaMobileCard, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '24051641457089799916']); $body = '{"orderid":"PLN22010616189234154","sporderid":"24051641457089799916","userid":"10002504","merchantsubmittime":"20220106162023","resultno":"9","parvalue":"50","remark1":"","payno":"","fundbalance":"-48.1","sign":"0279426E9CCEF5366B422D44DB5976C1"}'; $params = json_decode($body, true); $provider = $this->getProvider('baixuannew_high', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testYouhenew() { // $provider = $this->getProvider('youhenew'); // $resp = $provider->balance(); // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '77201646366493835757']); $body = '{"szOrderId":"77201646366493835757","fSalePrice":"28.59","szAgentId":"200038","nFlag":"3","szVerifyString":"bdaa73499a506839654d4b9c36c6831a","szPhoneNum":"18500608333","szRtnMsg":"","nDemo":"30"}'; $params = json_decode($body, true); $provider = $this->getProvider('youhenew', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testHuoshenguo() { // $provider = $this->getProvider('huoshenguo'); // $resp = $provider->balance(); // $resp = $provider->add(13699279618, mtopcard\ChinaMobileCard, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '90691642049771400349']); $body = '{"orderId":"220113125625000016","appId":"xaPOF8SAEG","outOrderId":"90691642049771400349","sign":"b00285a7eabef29b0a0ad400ce8a3ea0","orderStatus":"3","completeTime":"20220113125843","orderDesc":"\u8ba2\u5355\u5931\u8d25"}'; $params = json_decode($body, true); $provider = $this->getProvider('huoshenguo', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testXinhengyangnew() { // $provider = $this->getProvider('xinhengyangnew'); // $resp = $provider->balance(); // $resp = $provider->add(13699279618, mtopcard\ChinaMobileCard, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '90991642572014786398']); $body = '{"mchid":"200050","msg":"充值失败","oid":"1000325764014","orderid":"90991642572014786398","price":28.62,"sign":"56db7e6a4748a74bd1fac1a1ad5e8d6d","status":2,"voucher":""}'; $params = json_decode($body, true); $provider = $this->getProvider('xinhengyangnew', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testTianchen() { // $provider = $this->getProvider('tianchen'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, mtopcard\ChinaUnicomCard, 500, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '60701644202744810497']); $body = '{"mchid":"100125","msg":"充值失败","oid":"1000061410881","orderid":"60701644202744810497","price":"501.000","sign":"5dc1f9e466f30f02f2756c886ad36020","status":"2","voucher":""}'; $params = json_decode($body, true); $provider = $this->getProvider('tianchen', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testYunchonggong_lt() { // $provider = $this->getProvider('yunchonggong_lt'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, mtopcard\ChinaUnicomCard, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '97971642992760355090']); $body = '{"orderId":"220124105256190713","appId":"nOlXoN2jRJ","outOrderId":"97971642992760355090","sign":"81a579f8c935da72fe94ca0960d0a71f","orderStatus":"3","completeTime":"20220124105547","orderDesc":"\u8ba2\u5355\u5931\u8d25"}'; $params = json_decode($body, true); $provider = $this->getProvider('yunchonggong_lt', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testYiqianfs() { // $provider = $this->getProvider('yiqianfs'); // $resp = $provider->balance(); // $resp = $provider->add(13699279618, 4, 10, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '68971644218662333282']); $body = '{"extOrderId":"68971644218662333282","orderId":"R2022020715240046789583","salePrice":"10.0000","sign":"cf59a3d76377cac096ac07c590657af0","state":"5"}'; $params = json_decode($body, true); $provider = $this->getProvider('yiqianfs','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testZhutian() { $provider = $this->getProvider('zhutian'); // $resp = $provider->add(1004638637, 4, 50, ['order_sn' => $this->make_sn(), 'province' => 1]); $resp = $provider->query(['order_sn' => '20661644895674724153']); } public function testRuizhi() { // $provider = $this->getProvider('ruizhi'); // $resp = $provider->balance(); // $resp = $provider->add(13699279618, 4, 100, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '66031645157064675953']); $body = '{"userid":"65920","order_id":"22021812045065920f2b95cef2","account":"13699279618","amount":"100","price":"100.05","state":"success","user_order":"66031645157064675953","sign":"642AAB4C5A9CC56248AE80113878DB19","voucher":"220218-097370786582375"}'; $params = json_decode($body, true); $provider = $this->getProvider('ruizhi','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testRuierxun() { // $provider = $this->getProvider('ruierxun'); // $resp = $provider->balance(); // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '48011645165293970916']); $body = '{"orderId":"220218142143123894","appId":"LaEORKdrnZ","outOrderId":"48011645165293970916","sign":"28f30e616d06e7936d612995bb086d39","orderStatus":"3","completeTime":"20220218142205","orderDesc":"\u8ba2\u5355\u5931\u8d25"}'; $params = json_decode($body, true); $provider = $this->getProvider('ruierxun','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testNingying() { // $provider = $this->getProvider('ningying'); // $resp = $provider->balance(); // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '59481645434420716297']); $body = '{"orderId":"220221170704698128","appId":"O8y6eOzWY1","outOrderId":"59481645434420716297","sign":"7476bd7d6cb51a5b25a183145d4a0ada","orderStatus":"3","completeTime":"20220221171148","orderDesc":"\u8ba2\u5355\u5931\u8d25"}'; $params = json_decode($body, true); $provider = $this->getProvider('ningying','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testCangxin_yi() { // $provider = $this->getProvider('cangxin_yi'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '98761645683605613490']); $body = '{"sysOrderNo":"R1645683614014oToK4ua","officialOrderNo":"","clientId":"10043","verifyString":"4040530613390299cf5d432a59dad348","clientOrderNo":"98761645683605613490","status":"4"}'; $params = json_decode($body, true); $provider = $this->getProvider('cangxin_yi','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testZhenghe() { // $provider = $this->getProvider('zhenghe'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '20411645686498504519']); $body = '{"szOrderId":"20411645686498504519","fSalePrice":"30.15","szAgentId":"200032","nFlag":"2","szVerifyString":"af368366f759289054328390f419d062","szPhoneNum":"15811535608","szRtnMsg":"","nDemo":"30"}'; $params = json_decode($body, true); $provider = $this->getProvider('zhenghe','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testLexiang() { // $provider = $this->getProvider('lexiang'); // $resp = $provider->balance(); // $resp = $provider->add(18074608795, 6, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '36181645780442291806', 'commit_time' => 1645780259]); $body = '{"mchId":"20","mchOrderNo":"36181645780442291806","sysOrderNo":"S202202251714039EusUAV0yO","account":"18074608795","money":"30.0000","status":"2","sign":"c55977367aa083850456c5ec7c14ed87","certificate":"1000000083422022517369130925"}'; $params = json_decode($body, true); $provider = $this->getProvider('lexiang','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testKuaikuai() { // $provider = $this->getProvider('kuaikuai'); // $resp = $provider->balance(); // $resp = $provider->add(185006083, 5, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '48821646219340197679']); $body = '{"msg":"100101101012202281653493036477","orderId":"37691646038424123424","createTime":1646038427,"sign":"35df4f13ee4dcaed2d582d709ff66073","orderNum":"2c922ab97f2683b5017f3f89246d1e4a","status":2}'; $params = json_decode($body, true); $provider = $this->getProvider('kuaikuai','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testJianjiao() { $provider = $this->getProvider('jianjiao'); // $resp = $provider->balance(); $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '14481646204704630736']); // $body = '{"order_id":"22030215052639807","out_order_id":"14481646204704630736","status":3,"mobile":"13699279618","amount":50,"app_key":"3l6kd2yqsvcwftij","official_sn":"","timestamp":1646205722,"sign":"db77f48b8964b74e9c5e44fa9b3dcf49"}'; // $params = json_decode($body, true); // $provider = $this->getProvider('jianjiao','RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testHuoli() { // $provider = $this->getProvider('huoli'); // $resp = $provider->balance(); // $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '89741646294399883574']); $body = '{"app_key":"expzye","out_trade_no":"89741646294399883574","sign":"24adfe57f5ada22db154d4ed4b4b8e5f","status":2}'; $params = json_decode($body, true); $provider = $this->getProvider('huoli','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testNingying_normal() { $provider = $this->getProvider('ningying_normal'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '83651658900120901860']); $body = '{"szOrderId":"83651658900120901860","fSalePrice":"94.2","szAgentId":"200006","nFlag":"3","szVerifyString":"44fff983651dd01946c400085b9efd32","szPhoneNum":"18500608333","szRtnMsg":"","nDemo":"100"}'; $params = json_decode($body, true); $provider = $this->getProvider('ningying_normal','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testYuanrun() { // $provider = $this->getProvider('yuanrun'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '25801646616116681917', 'card_no' => 18500608333, 'commit_time' => 1646616131]); $body = '{"cpid":"49449","order_no":"22030709220549449952471675","mobile":"18500608333","amount":"30","status":"success","sz_order_no":"100101101042203070922143047338","ret_para":"25801646616116681917","sign":"2fd2661ce353e4cb554d7d3ca3f09f4d"}'; $params = json_decode($body, true); $provider = $this->getProvider('yuanrun','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testFeimingyunew() { $provider = $this->getProvider('feimingyunew'); // $resp = $provider->balance(); $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '24001646631354076583']); // $body = '{"orderid":"AUH22030713352134241","sporderid":"24001646631354076583","userid":"10002506","merchantsubmittime":"20220307133712","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-28.26","sign":"0C4A264A6692C68EB8CC000BEC5C0E53"}'; // $params = json_decode($body, true); // $provider = $this->getProvider('feimingyunew','RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testBailian() { $provider = $this->getProvider('bailian', 'RefillOil'); $resp = $provider->balance(); } public function testHangtongyj() { $provider = $this->getProvider('hangtongyj'); // $resp = $provider->balance(); // $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]); $resp = $provider->query(['order_sn' => '13791646729519910878']); // $body = '{"phone":"13699279618","orderNo":"F2203081623054678137","status":"fail","otherNo":"23351646727780199005","msg":"产品不存在","ext":null}'; // $params = json_decode($body, true); // $provider = $this->getProvider('hangtongyj','RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testRuixundaman() { // $provider = $this->getProvider('ruixundaman'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '98441646796808890306']); $body = '{"orderId":"220309113357355093","appId":"8tYeow0MYZ","outOrderId":"98441646796808890306","sign":"ec2619a26a11e3320fcdc71fccc7b310","orderStatus":"2","completeTime":"20220309193655","orderDesc":"\u8ba2\u5355\u6210\u529f","ext1":"2022233820220309193635"}'; $params = json_decode($body, true); $provider = $this->getProvider('ruixundaman','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testRuizhi_tax() { // $provider = $this->getProvider('ruizhi_tax'); // $resp = $provider->balance(); // $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '36411646882603857635']); $body = '{"userid":"10713","order_id":"22031011232910713e1bc01a6b","account":"13699279618","amount":"50","price":"52.15","state":"success","user_order":"36411646882603857635","sign":"3CEDF5DF4F8A178471FA24B07C8D9BBB","voucher":"2022031027610736554488548137"}'; $params = json_decode($body, true); $provider = $this->getProvider('ruizhi_tax','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testPengxinda() { $provider = $this->getProvider('pengxinda'); // $resp = $provider->balance(); $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '29131646900654146357']); // $body = '{"api_userid":"beijingyz","order_no":"29131646900654146357","retcode":"1","errcode":"100101101042203101624383157550"}'; // $params = json_decode($body, true); // $provider = $this->getProvider('pengxinda','RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testHuazhong() { $provider = $this->getProvider('huazhong'); // $resp = $provider->balance(); // $resp = $provider->add(18074608795, 6, 30, ['order_sn' => $this->make_sn()]); $resp = $provider->query(['order_sn' => '58581646984524382528']); // $body = ' {"orderid":"GCN22031115279906665","sporderid":"54011646983613476599","userid":"10002763","merchantsubmittime":"20220311153014","resultno":"9","parvalue":"50","remark1":"","payno":"","fundbalance":"-47.65","sign":"198392B102B9B9FB60D52EF93EF2BDCC"}'; // $params = json_decode($body, true); // $provider = $this->getProvider('huazhong','RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testYamiaoman() { // $provider = $this->getProvider('yamiaoman'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '53351647242979116742']); $body = '{"orderId":"220314152954756093","appId":"zIODZmzSCk","outOrderId":"53351647242979116742","sign":"41ad7d4b4b26559377c6443d2b0d6c68","orderStatus":"3","completeTime":"20220314172722","orderDesc":"\u8ba2\u5355\u5931\u8d25"}'; $params = json_decode($body, true); $provider = $this->getProvider('yamiaoman','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testKailinyu() { // $provider = $this->getProvider('kailinyu'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '94371658718403772370']); $body = '{"orderId":"220725110647030575","appId":"FcSAzHuWQ4","outOrderId":"94371658718403772370","sign":"6c2c7c91864f12ff1986ac4ea6fd7b4f","orderStatus":"3","completeTime":"20220725110647","orderDesc":"\u8ba2\u5355\u5931\u8d25"}'; $params = json_decode($body, true); $provider = $this->getProvider('kailinyu','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testKuaikuaifs() { $provider = $this->getProvider('kuaikuaifs'); // $resp = $provider->balance(); $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '96401647327929264712']); } public function testYouheman() { // $provider = $this->getProvider('youheman'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '65891648444382784227']); $body = '{"szOrderId":"65891648444382784227","fSalePrice":"91.5","szAgentId":"200040","nFlag":"2","szVerifyString":"899758ef408c86164529a3724806d52b","szPhoneNum":"18500608333","szRtnMsg":"OM1508468825220870144","nDemo":"100"}'; $params = json_decode($body, true); $provider = $this->getProvider('youheman','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testHuoshenguoman() { // $provider = $this->getProvider('huoshenguoman'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '89261649309598653504']); $body = '{"orderId":"220407133327635878","appId":"tME7rcK07P","outOrderId":"89261649309598653504","sign":"e46a90c064177aa34cac3a3951410df9","orderStatus":"3","completeTime":"20220407140654","orderDesc":"\u8ba2\u5355\u5931\u8d25"}'; $params = json_decode($body, true); $provider = $this->getProvider('huoshenguoman','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testGuitong() { // $provider = $this->getProvider('guitong'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '15551649669272272125']); $body = '{"szOrderId":"15551649669272272125","fSalePrice":"28.62","szAgentId":"200062","nFlag":"3","szVerifyString":"62e5b8a71935a36acf563f232b75210e","szPhoneNum":"18500608333","szRtnMsg":"","nDemo":"30"}'; $params = json_decode($body, true); $provider = $this->getProvider('guitong','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testYouhedf() { // $provider = $this->getProvider('youhedf'); // $resp = $provider->balance(); // $resp = $provider->add(1004638637, 101, 50, ['order_sn' => $this->make_sn(), 'regin_no' => 1]); // $resp = $provider->query(['order_sn' => '80821649748836825835']); $body = '{"szOrderId":"27341649750036121132","fSalePrice":"46.5","szAgentId":"200044","nFlag":"3","szVerifyString":"52b9057e467f09cf21eaceacddb475e6","szPhoneNum":"1004638637","szRtnMsg":"","nDemo":"50"}'; $params = json_decode($body, true); $provider = $this->getProvider('youhedf', 'RefillCallBack'); } public function testYunchonggongman() { // $provider = $this->getProvider('yunchonggongman'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '72011649828177343273']); $body = '{"orderId":"220413133619562061","appId":"P9EYSTJenh","outOrderId":"72011649828177343273","sign":"5294a7cea3c30049f82454012d9dd028","orderStatus":"3","completeTime":"20220413140642","orderDesc":"\u8ba2\u5355\u5931\u8d25"}'; $params = json_decode($body, true); $provider = $this->getProvider('yunchonggongman','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testJike() { // $provider = $this->getProvider('jike'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '61891650433011979641']); $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"}'; $params = json_decode($body, true); $provider = $this->getProvider('jike','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testJumeng() { // $provider = $this->getProvider('jumeng'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '61891650433011979641']); $body = '{"orderid":"NRG22042415190852684","sporderid":"54521650784779022915","userid":"10002591","merchantsubmittime":"20220424152241","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-28.32","sign":"315A02F52F772BFBE681541DC5D5A68F"}'; $params = json_decode($body, true); $provider = $this->getProvider('jumeng','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testShantong() { // $provider = $this->getProvider('shantong'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '35151650783370889788']); $body = '{"orderId":"23691650852278427609","mobile":"18500608333","sign":"e7239f5bc48819fcb18942ae56beba6c","orderStatus":3,"businessOrderId":"10040425100000001","finishDate":"2022-04-25 10:24:17","perValue":100}'; $params = json_decode($body, true); $provider = $this->getProvider('shantong','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testYelin_hf() { // $provider = $this->getProvider('yelin_hf'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '96211651214739034917']); $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"}'; $params = json_decode($body, true); $provider = $this->getProvider('yelin_hf','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testAinika() { // $provider = $this->getProvider('ainika'); // $resp = $provider->balance(); // $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '61961651223605267063']); $body = '{"orderid":"HAP22042917132281477","sporderid":"61961651223605267063","userid":"10002584","merchantsubmittime":"20220429171341","resultno":"9","parvalue":"50","remark1":"","payno":"","fundbalance":"-47.9","sign":"36D1867A80924B6AE92C7B2CC1CE96BF"}'; $params = json_decode($body, true); $provider = $this->getProvider('ainika','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testMiaoxt_tax() { // $provider = $this->getProvider('miaoxt_tax'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '26021652172403994919']); $body = '{"szOrderId":"26021652172403994919","fSalePrice":"51.65","szAgentId":"200093","nFlag":"2","szVerifyString":"191888adc1a74ac284ab8a9aeba89753","szPhoneNum":"18500608333","szRtnMsg":"100101101052205101647064149797","nDemo":"50"}'; $params = json_decode($body, true); $provider = $this->getProvider('miaoxt_tax','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testChending_df() { // $provider = $this->getProvider('chending_df'); // $resp = $provider->balance(); // $resp = $provider->add(0014520437, 7, 100, ['order_sn' => $this->make_sn(), 'company_type' => 'nation', 'use_type' => 'home', 'province' => 1, 'city' => '北京市', 'product_code' => 'DF_nation_home_100']); // $resp = $provider->query(['order_sn' => '63291660632954797381']); $body = '{"orderId":"220513163943109440","appId":"SfjndCMdUC","outOrderId":"59951652431183676445","sign":"6e8bb3398fe726141760e4e7c134620a","orderStatus":"2","completeTime":"20220514191209","orderDesc":"\u8ba2\u5355\u6210\u529f"}'; $params = json_decode($body, true); $provider = $this->getProvider('chending_df', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testChending_tax() { // $provider = $this->getProvider('chending_tax'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn(), 'company_type' => 'nation', 'use_type' => 'home', 'province' => 1, 'city' => '北京市']); // $resp = $provider->query(['order_sn' => '22671652666858385750']); $body = '{"orderId":"220516100746111668","appId":"4kMv0XHVYd","outOrderId":"22671652666858385750","sign":"e1f513d104df7cb31f767784f04833f1","orderStatus":"2","completeTime":"20220516100752","orderDesc":"\u8ba2\u5355\u6210\u529f","ext1":"100101101032205161007504153995"}'; $params = json_decode($body, true); $provider = $this->getProvider('chending_tax','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testDonghong_high() { // $provider = $this->getProvider('donghong_high'); // $resp = $provider->balance(); // $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '63621652775729185590']); $body = '{"orderid":"FJW22051716222022479","sporderid":"63621652775729185590","userid":"10002583","merchantsubmittime":"20220517162522","resultno":"9","parvalue":"50","remark1":"","payno":"","fundbalance":"-48.25","sign":"E7AE9EE9E3D83909564E03935A7AFAA5"}'; $params = json_decode($body, true); $provider = $this->getProvider('donghong_high','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testTongmai() { // $provider = $this->getProvider('tongmai'); // $resp = $provider->balance(); // $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '14471652858448773887']); $body = '{"szOrderId":"14471652858448773887","fSalePrice":"49.75","szAgentId":"200010","nFlag":"2","szVerifyString":"228ad25509b080bb728276d6176d9fea","szPhoneNum":"13699279618","szRtnMsg":"220518-443138774640458","nDemo":"50"}'; $params = json_decode($body, true); $provider = $this->getProvider('tongmai','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testLiantongzx() { // $provider = $this->getProvider('liantongzx'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '31091653029001738304']); $body = '{"msg":"成功","code":"00000","data":{"buisId":"31091653029001738304","signature":"59E5589E87B24B2DCBEC7AE09B0310B8","rechargePhone":"18500608333","appKey":"Dbjyz","id":"202205201443247E4AEC9FF804F14AC2","operator":"CU","status":2,"rechargeMoney":5000}}'; $params = json_decode($body, true); $provider = $this->getProvider('liantongzx','RefillCallBack'); $ret = $provider->verify($params['data']); $resp = $provider->notify($params['data']); } public function testBodian() { // $provider = $this->getProvider('bodian'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '57771653272628058996']); $body = '{"szOrderId":"57771653272628058996","fSalePrice":"49.9","szAgentId":"200022","nFlag":"2","szVerifyString":"3d0cad0e5b5b5e21822aeb30541d689c","szPhoneNum":"18500608333","szRtnMsg":"100101101062205231024014167462","nDemo":"50"}'; $params = json_decode($body, true); $provider = $this->getProvider('bodian','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testGdsinopec() { $provider = $this->getProvider('gdsinopec','RefillOil'); // $resp = $provider->add(13699279618, 4, 5, [ // 'order_sn' => $this->make_sn(), 'province' => 19 // ]); $resp = $provider->query(['order_sn' => '63821655370285849333']); } public function testYuke() { // $provider = $this->getProvider('yuke'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '26641653296769663088']); $body = '{"orderType":0,"updatedTime":"2022-05-23 17:16:02","outOpenId":"","orderSn":"20220523170620286044131126629607","sign":"ABD2343F3D936E0C0B7C1FB2893ED06E","orderStatus":3,"rechargeAccount":"15811535608","rechargeAmount":50.000,"createTime":"2022-05-23 17:06:20","outOrderId":"26641653296769663088","tPfChannelId":192,"cpParam":"","callbackOtherAttr":{"cert_no":""}}'; $params = json_decode($body, true); $provider = $this->getProvider('yuke','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testChizeng_yi() { // $provider = $this->getProvider('chizeng_yi'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 100, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '45611653372272644548']); $body = '{"orderid":"YOQ22052414043859005","sporderid":"45611653372272644548","userid":"10003583","merchantsubmittime":"20220524140541","resultno":"9","parvalue":"100","remark1":"","payno":"","fundbalance":"-98","sign":"23331D82F432054D58CA7047F33A13F7"}'; $params = json_decode($body, true); $provider = $this->getProvider('chizeng_yi','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testGuanbang() { // $provider = $this->getProvider('guanbang'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '82791653469520046484']); $body = ' {"userid":"57756","order_id":"22052517052557756af95c9977","account":"15811535608","amount":"30","price":"30.36","state":"failed","user_order":"82791653469520046484","sign":"941BE8B6FF2ABB832A1848DD2758121F","voucher":""}'; $params = json_decode($body, true); $provider = $this->getProvider('guanbang','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testYuke_lt() { $provider = $this->getProvider('yuke_lt'); $resp = $provider->balance(); } public function testYuke_dx() { $provider = $this->getProvider('yuke_dx'); $resp = $provider->balance(); } public function testGaobiao() { $provider = $this->getProvider('gaobiao'); $resp = $provider->balance(); } public function testHuoshenguo_Yd() { // $provider = $this->getProvider('huoshenguo_yd'); // $resp = $provider->balance(); // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '15731655879529254660']); $body = '{"orderId":"220622143213646892","appId":"faGa76P2NZ","outOrderId":"15731655879529254660","sign":"b8199c227c0bf4cebc9ca97bc79400eb","orderStatus":"3","completeTime":"20220622143225","orderDesc":"\u8ba2\u5355\u5931\u8d25"}'; $params = json_decode($body, true); $provider = $this->getProvider('huoshenguo_yd','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testXinruiheng() { // $provider = $this->getProvider('xinruiheng'); // $resp = $provider->balance(); // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '39051656036848508036']); $body = '{"orderid":"SPN22062410147271198","sporderid":"39051656036848508036","userid":"10002683","merchantsubmittime":"20220624101713","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-28.98","sign":"0BDCBB9BF688B35E55B1B16E88D5E5FD"}'; $params = json_decode($body, true); $provider = $this->getProvider('xinruiheng','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testDezhi() { // $provider = $this->getProvider('dezhi'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '16601665727931494879']); $body = '{"orderid":"XEV22101414121957347","sporderid":"16601665727931494879","userid":"10002505","merchantsubmittime":"20221014141213","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-17409.66","sign":"666E01E56191A7C997049E965E67A31F"}'; $params = json_decode($body, true); $provider = $this->getProvider('dezhi','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testHuoshenguo_fs() { // $provider = $this->getProvider('huoshenguo_fs'); // $resp = $provider->balance(); // $resp = $provider->add(18074608795, 6, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '94501657786482224013']); $body = '{"orderId":"220714161448729470","appId":"0AQYfAzSyy","outOrderId":"94501657786482224013","sign":"ddc73651e25ae6ea39f082407c60cb39","orderStatus":"3","completeTime":"20220714161655","orderDesc":"\u8ba2\u5355\u5931\u8d25"}'; $params = json_decode($body, true); $provider = $this->getProvider('huoshenguo_fs', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testJinglan() { // $provider = $this->getProvider('jinglan'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '80901658214434787593']); $body = '{"orderNo":"12020220719150001876401","merAccount":"1000000851","merOrderNo":"80901658214434787593","sign":"8d6e9ac7c0eaef0f4b921c983106b710","discountAmount":"50000","merOrderTime":"2022-07-19 15:07:16","successAmount":"50000","orderState":"24","merUserAccount":"","orderAmount":"50000","orderTime":"2022-07-19 15:07:18","payAmount":"50000","orderStateDesc":"\u6210\u529f","orderDetail":"\u5317\u4eac\u8054\u901a\u8bdd\u8d39\u5145\u503c50\u5143","attach":"","endTime":"2022-07-19 15:17:27","businessType":"12"}'; $params = json_decode($body, true); $provider = $this->getProvider('jinglan', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testXinruiheng_fs() { // $provider = $this->getProvider('xinruiheng_fs'); // $resp = $provider->balance(); // $resp = $provider->add(18074608795, 6, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '85401658476449708732']); $body = '{"orderid":"VEL22072215540081259","sporderid":"85401658476449708732","userid":"10002764","merchantsubmittime":"20220722155635","resultno":"1","parvalue":"30","remark1":"74620220722155607702045","payno":"74620220722155607702045","fundbalance":"-28.05","sign":"2196527C01BB57063B030C2E29270D98"}'; $params = json_decode($body, true); $provider = $this->getProvider('xinruiheng_fs', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testZiyugui() { // $provider = $this->getProvider('ziyugui'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '65941659496150348208']); $body = '{"szOrderId":"65941659496150348208","fSalePrice":"28.32","szAgentId":"200001","nFlag":"3","szVerifyString":"53fddb31f9fa15a457b6fb3b8d1f71b9","szPhoneNum":"18500608333","szRtnMsg":"","nDemo":"30"}'; $params = json_decode($body, true); $provider = $this->getProvider('ziyugui','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testGuiton_yi() { // $provider = $this->getProvider('guitong_yi'); // $resp = $provider->balance(); // $resp = $provider->add(13699279618, 4, 300, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '88981660030164774522']); $body = '{"szOrderId":"88981660030164774522","fSalePrice":"300.45","szAgentId":"200104","nFlag":"2","szVerifyString":"9b4dbb981339f702f81441aa204e9a5c","szPhoneNum":"13699279618","szRtnMsg":"250457458535","nDemo":"300"}'; $params = json_decode($body, true); $provider = $this->getProvider('guitong_yi','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testDazhanggui() { // $provider = $this->getProvider('dazhanggui'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '38151660639715902891']); $body = '{"szOrderId":"38151660639715902891","fSalePrice":"28.5","szAgentId":"200008","nFlag":"3","szVerifyString":"8e73b9e248e26089bd82303b5ed70992","szPhoneNum":"18500608333","szRtnMsg":"","nDemo":"30"}'; $params = json_decode($body, true); $provider = $this->getProvider('dazhanggui', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testWeixue() { // $provider = $this->getProvider('weixue'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '93321661135376151843']); $body = '{"orderid":"GKN22082210298364442","sporderid":"93321661135376151843","userid":"10002703","merchantsubmittime":"20220822103250","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-29.01","sign":"550EDFC88E0B08B90EAE3E5DE3CDA62E"}'; $params = json_decode($body, true); $provider = $this->getProvider('weixue','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testDazhanggui_high() { // $provider = $this->getProvider('dazhanggui_high'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '97891663034634307994']); $body = '{"szOrderId":"97891663034634307994","fSalePrice":"48.75","szAgentId":"200021","nFlag":"3","szVerifyString":"2072991c0760ca1be5ec05ba3f4cf0b0","szPhoneNum":"15811535608","szRtnMsg":"","nDemo":"50"}'; $params = json_decode($body, true); $provider = $this->getProvider('dazhanggui_high', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testYingdian_hf() { // $provider = $this->getProvider('yingdian_hf'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '95361663137380842711']); $body = '{"amount":"50.0","cardNo":"15811535608","merchantId":"10026","orderNo":"20220914143618594153","outTradeNo":"95361663137380842711","requestTime":"2022-09-14 14:36:21","sign":"219f2f45298550c52a4a7e3b98b253a7","state":"FAIL"}'; $params = json_decode($body, true); $provider = $this->getProvider('yingdian_hf', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testDazhanggui_fs() { // $provider = $this->getProvider('dazhanggui_fs'); // $resp = $provider->balance(); // $resp = $provider->add(18074608795, 6, 30, ['order_sn' => $this->make_sn(), 'regin_no' =>18]); // $resp = $provider->query(['order_sn' => '45731664176822286443']); $body = '{"szOrderId":"45731664176822286443","fSalePrice":"28.26","szAgentId":"200026","nFlag":"3","szVerifyString":"b685695ec2fb80f98566f71bd607c7d5","szPhoneNum":"18074608795","szRtnMsg":"","nDemo":"30"}'; $params = json_decode($body, true); $provider = $this->getProvider('dazhanggui_fs', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testFeiminyu_high() { // $provider = $this->getProvider('feimingyu_high'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 30, ['order_sn' => $this->make_sn(), 'regin_no' =>18]); // $resp = $provider->query(['order_sn' => '67901664179951146425']); $body = '{"orderid":"EIE22092616129360743","sporderid":"67901664179951146425","userid":"10002986","merchantsubmittime":"20220926161235","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-29.37","sign":"1D0D706BBC7944A0D0275382CC6337F5"}'; $params = json_decode($body, true); $provider = $this->getProvider('feimingyu_high', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testWeixue_yi() { $provider = $this->getProvider('weixue_yi'); $resp = $provider->balance(); } public function testJinfeng_fs() { // $provider = $this->getProvider('jinfeng_fs'); // $resp = $provider->balance(); // $resp = $provider->add(18010110637, 6, 30, ['order_sn' => $this->make_sn(), 'regin_no' =>18]); // $resp = $provider->query(['order_sn' => '67481665209341012765']); $body = '{"orderNo":"F2210081409124193922","status":"019","consumerNo":"67481665209341012765","voucherNo":null,"mobile":"18010110637"}'; $params = json_decode($body, true); $provider = $this->getProvider('jinfeng_fs', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testDouxun() { $provider = $this->getProvider('douxun'); $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 10, ['order_sn' => $this->make_sn(), 'regin_no' =>18]); // $resp = $provider->query(['order_sn' => '15711665296902146642']); $body = ' BJQDWTC tu7d1YZCB7Ca8wQNQC2mgEoMirD4an7R 20221009113824 +jGibLIlbzG0Lzv0/sxdtg== 38901665286687817863 1 400030 15811535608 0017 移动通道未开通或维护中 '; // $params = refill\util::xmlToArray($body); // $provider = $this->getProvider('douxun', 'RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testFeimingyu_middle() { // $provider = $this->getProvider('feimingyu_middle'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 30, ['order_sn' => $this->make_sn(), 'regin_no' =>18]); // $resp = $provider->query(['order_sn' => '22171665388992765168']); $body = '{"orderid":"PFI22101016039457152","sporderid":"22171665388992765168","userid":"10003008","merchantsubmittime":"20221010160317","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-29.1","sign":"C5962454EED498806B920C1181257CD0"}'; $params = json_decode($body, true); $provider = $this->getProvider('feimingyu_middle', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testRuixunda_fs() { // $provider = $this->getProvider('ruixunda_fs'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 30, ['order_sn' => $this->make_sn(), 'regin_no' => 15]); // $resp = $provider->query(['order_sn' => '80291665542669040526']); $body = '{"orderid":"KKY22101210450260770","sporderid":"80291665542669040526","userid":"10002703","merchantsubmittime":"20221012104537","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-28.5","sign":"F31A81C28225DA2EFD8D5ED0CC2B3889"}'; $params = json_decode($body, true); $provider = $this->getProvider('ruixunda_fs', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testLechong_high() { // $provider = $this->getProvider('lechong_high'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 50, ['order_sn' => $this->make_sn(), 'regin_no' => 15]); // $resp = $provider->query(['order_sn' => '99381665639827584183']); $body = '{"sellerid":"99381665639827584183","agentcode":"202210131253","account":"MTU4MTE1MzU2MDg=","value":"50","payvalue":"48.5000","voucher":"","createtime":"20221013134453","endtime":"20221013134722","state":"4","remark":"","time":"20221013135258","sign":"2e81793ab79297aae39e668c3dfa1a33"}'; $params = json_decode($body, true); $provider = $this->getProvider('lechong_high', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testDezhi_fs() { $provider = $this->getProvider('dezhi_fs'); $resp = $provider->balance(); } public function testYelin_dx() { $provider = $this->getProvider('yelin_dx'); $resp = $provider->balance(); } public function testQianqian_fs() { // $provider = $this->getProvider('qianqian_fs'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 50, ['order_sn' => $this->make_sn(), 'regin_no' =>15]); // $resp = $provider->query(['order_sn' => '95171666766063652238']); $body = '{"orderNo":"F2210261434301036619","status":"019","consumerNo":"95171666766063652238","voucherNo":null,"mobile":"15811535608"}'; $params = json_decode($body, true); $provider = $this->getProvider('qianqian_fs', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testXinruiheng_yd() { // $provider = $this->getProvider('xinruiheng_yd'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 30, ['order_sn' => $this->make_sn(), 'regin_no' =>15]); // $resp = $provider->query(['order_sn' => '66281667543910287910']); $body = '{"orderid":"OIX22110414389027114","sporderid":"66281667543910287910","userid":"10003003","merchantsubmittime":"20221104143838","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-29.19","sign":"6796F06EB1D1BE3CA32F06A80A42F971"}'; $params = json_decode($body, true); $provider = $this->getProvider('xinruiheng_yd', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testWanxin_fs() { // $provider = $this->getProvider('wanxin_fs'); // $resp = $provider->balance(); // $resp = $provider->add(15139608757, 4, 10, ['order_sn' => $this->make_sn(), 'regin_no' => 16]); // $resp = $provider->query(['order_sn' => '87101667799056105168']); $body = ' {"status":"020","orderNo":"F2211071331082216627","consumerNo":"87101667799056105168","mobile":"15139608757","voucherNo":"null","account":"wxgyyj","timestamp":"1667799069004","sign":"ee45c3c896d5e392d95858b913cd674c02fbfa5b"}'; $params = json_decode($body, true); $provider = $this->getProvider('wanxin_fs', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testWanxin() { // $provider = $this->getProvider('wanxin'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn(), 'regin_no' => 16]); // $resp = $provider->query(['order_sn' => '29901667975986554424']); $body = '{"status":"019","orderNo":"F2211091440143408966","consumerNo":"29901667975986554424","mobile":"18500608333","voucherNo":"null","account":"wxgyqg","timestamp":"1667976015002","sign":"0181d8fb2a98d1c7c605066f54e4ee0766cb8440"}'; $params = json_decode($body, true); $provider = $this->getProvider('wanxin', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testYuewen() { // $provider = $this->getProvider('yuewen'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 30, ['order_sn' => $this->make_sn(), 'regin_no' => 16]); // $resp = $provider->query(['order_sn' => '58661667979936889698']); $body = '{"orderid":"AIG22110915454468629","sporderid":"58661667979936889698","userid":"10002644","merchantsubmittime":"20221109154540","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-28.8","sign":"E12FC52E718947DAA6B6733CF9DDA529"}'; $params = json_decode($body, true); $provider = $this->getProvider('yuewen', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testMeixu_fs() { // $provider = $this->getProvider('meixu_fs'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 50, ['order_sn' => $this->make_sn(), 'regin_no' =>6]); // $resp = $provider->query(['order_sn' => '65661668503421995249']); $body = ' {"orderid":"GMJ22111517105484458","sporderid":"65661668503421995249","userid":"10003843","merchantsubmittime":"20221115171029","resultno":"9","parvalue":"50","remark1":"","payno":"","fundbalance":"-48.94","sign":"939AD149FABA7E1D85206195890F308F"}'; $params = json_decode($body, true); $provider = $this->getProvider('meixu_fs', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testDazhanggui_fs_gd() { // $provider = $this->getProvider('dazhanggui_fs_gd'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 50, ['order_sn' => $this->make_sn(), 'regin_no' => 19]); // $resp = $provider->query(['order_sn' => '85671668568809848159']); $body = '{"szOrderId":"85671668568809848159","fSalePrice":"47.75","szAgentId":"200039","nFlag":"3","szVerifyString":"6f558a5f265d3993f60bf2727742caaf","szPhoneNum":"15811535608","szRtnMsg":"","nDemo":"50"}'; $params = json_decode($body, true); $provider = $this->getProvider('dazhanggui_fs_gd', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testQianqian_fs_gd() { // $provider = $this->getProvider('qianqian_fs_gd'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 50, ['order_sn' => $this->make_sn(), 'regin_no' => 19]); // $resp = $provider->query(['order_sn' => '17721668570001406531']); $body = '{"status":"019","orderNo":"F2211161140175529547","consumerNo":"17721668570001406531","mobile":"15811535608","voucherNo":"null","account":"wlyezhigdfs","timestamp":"1668570018003","sign":"f709d1f3e3fa0d527c2c3f0b7453c2d667b3d9c0"}'; $params = json_decode($body, true); $provider = $this->getProvider('qianqian_fs_gd', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testMeixu_kami() { $provider = $this->getProvider('meixu_kami'); $resp = $provider->balance(); } public function testYouhe_fs() { // $provider = $this->getProvider('youhe_fs'); // $resp = $provider->balance(); // $resp = $provider->add(18074608795, 6, 30, ['order_sn' => $this->make_sn(), 'regin_no' => 15]); // $resp = $provider->query(['order_sn' => '42791668653632383737']); $body = '{"szOrderId":"42791668653632383737","fSalePrice":"28.05","szAgentId":"200064","nFlag":"3","szVerifyString":"245107428fad62725a98e4f5022de830","szPhoneNum":"18074608795","szRtnMsg":"","nDemo":"30"}'; $params = json_decode($body, true); $provider = $this->getProvider('youhe_fs', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testHuishi() { // $provider = $this->getProvider('huishi'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 50, ['order_sn' => $this->make_sn(), 'regin_no' => 15]); // $resp = $provider->query(['order_sn' => '34271668665589504035']); $body = '{"timestamp":1668665604140,"sign":"1b83fd174b4f8d7f89384ff450162faa","api_key":"07onE26tNyaU","order_id":"34271668665589504035","status":6,"voucher":""}'; $params = json_decode($body, true); $provider = $this->getProvider('huishi', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testYangchi() { // $provider = $this->getProvider('yangchi'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 50, ['order_sn' => $this->make_sn(), 'regin_no' => 16]); // $resp = $provider->query(['order_sn' => '93291668743605489040']); $body = '{"szOrderId":"93291668743605489040","fSalePrice":"48.3","szAgentId":"200035","nFlag":"3","szVerifyString":"bd51c3df1132ed84de92b46ee7f5743e","szPhoneNum":"15811535608","szRtnMsg":"","nDemo":"50"}'; $params = json_decode($body, true); $provider = $this->getProvider('yangchi', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testYangchi_fs() { // $provider = $this->getProvider('yangchi_fs'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 30, ['order_sn' => $this->make_sn(), 'regin_no' => 24]); // $resp = $provider->query(['order_sn' => '43071668750406110934']); $body = '{"szOrderId":"43071668750406110934","fSalePrice":"27.78","szAgentId":"200036","nFlag":"3","szVerifyString":"6b6f42600c07146d08c51b737487eafc","szPhoneNum":"15811535608","szRtnMsg":"","nDemo":"30"}'; $params = json_decode($body, true); $provider = $this->getProvider('yangchi_fs', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testBier() { $provider = $this->getProvider('bier'); // $resp = $provider->balance(); // $phones = [ // 15811535608, // 15136908757, // 13683095937, // 13699279618, // 15811535608, // 15136908757, // 13683095937, // 13699279618, // 15811535608, // 15136908757 // ]; // foreach ($phones as $phone) // { // $resp = $provider->add($phone, 4, 10, ['order_sn' => $this->make_sn()]); // $result[] = $resp; // } $resp = $provider->query(['order_sn' => '77551669277530669853']); $body = '{"status":"001","orderNo":"F2211241612105366466","consumerNo":"77551669277530669853","mobile":"13699279618","voucherNo":"2022112422001463431440964703","account":"lzyezi","timestamp":"1669277556001","sign":"b60774a793f882bb2e6bf77e9c2bf36299024cba"}'; $params = json_decode($body, true); $provider = $this->getProvider('bier', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testBier_fs() { // $provider = $this->getProvider('bier_fs'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 30, ['order_sn' => $this->make_sn(), 'regin_no' => 13]); // $resp = $provider->query(['order_sn' => '18361668755806837322']); $body = '{"status":"027","orderNo":"F2211181516549189078","consumerNo":"18361668755806837322","mobile":"15811535608","voucherNo":"null","account":"yzfs1688","timestamp":"1668755817002","sign":"e44cadf815d0e2359f0872bce78a7628d0edbc98"}'; $params = json_decode($body, true); $provider = $this->getProvider('bier_fs', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testLechongquan() { $provider = $this->getProvider('lechongquan'); $resp = $provider->balance(); } public function testLechongYin() { $provider = $this->getProvider('lechongyin'); $resp = $provider->balance(); } public function testYuewen_fs() { // $provider = $this->getProvider('yuewen_fs'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 50, ['order_sn' => $this->make_sn(), 'regin_no' => 24]); // $resp = $provider->query(['order_sn' => '75631669258194223094']); $body = '{"orderid":"JWX22112410509839637","sporderid":"75631669258194223094","userid":"10002703","merchantsubmittime":"20221124105321","resultno":"9","parvalue":"50","remark1":"","payno":"","fundbalance":"-46.6","sign":"6BFACD01F21C365F36E6FA6CC37ACB2F"}'; $params = json_decode($body, true); $provider = $this->getProvider('yuewen_fs', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testBodian_dx() { $provider = $this->getProvider('bodian_dx'); $resp = $provider->balance(); } public function testHanwei() { // $provider = $this->getProvider('hanwei'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 50, ['order_sn' => $this->make_sn(), 'regin_no' => 24]); // $resp = $provider->query(['order_sn' => '71841669948501757578']); $body = ' {"szOrderId":"71841669948501757578","fSalePrice":"48.3","szAgentId":"200046","nFlag":"3","szVerifyString":"497172ecff90c82321a7489e7e98d5f4","szPhoneNum":"15811535608","szRtnMsg":"","nDemo":"50"}'; $params = json_decode($body, true); $provider = $this->getProvider('hanwei', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testJumi_sec() { // $provider = $this->getProvider('jumi_sec', 'RefillOil'); // $resp = $provider->balance(); // $resp = $provider->add(1000111100021211884, 2, 100, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '15461669628093278758']); $body = '{"appid":"CZ27801384","order":"D20221128280985506419397","morder":"15461669628093278758","status":"3","cash":"100","signature":"f6ded2c0ac2340a5dea72715bc426024"}'; $params = json_decode($body, true); $provider = $this->getProvider('jumi_sec', 'RefillCallBack'); } public function testHanwei_fs() { // $provider = $this->getProvider('hanwei_fs'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 30, ['order_sn' => $this->make_sn(), 'regin_no' => 25]); // $resp = $provider->query(['order_sn' => '66021670294205137877']); $body = '{"szOrderId":"66021670294205137877","fSalePrice":"28.59","szAgentId":"200047","nFlag":"3","szVerifyString":"7210c6fee2bb07ed382c1777b3ab4e09","szPhoneNum":"15811535608","szRtnMsg":"","nDemo":"30"}'; $params = json_decode($body, true); $provider = $this->getProvider('hanwei_fs', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testFeimingyu_fs() { // $provider = $this->getProvider('feimingyu_fs'); // $resp = $provider->balance(); // $resp = $provider->add(18074608795, 6, 30, ['order_sn' => $this->make_sn(), 'regin_no' => 19]); // $resp = $provider->query(['order_sn' => '18881670298244168096']); $body = '{"orderid":"RSQ22120611443597403","sporderid":"18881670298244168096","userid":"10003043","merchantsubmittime":"20221206114413","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-28.05","sign":"93937542BC5D5D11F0180A420E62A3F0"}'; $params = json_decode($body, true); $provider = $this->getProvider('feimingyu_fs', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testYuewen_fs_gd() { $provider = $this->getProvider('yuewen_fs_gd'); $resp = $provider->balance(); } public function testGuochuang_nation_sec() { $provider = $this->getProvider('guochuang_nation_sec'); $resp = $provider->balance(); } public function testDouxun_sec() { $provider = $this->getProvider('douxun_sec'); $resp = $provider->balance(); } public function testMeixu_tax() { // $provider = $this->getProvider('meixu_tax'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 10, ['order_sn' => $this->make_sn(), 'regin_no' => 19]); // $resp = $provider->query(['order_sn' => '74501673492674950129']); $body = '{"orderId":"230112110446071986","appId":"Bb0uub7pDi","outOrderId":"74501673492674950129","sign":"0f526e19eb5af23efe8b6e21f5914944","orderStatus":"2","completeTime":"20230112111006","orderDesc":"\u8ba2\u5355\u6210\u529f","ext1":"N\/A"}'; $params = json_decode($body, true); $provider = $this->getProvider('meixu_tax', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testMeixu_tax_sec() { $provider = $this->getProvider('meixu_tax_sec'); $resp = $provider->balance(); } public function testRuizhi_sec() { $provider = $this->getProvider('ruizhi_sec'); $resp = $provider->balance(); } public function testRuizhi_third() { $provider = $this->getProvider('ruizhi_third'); $resp = $provider->balance(); } public function testXinhengyang_fs() { // $provider = $this->getProvider('xinhengyang_fs'); // $resp = $provider->balance(); // $resp = $provider->add(18074608795, 6, 30, ['order_sn' => $this->make_sn(), 'regin_no' => 18]); // $resp = $provider->query(['order_sn' => '35371675219635958297']); $body = '{"szOrderId":"35371675219635958297","fSalePrice":"28.05","szAgentId":"200104","nFlag":"3","szVerifyString":"8d3c21aff5b72f30bf179dd8f4138a3f","szPhoneNum":"18074608795","szRtnMsg":"","nDemo":"30"}'; $params = json_decode($body, true); $provider = $this->getProvider('xinhengyang_fs', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testChuangyu_qdw() { // $provider = $this->getProvider('chuangyu_qdw'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn(), 'regin_no' => 18]); // $resp = $provider->query(['order_sn' => '86411676429434128248']); $body = '{"order_status":"success","account":"18500608333","account_type":1,"product_id":10011,"price":"51.8500","customer_order_no":"86411676429434128248","serial_number":"100101135112302151050411911769","signature":"d0af992b9ce2b1181d9e9c686dd81134"}'; $params = json_decode($body, true); $provider = $this->getProvider('chuangyu_qdw','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testTianrui() { // $provider = $this->getProvider('tianrui'); // $resp = $provider->balance(); // $resp = $provider->add(18074608795, 6, 1, ['order_sn' => $this->make_sn(), 'regin_no' => 18]); // $resp = $provider->query(['order_sn' => '74081676877369235785']); $body = ' {"orderId":"230220151609757457","appId":"7q0uPQMdji","outOrderId":"74081676877369235785","sign":"02d321619e2f64d63dad3df400a5b478","orderStatus":"2","completeTime":"20230220152946","orderDesc":"\u8ba2\u5355\u6210\u529f"}'; $params = json_decode($body, true); $provider = $this->getProvider('tianrui', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testChuangyu_ylyw() { $provider = $this->getProvider('chuangyu_ylyw'); $resp = $provider->balance(); } public function testLechong_high_sec() { $provider = $this->getProvider('lechong_high_sec'); $resp = $provider->balance(); } public function testZhongst_doubi() { // $provider = $this->getProvider('zhongst_doubi'); // $resp = $provider->balance(); // $resp = $provider->add(608168539, 7, 30, [ // 'order_sn' => $this->make_sn(), // 'product_code' => 'XYZ100747', // 'goods_id' => '6978' // ]); // $resp = $provider->query(['order_sn' => '81061677051839860385']); $body = '{"szOrderId":"81061677051839860385","fSalePrice":"29.85","szAgentId":"200061","nFlag":"2","szVerifyString":"d65a4e5d53a2e6d29f0288013baaa22b","szPhoneNum":"608168539","szRtnMsg":"","nDemo":"30"}'; $params = json_decode($body, true); $provider = $this->getProvider('zhongst_doubi','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testJiaqi() { // $provider = $this->getProvider('jiaqi'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn(), 'regin_no' => 18]); // $resp = $provider->query(['order_sn' => '49271677568849660255']); $body = ' {"szOrderId":"49271677568849660255","fSalePrice":"46.75","szAgentId":"200004","nFlag":"3","szVerifyString":"cf6bfe87cf0e39edc28c1089d275f596","szPhoneNum":"18500608333","szRtnMsg":"","nDemo":"50"}'; $params = json_decode($body, true); $provider = $this->getProvider('jiaqi', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testJiaqi_fs() { $provider = $this->getProvider('jiaqi_fs'); $resp = $provider->balance(); } public function testQuanmiao() { // $provider = $this->getProvider('quanmiao'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 30, ['order_sn' => $this->make_sn(), 'regin_no' => 18]); // $resp = $provider->query(['order_sn' => '48061678338499499484']); $body = '{"access_key":"ACK211394676","orderid":230309130829524000,"out_trade_no":"48061678338499499484","timestamp":1678338526112,"code":2,"sign":"0GOGz/hClrbptF50g2V4tqfHUTk=","data":{"sellprice":312000,"phone":"15811535608","pass":null,"official_id":"00772023030913083880729757913991","official_ch":"其它"}}'; $params = json_decode($body, true); $provider = $this->getProvider('quanmiao', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testQuanmiao_ylyw() { $provider = $this->getProvider('quanmiao_ylyw'); $resp = $provider->balance(); } public function testShenzhou() { // $provider = $this->getProvider('shenzhou'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 100, ['order_sn' => $this->make_sn(), 'regin_no' => 18]); // $resp = $provider->query(['order_sn' => '46851678761390025347']); $body = '{"szOrderId":"46851678761390025347","fSalePrice":"103.7","szAgentId":"200237","nFlag":"2","szVerifyString":"3debe8777315482187f6396c2e97c3f7","szPhoneNum":"15811535608","szRtnMsg":"261359607860","nDemo":"100"}'; $params = json_decode($body, true); $provider = $this->getProvider('shenzhou', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testShenzhou_ylyw() { $provider = $this->getProvider('shenzhou_ylyw'); $resp = $provider->balance(); } public function testSiyicheng() { // $provider = $this->getProvider('siyicheng'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 50, ['order_sn' => $this->make_sn(), 'regin_no' => 18]); // $resp = $provider->query(['order_sn' => '82871678852155519038']); $body = '{"orderId":"230315114915719293","appId":"A3PsRxMTnw","outOrderId":"82871678852155519038","sign":"d8d947c99dd19661fc4265f61c113d98","orderStatus":"3","completeTime":"20230315115208","orderDesc":"\u8ba2\u5355\u5931\u8d25"}'; $params = json_decode($body, true); $provider = $this->getProvider('siyicheng', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testPiaoyi() { // $provider = $this->getProvider('piaoyi'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 50, ['order_sn' => $this->make_sn(), 'regin_no' => 18]); // $resp = $provider->query(['order_sn' => '77071679449784286441']); $body = '{"outOrderNumber":"77071679449784286441","ext":"","brandName":"移动","orderNumber":"O1080925610093658","productId":"1","salesPrice":"51.800000","chargeNumber":"15811535608","orderRemark":"成功","sign":"679defcf243ff6359ef7374092d21576","agentName":"qdw-dp","orderStatus":"200","updateTime":"2023-03-22 09:50:44","productName":"话费快充","chargeFace":"50.00","cardList":"","brandOrderNumber":"00772023032209502341251815717991","cityName":"北京","createTime":"2023-03-22 09:50:12","notifyUrl":"https://www.xyzshops.cn/mobile/signature.php","provinceName":"北京","orderTimeOutDate":"2023-03-23 09:50:12","timestamp":"1679449844217"}'; $params = json_decode($body, true); $provider = $this->getProvider('piaoyi', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testPiaoyi_ylyw() { $provider = $this->getProvider('piaoyi_ylyw'); $resp = $provider->balance(); } public function testweixue_doubi() { // $provider = $this->getProvider('weixue_doubi'); // $resp = $provider->balance(); // $resp = $provider->add(588073521, 7, 100, [ // 'order_sn' => $this->make_sn(), // 'product_code' => 'XYZ100772', // 'goods_id' => '6978' // ]); // $resp = $provider->query(['order_sn' => '99341680249477846685']); $body = '{"orderid":"KGM23033115585506241","sporderid":"99341680249477846685","userid":"10003063","merchantsubmittime":"20230331160351","resultno":"1","parvalue":"100","remark1":"{\"OfficialDes\"null,\"OfficialOrderID\"null,\"SellPrice\"1010000}","payno":"{\"OfficialDes\"null,\"OfficialOrderID\"null,\"SellPrice\"1010000}","fundbalance":"-97.5","sign":"C4A87E0C7C3AE4801FDAD746277B342B"}'; $params = json_decode($body, true); $provider = $this->getProvider('weixue_doubi','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testYunhui() { // $provider = $this->getProvider('yunhui'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 100, ['order_sn' => $this->make_sn(), 'regin_no' => 18]); // $resp = $provider->query(['order_sn' => '46461680767912339659']); $body = '{"orderid":"ROY23040615581957358","sporderid":"46461680767912339659","userid":"10002863","merchantsubmittime":"20230406155836","resultno":"9","parvalue":"100","remark1":"","payno":"","fundbalance":"-98.6","sign":"56055EBC0F443940C91F76C3A9B9AA6B"}'; $params = json_decode($body, true); $provider = $this->getProvider('yunhui', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testYongjia() { // $provider = $this->getProvider('yongjia'); // $resp = $provider->balance(); // $resp = $provider->add(18074608795, 6, 200, ['order_sn' => $this->make_sn(), 'province' => 1, 'product_code' => 'XYZ100777', 'goods_id' => 6978]); // $resp = $provider->query(['order_sn' => '86061683172050676749']); $body = '{"number":"18074608795","mchid":"1","orderid":"86061683172050676749","price":"100.0","voucher":"","sign":"3d62a44c8f49a158e3cb8d58518bc193","oid":162,"status":"3"}'; $params = json_decode($body, true); $provider = $this->getProvider('yongjia', 'RefillCallback'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testHuiyuan() { $provider = $this->getProvider('huiyuan'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 10, ['order_sn' => $this->make_sn(), 'regin_no' => 18]); // $resp = $provider->query(['order_sn' => '25551683853847719519']); $content = 'agent_id=2145738&bill_id=25551683853847719519&jnet_bill_no=C230512588496314&par_price=10.0000&purchase_amt=10.3600&bill_charge_time=20230512092120&bill_status=%B3%C9%B9%A6&bill_data_info=C230512588496314%3a1&sign=b0c81c3b9b1ce25ed76299069df4be82'; $params = $provider->decode_tag($content); $provider = $this->getProvider('huiyuan', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testDezhi_yi() { $provider = $this->getProvider('dezhi_yi'); $resp = $provider->balance(); } public function testMeihan() { // $provider = $this->getProvider('meihan'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '53841681808288816594']); $body = '{"orderId":"230418165816651111","appId":"W33zTP9202","outOrderId":"53841681808288816594","sign":"b7bed78f436d7fccd6b59a77e58521fc","orderStatus":"3","completeTime":"20230418165816","orderDesc":"\u8ba2\u5355\u5931\u8d25"}'; $params = json_decode($body, true); $provider = $this->getProvider('meihan', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testMeihan_fs() { // $provider = $this->getProvider('meihan_fs'); // $resp = $provider->balance(); // $resp = $provider->add(18074608795, 6, 30, ['order_sn' => $this->make_sn(), 'regin_no' => 18]); // $resp = $provider->query(['order_sn' => '56911681870334278247']); $body = '{"orderId":"230419101229102385","appId":"WtCDoePp9g","outOrderId":"56911681870334278247","sign":"91eb93d735dd468ab24e8cb6c7c4256f","orderStatus":"3","completeTime":"20230419101628","orderDesc":"\u8ba2\u5355\u5931\u8d25"}'; $params = json_decode($body, true); $provider = $this->getProvider('meihan_fs', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testBinyu() { $provider = $this->getProvider('binyu'); $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 100, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '30431682320503722891']); // $body = '{"order_status":"success","account":"15811535608","account_type":1,"product_id":10000,"price":"100.0000","customer_order_no":"30431682320503722891","serial_number":"1682320511733","signature":"b8f29e6e7c9e2cc9f93267efdf9c0b54"}'; // $params = json_decode($body, true); // $provider = $this->getProvider('binyu', 'RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testGetXMLEncoding() { $header = ''; /* $ret = preg_match("//", $header, $res);*/ $ret = preg_match("//", $header, $res); } public function testfeihan() { $provider = $this->getProvider('feihan', 'RefillOil'); $resp = $provider->balance(); $resp = $provider->add(9030230005180327, 1, 200, ['order_sn' => $this->make_sn()]); $resp = $provider->query(['order_sn' => '18141682668825332400']); // $body = '{"err_msg":"","ordersuccesstime":"20230428161615","sporder_id":"18141682668825332400","ret_code":"1"}'; // $params = json_decode($body, true); // $provider = $this->getProvider('feihan', 'RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testBy_online() { // $provider = $this->getProvider('by_online'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn(), 'regin_no' => 1]); // $resp = $provider->query(['order_sn' => '13041683603793048767']); $body = '{"appId":"1","merchantorder_no":"13041683603793048767","order_sn":"2023050911432028374556511004","pay_mobile":"18500608333","amount":"5000","real_price":"5000","order_status":"7","extra":"","pay_time":"2023-05-09 11:43:22","completion_time":"2023-05-09 11:43:22","sign":"bdf57f1437a1ee4cdbbe62f0f44e98cd"}'; $params = json_decode($body, true); $provider = $this->getProvider('by_online', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testGuochuang_nation_trd() { $provider = $this->getProvider('guochuang_nation_trd'); $resp = $provider->balance(); } public function testQuanzhen() { // $provider = $this->getProvider('quanzhen', 'RefillOil'); // $resp = $provider->balance(); // $resp = $provider->add(1000111100021211884, 2, 100, ['order_sn' => $this->make_sn(), 'regin_no' => 1]); // $resp = $provider->query(['order_sn' => '49611683682698964856']); $body = '{"msg":"FAIL","amount":"10000","orderId":"49611683682698964856","phone":"1000111100021211884","voucher":"","appid":"wp1680594711360","sign":"dbb5446b01a209330da268b4b51765eb","time":"20230510103433","status":3}'; $params = json_decode($body, true); $provider = $this->getProvider('quanzhen', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testZhongst_oil() { // $provider = $this->getProvider('zhongst_oil', 'RefillOil'); // $resp = $provider->balance(); // $resp = $provider->add(1000111100021211884, 2, 100, ['order_sn' => $this->make_sn(), 'regin_no' => 1]); // $resp = $provider->query(['order_sn' => '47761683793213899415']); $body = '{"szOrderId":"47761683793213899415","fSalePrice":"100.3","szAgentId":"200072","nFlag":"3","szVerifyString":"486394ca15e8b50a96f4a3f5fdfe4554","szPhoneNum":"1000111100021211884","szRtnMsg":"","nDemo":"100"}'; $params = json_decode($body, true); $provider = $this->getProvider('zhongst_oil', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testBingguang_third() { // $provider = $this->getProvider('bingguang_third'); // $resp = $provider->balance(); // $resp = $provider->add(608168539, 7, 30, [ 'order_sn' => $this->make_sn(), 'product_code' => 'XYZ100777', 'goods_id' => '6978', ]); // $resp = $provider->query(['order_sn' => '92481683880348681476']); $body = ' {"orderId":"230512163238675676","appId":"lMIQD9hkWG","outOrderId":"92481683880348681476","sign":"37a3b416c25f4272b4375a544168033b","orderStatus":"3","completeTime":"20230512164216","orderDesc":"\u8ba2\u5355\u5931\u8d25"}'; $params = json_decode($body, true); $provider = $this->getProvider('bingguang_third','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testTianchen_sec() { // $provider = $this->getProvider('tianchen_sec'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn(), 'regin_no' => 1]); // $resp = $provider->query(['order_sn' => '18681685500032499039']); $body = '{"szOrderId":"18681685500032499039","fSalePrice":"50.075","szAgentId":"100322","nFlag":"2","szVerifyString":"254e4e82e7bac8728e45f428bdb96cf8","szPhoneNum":"18500608333","szRtnMsg":"100101246122305311027173950243","nDemo":"50"}'; $params = json_decode($body, true); $provider = $this->getProvider('tianchen_sec', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testQuanzhen_hf() { $provider = $this->getProvider('quanzhen_hf'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 50, ['order_sn' => $this->make_sn(), 'regin_no' => 1]); $resp = $provider->query(['order_sn' => '36471685521966668231']); $body = ' {"msg":"success","amount":"5000","orderId":"36471685521966668231","phone":"15811535608","voucher":"","appid":"wp1685346652120","sign":"b4700c1f34d2eb4115ed57a257f59916","time":"20230531163356","status":2}'; $params = json_decode($body, true); $provider = $this->getProvider('quanzhen_hf', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testQuanzhen_hf_man() { $provider = $this->getProvider('quanzhen_hf_man'); $resp = $provider->balance(); } public function testMeixu_sec() { $provider = $this->getProvider('meixu_sec'); $resp = $provider->balance(); } public function testShuzishijie() { // $provider = $this->getProvider('shuzishijie'); // $resp = $provider->balance(); // $resp = $provider->add(17801048874, 7, 30, [ 'order_sn' => $this->make_sn(), 'product_code' => 'XYZ100777', 'goods_id' => '6978', 'third_card_type' => 1]); // $resp = $provider->query(['order_sn' => '68921686127924343359']); $body = ' {"merchantId":"23329","outTradeNo":"68921686127924343359","status":"01","rechargeAccount":"17801048874","sign":"D3B1A52D7EB5A08C63803806C27C841A"}'; $params = json_decode($body, true); $provider = $this->getProvider('shuzishijie','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testXinma() { // $provider = $this->getProvider('xinma', 'RefillOil'); // $resp = $provider->balance(); // $resp = $provider->add(1000111100021211884, 2, 100, ['order_sn' => $this->make_sn(), 'regin_no' => 1]); // $resp = $provider->query(['order_sn' => '14771686195802820971']); $body = ' {"sys_order_id":"SN202306081143280001","user_order_id":"14771686195802820971","status":"202","err_msg":"","order_money":"0","sign":"578e3222b0c9278fd4d3c1272bdbf8b4","official_order_id":"","rec_msg":""}'; $params = json_decode($body, true); $provider = $this->getProvider('xinma', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testPiaoyi_oil() { // $provider = $this->getProvider('piaoyi_oil'); // $resp = $provider->balance(); // $resp = $provider->add(9030230005180327, 7, 100, ['order_sn' => $this->make_sn(), 'product_code' => 'XYZ100777', 'goods_id' => '6978',]); // $resp = $provider->query(['order_sn' => '32121686561773063938']); $body = '{"outOrderNumber":"32121686561773063938","ext":"","brandName":"中石油","orderNumber":"O1140496202559377","productId":"1244","salesPrice":"98.000000","chargeNumber":"9030230005180327","orderRemark":"成功","sign":"8af5a7df0ec6e53b3a8ea9f7dac28688","agentName":"yl-syj","orderStatus":"200","updateTime":"2023-06-12 17:23:55","productName":"安徽石油100","chargeFace":"100.00","cardList":"","brandOrderNumber":"","cityName":"全省","createTime":"2023-06-12 17:23:15","notifyUrl":"https://www.xyzshops.cn/mobile/signature.php","provinceName":"安徽","orderTimeOutDate":"2023-06-13 17:23:15","timestamp":"1686561835363"}'; $params = json_decode($body, true); $provider = $this->getProvider('piaoyi_oil','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testQiantu() { // $provider = $this->getProvider('qiantu'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 100, ['order_sn' => $this->make_sn(), 'regin_no' => 1]); // $resp = $provider->query(['order_sn' => '37251686721677638585']); $body = '{"orderid":"NE2A230614134804263-7800830","sporderid":"37251686721677638585","userid":"10003166","merchantsubmittime":"20230614134805","resultno":"9","parvalue":"100","remark1":"","fundbalance":"-97.3","sign":"F09ABCC44C5C3350D628B3C7414253EB"}'; $params = json_decode($body, true); $provider = $this->getProvider('qiantu', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testTongka() { // $provider = $this->getProvider('tongka'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 7, 30, [ 'order_sn' => $this->make_sn(), 'product_code' => 'XYZ100777', 'goods_id' => '6978', ]); // $resp = $provider->query(['order_sn' => '94421686817072302858']); $body = '{"order_sn":"BL2306151618051810432584","status":"6","account":"18500608333","third_order_sn":"94421686817072302858","time":1686817094,"sign":"5852EF7F725AEDF6CCE9CBF459A27368"}'; $params = json_decode($body, true); $provider = $this->getProvider('tongka', 'RefillCallBack'); } public function testYuntian() { // $provider = $this->getProvider('yuntian'); // $resp = $provider->balance(); $provider = $this->getProvider('yuntian_fs'); // $resp = $provider->balance(); $resp = $provider->add(15811535608, 4, 30, ['order_sn' => $this->make_sn(), 'regin_no' => 1]); // $resp = $provider->query(['order_sn' => '89151688372671258257']); // $body = '{"status":"019","orderNo":"F2307031624355807256","consumerNo":"89151688372671258257","mobile":"15811535608","voucherNo":"null","account":"ytyzqg","timestamp":"1688372676004","sign":"b9b3e1643052fb4d2162d20311ec140f57790384"}'; // $params = json_decode($body, true); // $provider = $this->getProvider('yuntian','RefillCallBack'); // $ret = $provider->verify($params); // $resp = $provider->notify($params); } public function testKainuo() { // $provider = $this->getProvider('kainuo'); // $resp = $provider->balance(); // $resp = $provider->add(18074608795, 6, 50, ['order_sn' => $this->make_sn(), 'regin_no' => 1]); // $resp = $provider->query(['order_sn' => '65391689824562951763']); $body = '{"szOrderId":"65391689824562951763","fSalePrice":"49.7","szAgentId":"200050","nFlag":"3","szVerifyString":"1b55dc64277dd8e49f72dc4a5d46f045","szPhoneNum":"18074608795","szRtnMsg":"","nDemo":"50"}'; $params = json_decode($body, true); $provider = $this->getProvider('kainuo','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testZhenghe_sec() { // $provider = $this->getProvider('zhenghe_sec'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 50, ['order_sn' => $this->make_sn(), 'regin_no' => 1]); // $resp = $provider->query(['order_sn' => '16261690182981011717']); $body = '{"number":"15811535608","mchid":"200003","orderid":"16261690182981011717","price":"50.25","voucher":"","sign":"556d199d03e7c46c40c90b9bd6fc7618","oid":2000000705,"status":"3"}'; $params = json_decode($body, true); $provider = $this->getProvider('zhenghe_sec','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testJuhu() { $provider = $this->getProvider('juhu'); $resp = $provider->balance(); } public function testFeihan_hf() { // $provider = $this->getProvider('feihan_hf'); // $resp = $provider->add(15715155515, 4, 50, ['order_sn' => $this->make_sn(), 'regin_no' => 1]); $body = '{"err_msg":"","ordersuccesstime":"20230802150200","sign":"52920F6CECE7DE9ACE4A0A0224DEFD0C","sporder_id":"58431690957151281598","userid":"A08566","ret_code":"1"}'; $params = json_decode($body, true); $provider = $this->getProvider('feihan_hf','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testWangxin() { // $provider = $this->getProvider('wangxin'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 50, ['order_sn' => $this->make_sn(), 'regin_no' => 1]); // $resp = $provider->query(['order_sn' => '83371692006923863228']); $body = '{"body":{"err_msg":"充值失败","phone":"15811535608","status":"2","kh_order_id":"83371692006923863228","kh_settle_time":"20230814175650","kh_settle_price":"50.25","type":"1","order_id":"1495FC2007010931207019","ext_content":""},"header":{"sign":"Ia7+83wqIGlLDa8FR5ug5gPsmTLPm7/bvXAtM47Rqxa1nxGpHtVx3+/Fg876xPxHTeMkBQoWkLhdshX9XJdUoaijArU0RseQoDueWnExwDOX0aDBymLr/wyRJ7TavIa2+U/VglDOTIm9pTTen2u6dBUPoy8nn3jZ/BfIwU2KPIQ=","sign_nonce":"sign1692007064780","timestamp":"1692007064780","req_no":"reqno1692007064780","app_id":"20230811115729"}}'; $params = json_decode($body, true); $body = $params['body']; $header = $params['header']; $params = array_merge($body, $header); $provider = $this->getProvider('wangxin','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testAmingjd() { // $provider = new refill\amingjd\RefillOil([]); // $resp = $provider->add(13699279618, 5, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '42301616475989518588']); $body = '{"order_id":"83321616478215494884","mchid":"10003","tel":"13699279618","price":"30.00","sign":"01c49620c155a80bc43cecc2b1651868","status":"0","out_order_id":"0"}'; $params = json_decode($body, true); refill\RefillFactory::instance()->notify('amingjd', $params); } public function testAmingjdmanPhone() { $provider = new refill\amingjdman\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '82741619577673758623']); $body = '{"order_id":"82741619577673758623","mchid":"10045","tel":"13699279618","price":"30.00","sign":"2fe55fb4d4b2acc2e98137adb82fa57e","status":"0","out_order_id":"0"}'; $params = json_decode($body, true); refill\RefillFactory::instance()->notify('amingjdman', $params); } public function testWeishengyWtPhone() { $provider = new refill\weishengywt\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '27681620538125370652']); $data = '{"szOrderId":"27681620538125370652","fSalePrice":"47.5","szAgentId":"200045","nFlag":"2","szVerifyString":"92fafec121b77518d539ed9f5005fdf9","szPhoneNum":"18500608333","szRtnMsg":"110103308032105091328520502948","nDemo":"50"}'; $params = json_decode($data, true); refill\RefillFactory::instance()->notify('weishengywt', $params); } public function testWeishengyJDPhone() { $provider = new refill\weishengyjd\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '14261620887423822879']); $data = '{"szOrderId":"14261620887423822879","fSalePrice":"44.0","szAgentId":"200050","nFlag":"3","szVerifyString":"3cceef390602058e1d2fdde2e07636a4","szPhoneNum":"18500608333","szRtnMsg":"","nDemo":"50"}'; $params = json_decode($data, true); refill\RefillFactory::instance()->notify('weishengyjd', $params); } public function testYeziPhone() { $provider = new refill\yezi\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '35261620988265145105']); $data = '{"mchid":"10147","order_sn":"35261620988265145105","amount":"50.00","cardno":"18500608333","trade_no":"6363570674332280422825","idcard":"","card_name":"","official_sn":"","message":"","state":"CANCEL","sign":"b79f2ddbb5b7eef98f414585a5bd2cde"}'; $params = json_decode($data, true); refill\RefillFactory::instance()->notify('yezi', $params); } public function testWeishengysixPhone() { $provider = new refill\weishengysix\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '17171624434289348649']); $data = '{"szOrderId":"17171624434289348649","fSalePrice":"44.5","szAgentId":"200074","nFlag":"2","szVerifyString":"fa5735090199d97e6a50e7f3083be111","szPhoneNum":"18500608333","szRtnMsg":"AW2021062315464045A27","nDemo":"50"}'; $params = json_decode($data, true); refill\RefillFactory::instance()->notify('weishengysix', $params); } public function testHaohaoOil() { $provider = new refill\haohao\RefillOil([]); // $resp = $provider->add(1000111100021211884, 2, 100, ['order_sn' => $this->make_sn()]); $data['amount'] = 20000; $data['mchId'] = 467253; $data['mchOrderNo'] = '5514850674656058146707'; $data['mobile'] = ''; $data['sign'] = 'F282D68972A437F3CEB3516BB2FDD19A'; $data['operator'] = 4; $data['number'] = '1000113200020348885'; $data['thirdOrderNo'] = '2317184088901537792'; $data['directStatus'] = 5; // $input = json_decode($data, true); refill\RefillFactory::instance()->notify('haohao',$data); } public function testJuzhuoOil() { $provider = new refill\juzhuo\RefillOil([]); // $resp = $provider->add(1000111100021211884, 2, 200, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '20121621578185774451']); // $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"}'; // $input = json_decode($data, true); $data['channelsort'] = 'OIL_CARD'; $data['channelno'] = ''; $data['onlystr'] = '0772770675248490450497'; $data['channel'] = 'JD'; $data['sign'] = '4a9f113bfa4aa2d155de7136ca0afe2d'; $data['amt'] = '100'; $data['notifyurl'] = 'http://121.89.212.167/racc/callback/lingzh/juzhuo.php'; $data['cardtype'] = 'Sinoepc'; $data['cardno'] = '1000113200029532754'; $data['orgid'] = '6095171500'; $data['account'] = ''; $data['status'] = '3'; refill\RefillFactory::instance()->notify('juzhuo',$data); } public function testZeheng() { $provider = new refill\zeheng\RefillOil([]); // $resp = $provider->add(1000111100021211884, mtopcard\SinopecCard, 100, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '45951620814813332604']); $data = '{"extOrderId":"45951620814813332604","orderId":"R2021051218240000192928","salePrice":"96.8000","sign":"0d6b9641eaf8d36ecba82cfefc6aa307","state":"4"}'; $input = json_decode($data, true); refill\RefillFactory::instance()->notify('zeheng',$input); } public function testXiaoniu() { $provider = $this->getProvider('xiaoniu','RefillOil'); // $resp = $provider->add(1000111100021211884, mtopcard\SinopecCard, 500, ['order_sn' => $this->make_sn()]); $resp = $provider->query(['order_sn' => '15981632813532634860']); // $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"}'; // $input = json_decode($data, true); // refill\RefillFactory::instance()->notify('xiaoniu',$input); // $resp = $provider->balance(); } public function testYingdian() { $provider = $this->getProvider('yingdian','RefillOil'); $resp = $provider->balance(); // $resp = $provider->add(1000111100021211884, mtopcard\SinopecCard, 200, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '94691626688509004979']); // $resp = $provider->query(['order_sn' => '45671626687631917892']); // $data = '{"orderNo":"94691626688509004979","vouchers":"[\"2421071918070053\"]","orderId":"63400811-e877-11eb-a89f-00163e147a9b","spOrderNo":"052423YK241720210719175503603473","status":"SUCCESS"}'; // $input = json_decode($data, true); // refill\RefillFactory::instance()->notify('yingdian',$input); } public function testZhenqi() { $provider = new refill\zhenqi\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '42611626267945146350']); // $data = '{"out_trade_no":"14001626266194932132","create_time":"1626266201","sp_order_no":"110103353232107142044550619272","status":"1","sign":"3C2F8ED40EEB9151D2117E2DA1FA64AA"}'; // $input = json_decode($data, true); // refill\RefillFactory::instance()->notify('zhenqi',$input); $resp = $provider->balance(); } public function testYunsuoyaofs() { $provider = new refill\yunsuoyaofs\RefillPhone([]); // $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '85681626322286098163']); // $data = '{"orderid":"AMU21071512111544162","sporderid":"85681626322286098163","userid":"10002671","merchantsubmittime":"20210715121132","resultno":"9","parvalue":"50","remark1":"","payno":"","fundbalance":"-47.7","sign":"45ECFF26E84F7DC3BFFDCFAFF3B1E561"}'; // $input = json_decode($data, true); // refill\RefillFactory::instance()->notify('yunsuoyaofs',$input); $resp = $provider->balance(); } public function testZhenqi1m() { $provider = new refill\zhenqi1m\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '45611626334593130605']); // $data = '{"out_trade_no":"45611626334593130605","create_time":"1626334606","sp_order_no":"202107152200117311004426885635","status":"1","sign":"CF8EB902F60B76591C898C991361BB4D"}'; // $input = json_decode($data, true); // refill\RefillFactory::instance()->notify('zhenqi1m',$input); $resp = $provider->balance(); } public function testHongxudayz() { $provider = new refill\hongxudayz\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '78221626445316011524']); $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":""}'; $input = json_decode($data, true); refill\RefillFactory::instance()->notify('hongxudayz',$input); } public function testHongxudagy() { $provider = new refill\hongxudagy\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '86521626446475240639']); // $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":""}'; // $input = json_decode($data, true); // refill\RefillFactory::instance()->notify('hongxudagy',$input); $resp = $provider->balance(); } public function testHongxudayz996() { $provider = new refill\hongxudayz996\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '73691626753698522472']); $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":""}'; $input = json_decode($data, true); refill\RefillFactory::instance()->notify('hongxudayz996',$input); } public function testHongxudagy996() { $provider = new refill\hongxudagy996\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '87681626758209689412']); $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":""}'; $input = json_decode($data, true); refill\RefillFactory::instance()->notify('hongxudagy996',$input); } public function testYunchonggong() { // $provider = $this->getProvider('yunchonggong'); // $resp = $provider->balance(); // $resp = $provider->add(15811535608, 4, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '30391661237853787868']); $body = '{"szOrderId":"30391661237853787868","fSalePrice":"28.8","szAgentId":"200005","nFlag":"3","szVerifyString":"5996f052094ed3c7655ed666d66b2804","szPhoneNum":"15811535608","szRtnMsg":"","nDemo":"30"}'; $params = json_decode($body, true); $provider = $this->getProvider('yunchonggong', 'RefillCallback'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testBingdht() { $provider = new refill\bingdht\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '62491626761331174794']); // $data = '{"szOrderId":"62491626761331174794","fSalePrice":"45.25","szAgentId":"200044","nFlag":"3","szVerifyString":"46745191d31b16ee7978a7f5554357d6","szPhoneNum":"18500608333","szRtnMsg":"","nDemo":"50"}'; // $input = json_decode($data, true); // refill\RefillFactory::instance()->notify('bingdht',$input); $resp = $provider->balance(); } public function testYuecheng() { $provider = new refill\yuecheng\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '45101626776884387650']); $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"}'; $input = json_decode($data, true); refill\RefillFactory::instance()->notify('yuecheng',$input); } public function testPrice() { $amounts = [10, 20, 30, 50, 100, 200, 300, 500]; $rate = 0.994; foreach ($amounts as $amount) { $price[] = $amount * $rate; } } public function testCallbackDir() { $path = "/callback"; $file = "/mobile/callback/refill_call.php"; $basename = basename($file); $tmp = "{$path}/{$basename}.php"; return file_exists($tmp); } public function testWeisPhone() { $provider = new refill\weisyd\RefillPhone([]); $resp = $provider->add(17801048874, 4, 10, ['order_sn' => $this->make_sn()]); } public function testXcPhone() { $provider = new refill\xc\RefillPhone([]); $resp = $provider->add(13699279618, 5, 100, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '87961616926444043617']); $params['pay_orderid'] = '87961616926444043617'; $params['pay_iphone'] = '18500608333'; $params['pay_money'] = '100'; $params['wt_orderid'] = '202103281816121070'; $params['status'] = '1'; $params['sign'] = 'f7be2e859a5a6dc7b1a8273361617752'; // refill\RefillFactory::instance()->notify('xc',$params); } public function testAfandPhone() { $provider = new refill\afand\RefillPhone([]); // for ($i = 3; $i > 0; --$i) { $resp = $provider->query(['order_sn' => '540668612768904780']); // } } public function testAfandengPhone() { $provider = new refill\afandeng\RefillPhone([]); // for ($i = 5; $i > 0; --$i) { $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]); // } // $resp = $provider->query(['order_sn' => '20941616115610023539']); // $params['usr'] = 'afandeng'; // $params['ord'] = '20941616115610023539'; // $params['state'] = '2'; // $params['bz'] = ''; // $params['sgn'] = 'BA2C9D379C3EB648A0B7AAB3A21A3F6A'; // refill\RefillFactory::instance()->notify('afandeng',$params); } public function testWantongPhone() { $provider = new refill\wantong\RefillPhone([]); // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]); $resp = $provider->query(['order_sn' => '26061618988575301841']); $data = '{"uid":"97396885","order_no":"26061618988575301841","mobile_order_no":"","phone_number":"13699279618","face_value":"3000","status":"9","sign":"1a019202656cf4feffe715025fab01bf"}'; $input = json_decode($data, true); // refill\RefillFactory::instance()->notify('wantong',$input); } public function testXunyinPhone() { $provider = $this->getProvider('xunyin'); $resp = $provider->balance(); // $resp = $provider->add(17703711950, 6, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '76831617176125893158']); // $xml = '84174059161717329552405714784226充值中0000'; // $resp = $provider->xmlToArray($xml); // if ($resp['Code'] === '0000') { // return [true, $resp['order_no'], false]; // } else { // return [false, $resp['msg'], false]; // } // $params['ext'] = ''; // $params['code'] = '8888'; // $params['sign'] = '428ac223cf3a1f6f3d382aac754e8e17'; // $params['statemes'] = '成功'; // $params['id'] = '76831617176125893158'; // $params['userid'] = '8417'; // $params['operatorid'] = '1000000083421033115583773201'; // $params['status'] = 'SUCCESS'; // refill\RefillFactory::instance()->notify('xunyin',$params); $resp = $provider->balance(); } public function testFenshengPhone() { $file = BASE_HELPER_RAPI_PATH . "/qianqian/RefillOil.php"; if(!file_exists($file)){ Log::record("provider api file={$file} not exist.",Log::DEBUG); return false; } else { require_once($file); Log::record("file={$file} load success.",Log::DEBUG); } $provider = new refill\qianqian\RefillPhone([]); $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '27511617764278021035']); // $datas = '[{"orderNo":"F2104071058069438461","status":"001","consumerNo":"27511617764278021035","voucherNo":"510490688023364042","mobile":"13699279618"}]'; // $datas = json_decode($datas,true); // foreach ($datas as $data) { // refill\RefillFactory::instance()->notify('fensheng',$data); // } } public function testQianqianPhone() { $provider = new refill\qianqian\RefillPhone([]); // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '27511617764278021035']); // $datas = '[{"orderNo":"F2104071058069438461","status":"001","consumerNo":"27511617764278021035","voucherNo":"510490688023364042","mobile":"13699279618"}]'; // $datas = json_decode($datas,true); // foreach ($datas as $data) { // refill\RefillFactory::instance()->notify('fensheng',$data); // } $resp = $provider->balance(); } public function testQianqianmanPhone() { $provider = new refill\qianqianman\RefillPhone([]); // $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '72011621236975003462']); $data = '{"orderNo":"F2105171538062539442","status":"019","consumerNo":"72011621236975003462","voucherNo":null,"mobile":"13699279618"}'; $input = json_decode($data, true); refill\RefillFactory::instance()->notify('qianqianman',$input); } public function testRiyingPhone() { $provider = new refill\riying\RefillPhone([]); // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]); $resp = $provider->query(['ch_trade_no' => '2021041311120213187423105022']); $data = '{"UserId":"10050","SysOrderId":"2021041311120213187423105022","OrderId":"15641618283518423567","State":"4","Timestamp":"1618283565746","VoucherType":"1","VoucherContent":"511009928000087852","Sign":"a6ec70a3ea42baae941528398c6d0a43"}'; $input = json_decode($data, true); // refill\RefillFactory::instance()->notify('riying',$input); } public function testWeishengyPhone() { $provider = new refill\weishengy\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '15551618590601301527']); $data = '{"masId":"699270071532654592","oids":"158877719094,166090529155,158887187476","orderNo":"62411618635377880788","orderPrice":"150.00","phone":"18500608333","sign":"3EC10A32FC4CCC976048E1164D0FCBF6","status":"1","time":"1618643281063","type":"2"}'; $input = json_decode($data, true); refill\RefillFactory::instance()->notify('weishengy',$input); } public function testWailingPhone() { $provider = new refill\wailing\RefillPhone([]); // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]); $resp = $provider->query(['order_sn' => '73241618543784045618']); $data = '{"order_id":"73241618543784045618","mchid":"10045","tel":"13699279618","price":"30.00","sign":"4991de3e40f14c198b8c194455ea021b","status":"0","out_order_id":"0"}'; $input = json_decode($data, true); // refill\RefillFactory::instance()->notify('wailing',$input); } public function testShengyingPhone() { $provider = new refill\shengying\RefillPhone([]); // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]); $resp = $provider->query(['order_sn' => '37571618805115582483']); $data = '{"TaskID":"129636","Mobile":"13699279618","Status":"4","ReportTime":"2021-04-19T12:06:16.050","ReportCode":"1:511531522026586295","OutTradeNo":"37571618805115582483","ReceiptNum":"511531522026586295","Sign":"a7f46a988bc8483091d94130804e5078"}'; $input = json_decode($data, true); // refill\RefillFactory::instance()->notify('shengying',$input); } public function testYunlingPhone() { $provider = new refill\yunling\RefillPhone([]); // $resp = $provider->add(18074608795, 6, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '73791623147517199719']); // $data = '{"orderid":"EAF21060818183032772","sporderid":"73791623147517199719","userid":"10002504","merchantsubmittime":"20210608181912","resultno":"1","parvalue":"30","remark1":"1000000083421060818483137636","payno":"1000000083421060818483137636","fundbalance":"-28.59","sign":"8D77517AC3905ED88BF79EE789A5FA86"}'; // $input = json_decode($data, true); // refill\RefillFactory::instance()->notify('yunling',$input); $resp = $provider->balance(); } public function testZhongstPhone() { // $provider = $this->getProvider('zhongst'); // $resp = $provider->balance(); // $resp = $provider->add(18500608333, 5, 1, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '14941642477572151012']); $body = '{"orderId":"220118114638207211","appId":"Jab1HfumVk","outOrderId":"14941642477572151012","sign":"4e594f9c541667ea5f07c509993932fb","orderStatus":"2","completeTime":"20220118115013","orderDesc":"\u8ba2\u5355\u6210\u529f","ext1":"110103308212201181148550490052"}'; $params = json_decode($body, true); $provider = $this->getProvider('zhongst','RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testXunaoPhone() { $provider = new refill\xunao\RefillPhone([]); // $resp = $provider->add(18074608795, 6, 10, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '40021619431386253803', 'card_no' => 18074608795, 'card_type' => 6]); // $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"}'; // $input = json_decode($data, true); // refill\RefillFactory::instance()->notify('xunao',$input); $resp = $provider->balance(); } public function testYonghePhone() { $provider = new refill\yonghe\RefillPhone([]); // $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '20461619597297972685']); // $data = '{"szOrderId":"20461619597297972685","fSalePrice":"29.955","szAgentId":"200115","nFlag":"2","szVerifyString":"b5c292a13c5e67a9b850eb37239682ae","szPhoneNum":"13699279618","szRtnMsg":"2021042822001139701437383521","nDemo":"30"}'; // $input = json_decode($data, true); // refill\RefillFactory::instance()->notify('yonghe',$input); $resp = $provider->balance(); } public function testJumiPhone() { $provider = new refill\jumikc\RefillPhone([]); // $resp = $provider->add(13699279618, 4, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '12161619768293529384']); // $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"}'; // $input = json_decode($data, true); // refill\RefillFactory::instance()->notify('jumi',$input); $resp = $provider->balance(); } public function testJumiOil() { $provider = new refill\jumi\RefillOil([]); // $resp = $provider->add(1000111100021211884, 2, 100, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '29021620617872685187']); $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"}'; $input = json_decode($data, true); refill\RefillFactory::instance()->notify('jumi',$input); } public function testFengyePhone() { $provider = new refill\fengye\RefillPhone([]); // $resp = $provider->add(18074608795, 6, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '53511620355988978053', 'card_no' => 18074608795, 'card_type' => 6]); $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"}'; $input = json_decode($data, true); refill\RefillFactory::instance()->notify('fengye',$input); } public function testYunsuoyaoPhone() { $provider = new refill\yunsuoyao\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '20431621331092296201']); // $data = '{"orderid":"RLU21051817441937847","sporderid":"20431621331092296201","userid":"10002501","merchantsubmittime":"20210518174858","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-28.74","sign":"426EAC103B79505BAE7AB3F16886F1A8"}'; // $input = json_decode($data, true); // refill\RefillFactory::instance()->notify('yunsuoyao',$input); $resp = $provider->balance(); } public function testAfdPhone() { $provider = new refill\afd\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '71001621233525947994']); $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"}'; $input = json_decode($data, true); refill\RefillFactory::instance()->notify('afd',$input); } public function testLuqianPhone() { $provider = new refill\luqian\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]); $resp = $provider->query(['order_sn' => '2829660672500596314764']); $data = '{"amount":"100","charge_type":"0","code":"1","partner_id":"38","phone":"18500608333","sign":"c2c86cccc73fa991a63c369e683c91f2","partner_order_no":"34101618897099329575","official_order_id":"110103308072104201338340278420"}'; $input = json_decode($data, true); // refill\RefillFactory::instance()->notify('luqian',$input); } public function testAfandfsPhone() { $provider = new refill\afandfs\RefillPhone([]); // $resp = $provider->add(15139608757, 4, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '65101618975926761630']); // $data = '{"amount":"30","charge_type":"2","code":"1","partner_id":"52","phone":"15139608757","sign":"a7f54c1ac3e1af72f9fc849086cc4bec","partner_order_no":"65101618975926761630","official_order_id":"20210421113256628350"}'; // $input = json_decode($data, true); // refill\RefillFactory::instance()->notify('afandfs',$input); $resp = $provider->balance(); } public function testYunlingfsPhone() { $provider = $this->getProvider('yunlingfs'); $resp = $provider->add(18074608795, 6, 10, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '79251623739433607563']); // $data = '{"orderid":"BGC21061514434393910","sporderid":"79251623739433607563","userid":"10002543","merchantsubmittime":"20210615144434","resultno":"1","parvalue":"50","remark1":"20210615144420321813","payno":"20210615144420321813","fundbalance":"-47.65","sign":"6B9B7C15A3F9CBC773562327B6744B1E"}'; // $input = json_decode($data, true); // refill\RefillFactory::instance()->notify('yunlingfs',$input); // $resp = $provider->balance(); } public function testTianchengPhone() { $provider = new refill\tiancheng\RefillPhone([]); // $resp = $provider->add(18074608795, 6, 30, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '15301619399212504464']); // $data = ' {"result":"fail","msg":"0","order":"null","phone_no":"13699279618","amount":"10","op_no":"84801619340283980506","settle":"0","sign":"D64039ED791920B08BDA9DD95700C0E6"}'; // $input = json_decode($data, true); // refill\RefillFactory::instance()->notify('tiancheng',$input); $resp = $provider->balance(); } public function testLingzhPhone() { $provider = new refill\lingzh\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 10, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '59911615124025101286']); $resp = $provider->balance(); // $input['usr'] = 1; // $input['ord'] = '52741615119546453690'; // $input['bz'] = ''; // $input['state'] = 2; // $input['sgn'] = 'FFCBB75C307154DD306F4EC75BB69A6D'; // refill\RefillFactory::instance()->notify('lingzh',$input); } public function testAfandnewPhone() { $provider = new refill\afandnew\RefillPhone([]); // $resp = $provider->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '45371617101073876975', 'ch_trade_no' => '33018443659736309']); $params = '{"amount":"100","carrierOrderNo":null,"mobile":"18500608333","orderNo":"45371617101073876975","orderStatus":3,"sign":"8DE392AD6B4730AD9EE0FC2B95BBDF17","tradeNo":"33018443659736309"}'; $input = json_decode($params, true); refill\RefillFactory::instance()->notify('afandnew', $input); } public function testYifaPhone() { $provider = new refill\yifa\RefillPhone([]); $resp = $provider->add(15120035568, 5, 50, ['order_sn' => $this->make_sn()]); } public function testTianjtOil() { $cardno = 1000111100021211884; $provider = new refill\tianjt\RefillOil([]); $resp = $provider->add($cardno, 2, 500, ['order_sn' => $this->make_sn()]); } public function testWeitPhone() { $provider = new refill\weit\RefillPhone([]); for ($i = 0; $i <= 10; $i++) { $resp = $provider->add(18500608333, 5, 10, ['order_sn' => $this->make_sn()]); } } public function testWeitCB() { $params['sign'] = 'af820c33472f4b571fa0c48483dfb975'; $params['status'] = 0; $params['price'] = 30; $params['op_order_id'] = ''; $params['mch_order_id'] = '900664281823957221'; $params['pt_order_id'] = '2021011802434412825405218901'; $params['pay_type'] = ''; $params['tel'] = 18500608333; $params['mchid'] = 10014; $resp = http_request($this->mReqHost . "/mobile/refill_weit.php", $params, 'POST'); } public function testYifaCB() { $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"}'; $input = json_decode($body, true); refill\RefillFactory::instance()->notify('yifa', $input); } public function testBjbQuery() { $provider = new refill\bjb\RefillPhone([]); $refill_info = ['order_sn' => 110667993758599771, 'ch_trade_no' => 499, 'card_no' => 1000111200005252927]; $resp = $provider->query($refill_info); } public function testXcQuery() { $provider = new refill\xc\RefillPhone([]); $refill_info = ['order_sn' => 950663423236726632, 'ch_trade_no' => 499, 'card_no' => 1000111200005252927]; $resp = $provider->query($refill_info); } public function testTianjtQuery() { $provider = new refill\tianjt\RefillOil([]); $refill_info = ['order_sn' => 680665862267622221, 'ch_trade_no' => 499, 'card_no' => 1000111200005252927]; $resp = $provider->query($refill_info); } public function testSaihuOil() { $provider = new refill\saihu\RefillOil([]); $resp = $provider->add(1000111100021211884, 2, 100, ['order_sn' => $this->make_sn()]); } public function testBdtOil() { $provider = new refill\bdt\RefillOil([]); $resp = $provider->add(1000111100021211884, 2, 100, ['order_sn' => '200229600556618886']); } public function testGFTDOil() { $provider = new refill\gftd\RefillOil([]); $resp = $provider->add(1000111100020445281, mtopcard\SinopecCard, 100, ['order_sn' => $this->make_sn()]); } public function testYichangtOil() { $provider = $this->getProvider('yichangt','RefillOil'); // $resp = $provider->balance(); $resp = $provider->add(1000111100021211884, mtopcard\SinopecCard, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '86471642400354465488']); } public function testYichangt_hf() { $provider = $this->getProvider('yichangt_hf'); // $resp = $provider->balance(); $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]); // $resp = $provider->query(['order_sn' => '33161643533975771522']); } public function testYichangt_doubi() { $provider = $this->getProvider('yichangt_doubi'); // $resp = $provider->balance(); // $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']; $card_no = ['WK6788','575547903','1249835915','1943707492','LYYY520999','a88254587','45871584136','1877477562','1983377511','22291865790','1617206604','yy8672','1179363707','1770307081','Kurama..','Kakin0821','linxiaomi882','996407176','dyoehdm1c5sm']; foreach ($card_no as $no) { $order_sn = $this->make_sn(); $resp = $provider->add($no, mtopcard\ThirdRefillCard, 100, ['order_sn' => $order_sn]); $order_sns[] = $order_sn; } $order_sns = json_encode($order_sns); Log::record("{$order_sns}"); // $resp = $provider->query(['order_sn' => '78111640843635846927']); } public function testGFTDCB() { $data = '{"channelOrderNumber":"79091610959059372019","orderNumber":"GYFL1610959060397001","message":"充值成功","storage":"881036222bd8f067ff47d248c75f4c8d","voucher":"","status":101}'; $url = "http://192.168.1.220/mobile/refill_gftd.php?" . $data; $resp = http_post_data($url, $data, ['Content-Type: application/json;charset=UTF-8;', 'Accept:application/json;charset=UTF-8;']); } public function testJiecPhone() { $provider = new refill\jiec\RefillPhone([]); $resp = $provider->add('18500608333', 5, 30, ['order_sn' => $this->make_sn()]); } public function testBxtwtCB() { $data = '{"order_number":18219726,"shipping_status":4,"shipping_status_desc":"发货失败","shipping_status_message":"","sign":"863b4d972f2a4d39a9af7396879116c4","voucher":"","vouchertype":"","voucherurl":"","tradeNo":"100662475851197741"}'; } public function testTianjtJDVerify() { $data = 'onlystr=920661883198026632&sign=533151e3f0dff5f507786aabc37b18f7&amt=100¬ifyurl=https%3A%2F%2Fwww.xyzshops.cn%2Fmobile%2Frefill_tianjt.php&jdno&cardtype=Sinoepc&batchid=26106&cardno=1000111100020654226&orgid=1590993600&status=3'; $url = "http://192.168.1.220/mobile/refill_tianjt.php?" . $data; $resp = http_request($url); } public function testSuhcPDD() { $data = 'onlystr=820663525320005221&pddno&sign=4b1e8645f7541ced34855779448d9d52&amt=100¬ifyurl=https%3A%2F%2Fwww.xyzshops.cn%2Fmobile%2Frefill_suhcpdd.php&cardtype=Sinoepc&batchid=3&cardno=1000111100020445281&orgid=1590993600&status=2'; $url = "https://www.xyzshops.cn/mobile/refill_suhcpdd.php?" . $data; $resp = http_request($url); } public function testSuhcTMVerify() { $data = 'onlystr=180662473867058221&sign=5ff5f95d54a89e78dbb49923f6b20c08&amt=100¬ifyurl=https%3A%2F%2Fwww.xyzshops.cn%2Fmobile%2Frefill_suhctm.php&cardtype=Sinoepc&batchid=3&cardno=1000111100020445281&orgid=1590993600&status=3'; $url = "https://www.xyzshops.cn/mobile/refill_suhctm.php?" . $data; $resp = http_request($url); } public function testBeixtVerify() { $data = '{"order_number":18219726,"shipping_status":4,"shipping_status_desc":"发货失败","shipping_status_message":"","sign":"863b4d972f2a4d39a9af7396879116c4","voucher":"","vouchertype":"","voucherurl":"","tradeNo":"100662475851197741"}'; $url = "https://www.xyzshops.cn/mobile/refill_bxtwt.php"; $headers = ['Content-Type: application/json']; $resp = http_post_data($url, $data, $headers); } public function testInput() { $input = fopen("php://input", "rw"); file_put_contents($input, 'xxxx'); $content = file_get_contents('php://input'); } public function testUrl() { $data = 'onlystr=190661874318128632&sign=9eb60765c356341fd41c9bec6526f46a&amt=1000¬ifyurl=https%3A%2F%2Fwww.xyzshops.cn%2Fmobile%2Frefill_suhc.php&jdno&cardtype=Sinoepc&batchid=25940&cardno=1000111100012304048&orgid=1590993600&status=2'; $params = preg_split('/&/', $data); foreach ($params as $pair) { $kv = explode('=', $pair); $count = count($kv); if ($count === 1) { $key = $kv[0]; $val = ""; } elseif ($count === 2) { $key = $kv[0]; $val = $kv[1]; } else { continue; } Log::record("{$key}:{$val}", Log::DEBUG); } } public function testAddoil() { $url = $this->mReqHost . "/mobile/index.php"; $notifyurl = 'http://121.89.196.45/mobile/signature.php'; $params = ['mchid' => $this->mMchid, 'cardno' => '1000111100020445281', 'amount' => "100", "act" => "refill", "op" => "add", 'order_sn' => $this->make_sn(), 'notifyurl' => $notifyurl]; $resp = $this->send_md5($url, $params); Log::record($resp, Log::DEBUG); } public function testBalance() { $url = $this->mReqHost . "/mobile/index.php"; $params = ['mchid' => 1092, "act" => "refill", "op" => "balance"]; $resp = $this->send_md5($url, $params); Log::record($resp, Log::DEBUG); } public function testNotify() { $params = [ "mchid" => 10202, "order_sn" => '21090216132600003_11675', "amount" => '30.00',//intval($refill_info['refill_amount'] + 0.05), "cardno" => 18639492164, "trade_no" => 8693160683914496896438, "idcard" => "", "card_name" => "", 'official_sn' => "", 'message' => "匹配不到合适的充值通道", "state" => 'CANCEL']; $sign = $this->md5_sign($params,'KxK9f3yaBDOXVwvuOKDozvQ9Mt1CoqRX'); $notify_url = 'https://openapi-gateway-test.bbinsure.cn/ants_charge/v1/charge/order/notify/yeziOrderNew/1140'; $resp = http_request($notify_url, $params, 'POST'); } public function testAddPhoe() { $url = $this->mReqHost . "/mobile/index.php"; $params = ['mchid' => $this->mMchid, 'cardno' => '', 'amount' => 100, "act" => "refill", "op" => "add", 'order_sn' => '', 'notifyurl' => "https://www.baoyung.com/api/unionservice/yezicharge"]; Log::record(json_encode($params), Log::DEBUG); // $resp = $this->send_md5($url, $params); } public function testProxyHelper() { $phone = '13911129867'; $amount = 100; $url = $this->mReqHost . "/mobile/index.php"; $params = ['mchid' => $this->mMchid, 'cardno' => $phone, 'amount' => $amount, "act" => "refill", "op" => "add", 'order_sn' => $this->make_sn(), 'notifyurl' => "https://xxx"]; $proxy = new refill_proxy("xxx"); $resp = $proxy->send($url, $params); } public function testGoods() { $req_url = $this->mReqHost . '/mobile/index.php'; $params = ['mchid' => $this->mMchid, "act" => "refill", "op" => "goods"]; $resp = $this->send_md5($req_url, $params); } public function testQueryFactory() { refill\RefillFactory::instance()->query(295); } public function testQuery() { //$req_url = 'https://www.xyzshops.cn/mobile/index.php'; // $notifyurl = 'https://www.xyzshops.cn/mobile/signature.php'; $req_url = BASE_SITE_URL . '/mobile/index.php'; $notifyurl = 'https://www.xyzshops.cn/mobile/signature.php'; $params = ['mchid' => 1, "act" => "refill", "op" => "query", 'order_sn' => "13281476"]; $resp = $this->send_md5($req_url, $params); } public function testRemoveSession() { $resp = http_request(BASE_SITE_URL . "/mobile/signature.php", [], 'POST'); } public function testTianjtCB() { // $notifyurl = BASE_SITE_URL . "/mobile/refill_tianjt.php"; $notifyurl = "https://www.xyzshops.cn/mobile/refill_tianjt.php"; // $notifyurl = "https%3A%2F%2Fwww.xyzshops.cn%2Fmobile%2Frefill_tianjt.php"; $params = ['onlystr' => '690665858589475818', 'amt' => 1000, 'jdno' => '', 'notifyurl' => $notifyurl, 'cardtype' => 'Sinoepc', 'batchid' => 30589, 'cardno' => '1000113300007993287', 'orgid' => '1590993600', 'status' => 3]; $sign = $this->md5_sign($params); $params['sign'] = $sign; $resp = http_request($notifyurl, $params, 'POST'); Log::record($resp, Log::DEBUG); } public function testBJBCB() { $params = [ 'usr' => '13699279618', 'ord' => '710662733975412771', 'state' => '2', 'bz' => '', 'sgn' => 'AC9AFD254DE682D8440A97CA68B992DA' ]; $resp = http_request("https://www.xyzshops.cn/mobile/refill_bjb.php", $params, 'POST'); } public function testJiecCB() { $params['result'] = 'fail'; $params['msg'] = '0'; $params['order'] = 'null'; $params['phone_no'] = '18500608333'; $params['amount'] = '30.00'; $params['op_no'] = '800663597981819221'; $params['sign'] = '2510046895e8e12322c8a32547905ee9'; $resp = http_request($this->mReqHost . "/mobile/refill_jiec.php", $params, 'POST'); } public function testZFKJ() { //带签名参数:mchid=1090&act=refill&op=add&cardno=100112121212212133 //&amount=10&order_sn=PH2012261356569433& //notifyurl=https%3A%2F%2Fqzcz.edusahoo.com.cn%2Findex%2Findex%2Fcallback //&sign=4a3ac5f9706e64aa70c6cab0fc5839d3 $params = ['mchid' => 1090, 'cardno' => '100112121212212133', 'amount' => '10', "act" => "refill", "op" => "add", 'order_sn' => 'PH2012261356569433', 'notifyurl' => 'https://qzcz.edusahoo.com.cn/index/index/callback']; $resp = $this->send_md5(BASE_SITE_URL . '/mobile/index.php', $params); } protected function check_empty($value) { if (!isset($value)) return true; if ($value === null) return true; if (trim($value) === "") return true; return false; } public function testcreateSign() { $params['act'] = 'refill'; $params['amount'] = '30'; $params['cardno'] = '18111516552'; $params['mchid'] = '10179'; $params['notifyurl'] = 'http://czapi2.1jinb.net/YeZiHCCallBackOrderServlet'; $params['op'] = 'add'; $params['order_sn'] = 'JFNOR10835056877'; $sign = $this->md5_sign($params); } public function testCheckphone() { $check = function ($phone) { $url = 'https://mobileempty.shumaidata.com/mobileempty'; $params['mobile'] = $phone; $headers = array(); array_push($headers, "Authorization:APPCODE " . '8f92d951293f4d2ea48ff86d5a70c537'); $resp = http_request($url, $params, 'GET', false, $headers); $resp = json_decode($resp, true); if ($resp['success'] == true && $resp['code'] == 200) { Log::record("data phone:{$phone} , status : {$resp['data']['status']}", Log::DEBUG); if (in_array($resp['data']['status'], [0, 3, 4, 5])) { return false; } } else { Log::record("data phone:{$phone} , 不支持的号段", Log::DEBUG); } }; $check(17801048874); } public function testCtSign() { $params['act'] = 'refill'; $params['op'] = 'add'; $params['mchid'] = '10198'; $params['cardno'] = '18696902060'; $params['amount'] = '30'; $params['order_sn'] = '163782007236900000878'; $params['notifyurl'] = 'http://open.apiwater.xyz:20801/'; $sign = $this->md5_sign($params,'b9b30f57eac34a398a7534021fa23a16'); } private function md5_sign($params,$key = '') { ksort($params); $body = ""; $i = 0; foreach ($params as $k => $v) { if (false === $this->check_empty($v) && "@" != substr($v, 0, 1)) { if ($i == 0) { $body .= "{$k}" . "=" . urlencode($v); } else { $body .= "&" . "{$k}" . "=" . urlencode($v); } $i++; } } $body .= "&key={$key}"; return md5($body); } public function testCallMech() { $logic = Logic('queue'); $logic->NotifyMerchantComplete(['order_id' => 18171, 'manual' => true]); } //docker-compose run phpcli php /var/www/html/phpunit-9.2.5.phar --filter "/(TestRefill::testCallMech)( .*)?$/" --test-suffix TestRefill.php /var/www/html/test private function send($url, $params) { $mchid = $params['mchid']; $pri_key = BASE_DATA_PATH . "/api/merchant/key/{$mchid}_pri.pem"; $key = file_get_contents($pri_key); $pri = openssl_get_privatekey($key); $body = $this->body($params); openssl_sign($body, $signed, $pri); $sign = base64_encode($signed); $params['sign'] = $sign; $resp = http_request($url, $params, 'POST'); Log::record("resp:{$resp}", Log::DEBUG); } private function send_md5($url, $params) { $body = $this->body($params); $body .= "&key={$this->mKey}"; $params['sign'] = md5($body); $resp = http_request($url, $params, 'POST'); Log::record("resp:{$resp}", Log::DEBUG); return $resp; } public function testCardType() { $cardno = '1000111100021211884'; $ret = preg_match('/^1[0-9]{18}$/', $cardno, $matches); } public function testMtrand() { } public function testHttpRefill() { $mchid = '000001'; $pri_key = BASE_DATA_PATH . "/api/merchant/key/{$mchid}_pri.pem"; $key = file_get_contents($pri_key); $pri = openssl_get_privatekey($key); $params = ['MCHID' => $mchid, 'cardno' => '1000111100021211884', 'amt' => "100", "act" => "refill", "op" => "addoil"]; $body = $this->body($params); openssl_sign($body, $signed, $pri); $sign = base64_encode($signed); $params['sign'] = $sign; $resp = http_request(BASE_SITE_URL . "/mobile/index.php", $params, 'POST'); } private function body($params) { ksort($params); $body = ""; $i = 0; foreach ($params as $k => $v) { if (false === $this->checkEmpty($v) && "@" != substr($v, 0, 1)) { if ($i == 0) { $body .= "{$k}" . "=" . urlencode($v); } else { $body .= "&" . "{$k}" . "=" . urlencode($v); } $i++; } } return $body; } private function checkEmpty($value) { if (!isset($value)) return true; if ($value === null) return true; if (trim($value) === "") return true; return false; } public function testKsort() { $age = ["Peter" => "35", "Ben" => "37", "Joe" => "43"]; ksort($age); foreach ($age as $x => $x_value) { echo "Key=" . $x . ", Value=" . $x_value; echo "
"; } } public function testip() { $model_merchant = Model('merchant'); $merchant_info = $model_merchant->getMerchantInfo(['mchid' => 1]); $ipwhitelist = unserialize($merchant_info['ip_white_list']); $res = json_encode($ipwhitelist); } //测试向内部店提交订单,可先屏蔽其它充值通道 public function testAddoilToInnerStore() { $url = $this->mReqHost . "/mobile/index.php"; $notifyurl = BASE_SITE_URL . '/mobile/signature.php'; $params = ['mchid' => 1, 'cardno' => '1000111100020445281', 'amount' => "1000", "act" => "refill", "op" => "add", 'order_sn' => $this->make_sn(), 'notifyurl' => $notifyurl]; $resp = $this->send_md5($url, $params); Log::record($resp, Log::DEBUG); } public function testRefillInnerCB() { $params = ['state_type' => 'order_cancel', 'order_id' => 311, 'channel_name' => 'lx']; $resp = http_request(BASE_SITE_URL . '/mobile/refill_inner.php', $params, 'POST'); } public function testArgs() { Log::record($_SERVER['argv'], Log::DEBUG); } public function testCall() { $order_id = 14974; QueueClient::async_push("NotifyMerchantComplete", ['order_id' => $order_id, 'manual' => true], 10); } public function testSyncconfig() { $name_val_cfg = function ($items) { $result = []; foreach ($items as $item) { $name = $item->name(); $result[$name] = $item; } return $result; }; $name_val_row = function ($items) { $result = []; foreach ($items as $item) { $name = $item['name']; $result[$name] = $item; } return $result; }; $match = function ($all, $cur) { $insert = []; foreach ($all as $key => $value) { if (!array_key_exists($key, $cur)) { $insert[] = $key; } } return $insert; }; $inserter = function ($mod, $type, $names) { foreach ($names as $name) { $data = ['name' => $name, 'type' => $type]; $mod->insert($data); } }; $provider = refill\RefillFactory::instance()->providers(); $oils = $name_val_cfg($provider['oil']); $phones = $name_val_cfg($provider['phone']); $mod_prov = Model('refill_provider'); $oil_items = $mod_prov->getProviderList(['type' => 1]); $oil_items = $name_val_row($oil_items); $oil_inserts = $match($oils, $oil_items); $phone_items = $mod_prov->getProviderList(['type' => 2]); $phone_items = $name_val_row($phone_items); $phone_inserts = $match($phones, $phone_items); $inserter($mod_prov, 1, $oil_inserts); $inserter($mod_prov, 2, $phone_inserts); } public function testStat() { $model_refill_order = Model('refill_order'); $stat = Model('')->table('refill_order,vr_order')->join('inner') ->on('refill_order.order_id=vr_order.order_id') ->field('sum(refill_amount) as refill_amounts , sum(channel_amount) as channel_amounts , sum(mch_amount) as mch_amounts') ->where([])->select(); } public function testRefillGoods() { $goods = refill\RefillFactory::instance()->goods(); } private function make_mobile() { $no = "1" . mt_rand(3000000000, 3999999999); return $no; } private function refill_info($card_no, $card_type) { $data = rcache($card_no, 'cardrefill-'); if (empty($data)) { $mod_topcard = Model('topcard'); $ret = $mod_topcard->get_card($card_no); if (empty($ret)) { $bind_phone = $this->make_mobile(); $mod_topcard->add($card_no, $card_type, time(), $bind_phone); $data['bind_phone'] = $bind_phone; $data['refill_time'] = time(); $data['times'] = 0; wcache($card_no, $data, 'cardrefill-'); } else { $val = $ret[0]; $data['bind_phone'] = $val['bind_phone']; $data['refill_time'] = time(); $data['times'] = 0; } } return $data; } public function testGetMobile() { $card_no = '1000119000001679247'; $card_type = 1; $info = $this->refill_info($card_no, $card_type); } private function check_mchorder($mchid, $mch_order) { if (empty($mch_order)) { return true; } else { $refill_order = Model('refill_order'); $ret = $refill_order->getOrderInfo(['mchid' => $mchid, 'mch_order' => $mch_order]); return empty($ret); } } public function testCheckMchorder() { $ret = $this->check_mchorder(1, '13281475'); } public function testMakemobile() { $mobile = refill\util::make_mobile(); $ret = refill\util::set_black('1000111100020445281'); } public function testLoadBlack() { $path = BASE_DATA_PATH . "/log"; $names = ['20210119-mobile.log', '20210120-mobile.log', '20210121-mobile.log', '20210122-mobile.log', '20210123-mobile.log', '20210124-mobile.log', '20210125-mobile.log']; foreach ($names as $name) { $file_name = $path . "/" . $name; refill\util::black_from_log($file_name); } } public function testStats() { $date = date('Y-m-d', time()); $today = strtotime("{$date}"); $times_begin = function ($start) { $times = []; $begin = $start; for ($i = 0; $i < 7; $i++) { $times[] = $begin; $begin -= 86400; } return $times; }; $reader = function ($mchid, $time) { $cond['mchid'] = $mchid; $cond['inner_status'] = 0; $cond['refill_order.order_time'] = ['between', [$time, $time + 86400 - 1]]; $items = Model('')->table('refill_order,vr_order')->join('inner') ->on('refill_order.order_id=vr_order.order_id') ->field('count(*) as order_count, vr_order.order_state, sum(mch_amount) as mch_amounts') ->group('vr_order.order_state') ->where($cond)->select(); return $items; }; $begins = $times_begin($today); $mchid = 10096; // $states = rcache($this->mchid() , 'refillstat-'); $states = unserialize($states ?? ""); if (empty($states)) $states = []; $result = []; $cache = []; foreach ($begins as $begin) { if (array_key_exists($begin, $states)) { $item = $states[$begin]; } else { $item = $reader($mchid, $begin); } $result[$begin] = $item; //判断item 中充值中的状态是否为0,为0的情况下放进cache $cache = $item; } wcache($this->mchid(), $cache, 'refillstat-'); return $result; } public function testNotifyx() { $mch_cache = rcache("merchant-notify", 'refill-'); $caches = empty($mch_cache['data']) ? [] : unserialize($mch_cache['data']); $new_caches = []; $merchants = Model('merchant')->getMerchantList([], '', '', 'merchant.*,member.available_predeposit', "0,1000"); foreach ($merchants as $merchant) { $mchid = $merchant['mchid']; $phone = $merchant['contact_phone'] ?? ""; $available_pd = intval($merchant['available_predeposit']); $alarm_pd = intval($merchant['alarm_amount']) < 10000 ? 10000 : intval($merchant['alarm_amount']); if (array_key_exists($mchid, $caches)) { $mch_cache = $caches[$mchid]; } else { $mch_cache = ['last_time' => 0, 'send_count' => 0]; } if (!empty($phone) && ($available_pd < $alarm_pd)) { $counts = $mch_cache['send_count']; if (($mch_cache['last_time'] + 300 < time()) && $counts < 5) { $mch_cache = ['last_time' => time(), 'send_count' => $counts + 1]; QueueClient::push('sendSMS', ['mobile' => $merchant['contact_phone'], 'type' => 'balance_warning', 'datas' => [date("m月d日H时"), $merchant['available_predeposit']]]); } } else { $mch_cache = ['last_time' => 0, 'send_count' => 0]; } $new_caches[$mchid] = $mch_cache; } wcache("merchant-notify", ['data' => serialize($new_caches)], 'refill-'); } public function testReadChannel() { refill\RefillFactory::instance()->read_channel(); } public function testAllow() { $allow = refill\RefillFactory::instance()->allow(10096, 1, 100); } public function testCheckData() { $str = '|2|110667993758599771-充值失败|'; // $str = '0|提交成功|-36557.7400'; // if(preg_match( '/^-*[0-9]{1,3}\|[\x{4e00}-\x{9fa5}]+\|-*[0-9]+\.*[0-9]+$/u',$str,$matches)) { // return true; // } // if(preg_match('/^[0-3]\|[0-9]+-*[\x{4e00}-\x{9fa5}]+\|[0-9]*$/u',$str,$matches)){ // return true; // } // return false; $resp = ltrim($str, '|'); $resp = explode('|', $resp); if (count($resp) != 3) { return [false, '返回值错误']; } } public function testErrre() { $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}'; $ret = preg_match('/[\w\W]+"channelOrderNumber":"(?P[^"]+)"[\w\W]+"message":"(?P[\x{4e00}-\x{9fa5}]+)"[\w\W]+"status":109/u', $line, $matches); } public function testExpolode() { $x = "HTTP-504"; [$type,$code] = explode('-',$x); } public function testMchctl() { $ctl = new refill\mchctl(); } public function testAsyncadd() { $x = \refill\util::async_add(['xxxx' => 1],4); } private function getProvider($name,$type = 'RefillPhone') { $file = BASE_HELPER_RAPI_PATH . "/$name/{$type}.php"; if(!file_exists($file)){ Log::record("provider api file={$file} not exist.",Log::DEBUG); return false; } else { require_once($file); Log::record("file={$file} load success.",Log::DEBUG); } $class_name = "refill\\{$name}\\{$type}"; if (class_exists($class_name, false)) { $caller = new $class_name([]); return $caller; } else { $error = "Base Error: class {$class_name} isn't exists!"; Log::record($error, Log::ERR); return false; } } public function testOrderExist() { $refill_order = Model('refill_order'); $ret = $refill_order->exist(10116,'Yzb20210825111251415'); } public function testRGoods() { $goods_list = refill\RefillFactory::instance()->goods(); } public function testCanbu() { $notify = function ($resp) { if (empty($resp)) { return [false, '网络错误']; } else { Log::record($resp, Log::DEBUG); $resp = json_decode($resp, true); if (empty($resp)) { return [false, '网络错误']; } if($resp['code'] == 1) { $status = $resp['data']['status']; if ($status == 'success') { $order_state = ORDER_STATE_SUCCESS; } elseif ($status == 'failed') { $order_state = ORDER_STATE_CANCEL; } elseif ($status == 'wait') { $order_state = ORDER_STATE_SEND; } else { return [false, $status]; } return [true, $order_state]; } elseif($resp['code'] == -1 && $resp['msg'] == '订单不存在') { return [true, ORDER_STATE_NOEXIST]; } else { return [false, $resp['msg']]; } } }; $resp = '{"code":1,"msg":"查询成功","data":{"systemOrderNo":"2049420687473912283808","agentOrderNo":"s16341299122819479569112","phone":"18571522718","itemName":"UNICOM","itemFacePrice":"50","status":0,"description":"待处理","amount":"47.2500","officialOrderNo":""}}'; $ret = $notify($resp); } public function testShenzhoudzfy_Balance() { $provider = $this->getProvider('shenzhoudzfy'); [$succ, $val] = $provider->balance(); } public function testShenzhouzfy_Add() { $provider = $this->getProvider('shenzhoudzfy'); $resp = $provider->add(13911129867, 4, 10, ['order_sn' => $this->make_sn()]); } public function testGuitongdianz_Balance() { $provider = $this->getProvider('guitongdianz'); [$succ, $val] = $provider->balance(); } public function testGuitongdianz_Add() { $provider = $this->getProvider('guitongdianz'); $resp = $provider->add(13911129867, 4, 10, ['order_sn' => $this->make_sn()]); } public function testWogoudianzijuanFy_Balance() { $provider = $this->getProvider('wogoudianzijuan_fy'); [$succ, $val] = $provider->balance(); } public function testWogoudianzijuanFy_Add() { $provider = $this->getProvider('wogoudianzijuan_fy'); $resp = $provider->add(13911129867, 4, 10, ['order_sn' => $this->make_sn()]); } public function testWogoukongcfeiy_Balance() { $provider = $this->getProvider('wogoukongcfeiy'); [$succ, $val] = $provider->balance(); } public function testWogoukongcfeiy_Add() { $provider = $this->getProvider("wogoukongcfeiy"); $resp = $provider->add(13581540213, 4, 10, ['order_sn' => $this->make_sn()]); } public function testWangcxdzjfeiy_Balance() { $provider = $this->getProvider('wangcxdzjfeiy'); [$succ, $val] = $provider->balance(); } public function testWangcxdzjfeiy_Add() { $provider = $this->getProvider("wangcxdzjfeiy"); $resp = $provider->add(13911129867, 4, 10, ['order_sn' => $this->make_sn()]); } public function testXunyuan_Balance() { $provider = $this->getProvider('xunyuan'); [$succ, $val] = $provider->balance(); } public function testFulunoy_Balance() { $provider = $this->getProvider('fulunoy'); [$succ, $val] = $provider->balance(); } public function testFulunoy_Add() { $provider = $this->getProvider("fulunoy"); $resp = $provider->add(13911129867, 4, 10, ['order_sn' => $this->make_sn()]); } public function testXuyoufs_Add() { $provider = $this->getProvider("xuyou_sdm"); $resp = $provider->add(18074608795, 6, 100, ['order_sn' => $this->make_sn(), 'province' => "肥西供电公司", 'product_code' => 9990001]); } public function testXuyoufs_Balance() { $provider = $this->getProvider('xuyou_sdm'); [$succ, $val] = $provider->balance(); } public function testYoulaithreefy_Balance() { $provider = $this->getProvider('youlaifeiythree'); [$succ, $val] = $provider->balance(); } public function testYoulaithreefy_Add() { $provider = $this->getProvider('youlaifeiythree'); $resp = $provider->add(13911129867, 4, 10, ['order_sn' => $this->make_sn()]); } public function testBaibaoquanyi_Balance() { $provider = $this->getProvider('baibaoquanyi'); [$succ, $val] = $provider->balance(); } public function testYoulaicomet_Balance() { $provider = $this->getProvider('youlaicomet'); [$succ, $val] = $provider->balance(); } public function testRenyueoil_Balance() { $provider = $this->getProvider('renyueoil', 'RefillOil'); [$succ, $val] = $provider->balance(); } public function testRenyueoil_Add() { $provider = $this->getProvider('renyueoil', 'RefillOil'); $resp = $provider->add(13911129867, 4, 10, ['order_sn' => $this->make_sn()]); } public function testRyuequanyi_Balance() { $provider = $this->getProvider('ryuequanyi'); [$succ, $val] = $provider->balance(); } public function testShengtonghfy_Balance() { $provider = $this->getProvider('shengtonghfy'); [$succ, $val] = $provider->balance(); } public function testLeyou_Balance() { $provider = $this->getProvider('leyou','RefillOil'); [$succ, $val] = $provider->balance(); } public function testLeyou_Add() { $provider = $this->getProvider('leyou','RefillOil'); $net_errno = ''; [$succ, $val, $neterr] = $provider->add('1000111100021211884', 2, 50, ['order_sn'=>'Test-Leyou-Oil'.time()], $net_errno); } public function testLeyou_Query() { $provider = $this->getProvider('leyou','RefillOil'); [$succ, $val] = $provider->query(['order_sn'=>'Test-Leyou-Oil1693375143']); } public function testLeyou_Waterno_By_Voucher() { $watorno1 = $this->Leyou_Waterno_By_Voucher('【中国石化】您尾号为211884的加油卡于08月30日 13时59分充值成功,金额50元,订单号:1623083013592106'); $watorno2 = $this->Leyou_Waterno_By_Voucher('【中国石化】您尾号为211884的加油卡于08月30日 13时59分充值成功,金额50元,订单号1623083013592106'); $watorno3 = $this->Leyou_Waterno_By_Voucher('【中国石化】您尾号为211884的加油卡于08月30日 13时59分充值成功,金额50元,订单号'); $watorno4 = $this->Leyou_Waterno_By_Voucher(''); $watorno5 = $this->Leyou_Waterno_By_Voucher(null); } private function Leyou_Waterno_By_Voucher($voucher):string { $matches = []; $ret = preg_match("/\:(\d+)/",$voucher,$matches); if ($ret === 1 && !empty($matches)){ return $matches[1]; } return ''; } public function testLeyou_CallBack() { $body = '{"username":"guoyan","orderNumber":"Test-Leyou-Oil1693375143","number":"1000111100021211884","money":50,"pay":50.6,"recharge":50,"status":5,"desc":"充值成功","voucher":"voucher","endTime":"2023-08-30 13:59:25","sign":"79fc766ae0eaf6539aef9f7ee3ee1f0f"}'; $params = json_decode($body, true); $provider = $this->getProvider('leyou', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testMingjiangnoy_Sign() { $sign = $this->Mingjiangnoy_Sign([ 'merchantId' => 'MQS00342', 'amt' => 50, 'phone' => '13911129867', 'extOrderId' => 'order-number-1234567890', 'notifyUrl' => 'http://a.b.com/index.php', 'operator' => '移动' ],['operator']); } private function Mingjiangnoy_Sign($params,$ignore_fields = []) { $key = 'PQeC3T3qZSz5CGhbeTVfKuYJfcJzCtnD'; $originalStr = ''; ksort($params); foreach ($params as $field => $val) { if (!empty($val) && !in_array($field, $ignore_fields)) { $originalStr .= $val; } } $originalStr .= $key; return md5($originalStr); } public function testNanjingpushanghf_Balance() { $provider = $this->getProvider('nanjingpushang_hf'); [$succ, $val] = $provider->balance(); } public function testNanjingpushanghf_Add() { $provider = $this->getProvider('nanjingpushang_hf'); $net_errno = ''; [$succ, $val] = $provider->add(13911129867, 4, 1, ['order_sn' => 'TestNanjingpushangfy'.time()], $net_errno); } public function testNanjingpushanghf_Query() { $provider = $this->getProvider('nanjingpushang_hf'); [$succ, $val] = $provider->query(['order_sn' => 'TestNanjingpushangfy1693811532','commit_time'=>time()-300]); } public function testNanjingpushanghf_CallBack() { $body = '{"extOrderId":"TestNanjingpushangfy1693879576","orderId":"R2023090510240000002552","salePrice":"1","sign":"2cbae86e3ea0cca01b15d47c5abba92c","state":"5","exchangeTraded":""}'; $params = json_decode($body, true); $provider = $this->getProvider('nanjingpushang_hf', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testNanjingpushangoil_Balance() { $provider = $this->getProvider('nanjingpushang_oil','RefillOil'); [$succ, $val] = $provider->balance(); } public function testNanjingpushangoil_Add() { $provider = $this->getProvider('nanjingpushang_oil','RefillOil'); $net_errno = ''; [$succ, $val] = $provider->add(1000111100021211884,2, 100, ['order_sn' => 'Testnanjingpushangoil'.time()], $net_errno); } public function testNanjingpushangoil_Query() { $provider = $this->getProvider('nanjingpushang_oil','RefillOil'); [$succ, $val] = $provider->query(['order_sn' => 'Testnanjingpushangoil1693902368','commit_time'=>time()-300]); } public function testNanjingpushangoil_CallBack() { $body = '{"extOrderId":"Testnanjingpushangoil1693903181","orderId":"R2023090516240000008000","salePrice":"","sign":"b157844dcd7ea374c47f0f8fa38417b2","state":"5","exchangeTraded":""}'; $params = json_decode($body, true); $provider = $this->getProvider('nanjingpushang_oil', 'RefillCallBack'); $ret = $provider->verify($params); $resp = $provider->notify($params); } public function testTianxinxqjiay_Balance() { $provider = $this->getProvider('tianxinxqjiay','RefillOil'); [$succ, $val] = $provider->balance(); } public function testLansequany_Balance() { $provider = $this->getProvider('lansequany'); [$succ, $val] = $provider->balance(); } public function testLansequany_Add() { $provider = $this->getProvider('lansequany'); $resp = $provider->add(588073521, 7, 100, [ 'order_sn' => $this->make_sn(), 'goods_id' => 8377, 'product_code' => 'XYZ100747' ]); } public function testKaisinuojy_Balance() { $provider = $this->getProvider('kaisinuojy', 'RefillOil'); [$succ, $val] = $provider->balance(); } public function testKaisinuojy_Add() { $provider = $this->getProvider('kaisinuojy', 'RefillOil'); $resp = $provider->add(13911129867, 4, 10, ['order_sn' => $this->make_sn()]); } public function testxuyouoil_Balance() { $provider = $this->getProvider('xuyou_oil', 'RefillOil'); [$succ, $val] = $provider->balance(); } public function testxuyouoil_Query() { $provider = $this->getProvider("xuyou_oil", 'RefillOil'); [$succ, $state] = $provider->query([ 'mchid' => 1, 'order_sn' => '20001693989216625442', 'commit_time'=>time()-180 ]); } public function testxuyouoil_Add() { $provider = $this->getProvider("xuyou_oil", "RefillOil"); $resp = $provider->add(18074608795,6, 100, ['order_sn' => $this->make_sn(), 'productid' => 990001, 'province'=>12]); } public function testxuyouHf_Balance() { $provider = $this->getProvider('xuyou_hf'); [$succ, $val] = $provider->balance(); } public function testxuyouHf_Add() { $provider = $this->getProvider("xuyou_hf"); $resp = $provider->add(18074608795,6, 100, ['orderid' => $this->make_sn(), 'productid' => 2000001]); } public function testxuyouHf_Query() { $provider = $this->getProvider("xuyou_hf"); [$succ, $state] = $provider->query([ 'mchid' => 1, 'orderid' => '57041693891791297861', 'commit_time'=>time()-180 ]); } public function testxuyouHf_Notify() { $body = '{"number":"18074608795","mchid":"1","orderid":"12131693903272787845","price":"1.0","voucher":"","sign":"65609fff20bdc64cd57b0e5fe6dcba39","oid":449,"status":"3"}'; $params = json_decode($body, true); $provider = $this->getProvider('xuyou_hf', 'RefillCallBack'); $ret = $provider->verify($params); } public function testguoruiHf_add() { $provider = $this->getProvider("guorui_hf"); $resp = $provider->add(18074608795,6, 100, ['requestId' => $this->make_sn(), 'productId' => 10015, 'checkPrice'=>"10.0900"]); } public function testguitongxinxnoy_Balance() { $provider = $this->getProvider('guitongxinxnoy'); [$succ, $val] = $provider->balance(); } public function testguitongxinxnoy_Add() { $provider = $this->getProvider("guitongxinxnoy"); $resp = $provider->add(18074608795,6, 100, ['order_sn' => $this->make_sn()]); } } //docker-compose run phpcli php /var/www/html/phpunit-9.2.5.phar --filter "/(TestRefill::testLoadBlack)( .*)?$/" --test-suffix TestRefill.php /var/www/html/test //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