浏览代码

xyz feimingyu_middle

xiaoyu 2 年之前
父节点
当前提交
f7743c68a8

+ 14 - 0
data/config/xyz/refill.ini.php

@@ -6920,6 +6920,19 @@ $douxun_phone = ['name' => 'douxun', 'store_id' => 252, 'qualitys' => '2',
     ],
     'official_sn' => true, 'refill_type' => 'api'];
 
+$feimingyu_middle_phone = ['name' => 'feimingyu_middle', 'store_id' => 253, 'qualitys' => '1',
+    'amount' => [
+//        10 => [['goods_id' => 8095, 'price' => 9.7, 'quality' => 1, 'card_type' => 'chinamobile']],
+//        20 => [['goods_id' => 8096, 'price' => 19.4, 'quality' => 1, 'card_type' => 'chinamobile']],
+        30 => [['goods_id' => 8097, 'price' => 29.1, 'quality' => 1, 'card_type' => 'chinamobile']],
+        50 => [['goods_id' => 8098, 'price' => 48.5, 'quality' => 1, 'card_type' => 'chinamobile']],
+        100 => [['goods_id' => 8099, 'price' => 97, 'quality' => 1, 'card_type' => 'chinamobile']],
+        200 => [['goods_id' => 8100, 'price' => 194, 'quality' => 1, 'card_type' => 'chinamobile']],
+//        300 => [['goods_id' => 8101, 'price' => 291, 'quality' => 1, 'card_type' => 'chinamobile']],
+//        500 => [['goods_id' => 8102, 'price' => 485, 'quality' => 1, 'card_type' => 'chinamobile']]
+    ],
+    'official_sn' => true, 'refill_type' => 'api'];
+
 $phone_providers = [
 //    ['name' => 'beixt', 'cfg' => $beixt_phone],
 //    ['name' => 'bxtwt', 'cfg' => $bxtwt_phone],
@@ -7129,6 +7142,7 @@ $phone_providers = [
     ['name' => 'weixue_yi', 'cfg' => $weixue_yi_phone],
     ['name' => 'jinfeng_fs', 'cfg' => $jinfeng_fs_phone],
     ['name' => 'douxun', 'cfg' => $douxun_phone],
+    ['name' => 'feimingyu_middle', 'cfg' => $feimingyu_middle_phone],
 
 ];
 $config['phone_providers'] = $phone_providers;

+ 2 - 2
helper/refill/api/xyz/feimingyu_middle/RefillCallBack.php

@@ -1,7 +1,7 @@
 <?php
-namespace refill\feimingyu_high;
+namespace refill\feimingyu_middle;
 
-require_once(BASE_HELPER_RAPI_PATH . '/feimingyu_high/config.php');
+require_once(BASE_HELPER_RAPI_PATH . '/feimingyu_middle/config.php');
 
 use refill;
 class RefillCallBack implements refill\IRefillCallBack

+ 2 - 2
helper/refill/api/xyz/feimingyu_middle/RefillPhone.php

@@ -1,8 +1,8 @@
 <?php
 
-namespace refill\feimingyu_high;
+namespace refill\feimingyu_middle;
 
-require_once(BASE_HELPER_RAPI_PATH . '/feimingyu_high/config.php');
+require_once(BASE_HELPER_RAPI_PATH . '/feimingyu_middle/config.php');
 
 use refill;
 use Log;

+ 4 - 4
helper/refill/api/xyz/feimingyu_middle/config.php

@@ -1,7 +1,7 @@
 <?php
 
 
-namespace refill\feimingyu_high;
+namespace refill\feimingyu_middle;
 
 use mtopcard;
 class config
@@ -11,9 +11,9 @@ class config
     const QUERY_URL= 'http://121.36.242.90:9086/searchpay.do';
     const BALANCE_URL = 'http://121.36.242.90:9086/searchbalance.do';
 
-    const USER_ID= '10002986';
-    const KEY = 'tbrdiE3MZC6BcN2MmHZMMrXhGkfWA6YH';
-    const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_feimingyu_high.php";
+    const USER_ID= '10003008';
+    const KEY = 'k5eiTwJ5wnJAzpbKt6jhQMBWaP4xK4BK';
+    const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_feimingyu_middle.php";
 
     const operator = [
         mtopcard\ChinaMobileCard  => 'yd',

+ 10 - 11
helper/refill/api/xyz/feimingyu_middle/对接文档-yezi.txt

@@ -1,10 +1,10 @@
-账号:005
-88888888
-
-登录名:椰子高价移动
-用户编码:10002986
-密钥:tbrdiE3MZC6BcN2MmHZMMrXhGkfWA6YH
-客户注册和登录地址:http://121.36.242.90:7080/
+账号:008
+登录名:椰子三高
+密码:88888888
+用户编码:10003008
+密钥:k5eiTwJ5wnJAzpbKt6jhQMBWaP4xK4BK
+客户注册和登录地址:
+http://121.36.242.90:7080/
 api接口文档地址:
 https://www.showdoc.com.cn/AQL666666/
 下单地址:
@@ -15,7 +15,6 @@ http://121.36.242.90:9086/searchbalance.do
 http://121.36.242.90:9086/searchpay.do
 
 101687  全国移动话费30元直充
-101688  全国移动话费50元直充
-101689  全国移动话费100元直充
-101690  全国移动话费200元直充
-
+101688	全国移动话费50元直充
+101689	全国移动话费100元直充
+101690	全国移动话费200元直充

+ 4 - 0
mobile/callback/refill_feimingyu_middle.php

@@ -0,0 +1,4 @@
+<?php
+
+refill\util::push_notify('feimingyu_middle',$_POST);
+echo ('OK');

+ 14 - 0
test/TestRefill.php

@@ -2638,6 +2638,20 @@ class TestRefill extends TestCase
 //        $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 testAmingjd()
     {
 //        $provider = new refill\amingjd\RefillPhone([]);