Browse Source

椰子:优仕联2号,椰林:优仕联1号

lowkeyman 1 year ago
parent
commit
a1a94d98e6

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

@@ -10703,6 +10703,43 @@ $taoxun_phone = ['name' => 'taoxun', 'store_id' => 398, 'qualitys' => '2',
     ],
     'official_sn' => true, 'refill_type' => 'api'];
 
+$youshilian_sec_phone = ['name' => 'youshilian_sec', 'store_id' => 400, 'qualitys' => '1',
+    'amount' => [
+//        10 => [
+//            ['goods_id' => 9164, 'price' => 10, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 9164, 'price' => 10, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//        ],
+//        20 => [
+//            ['goods_id' => 9165, 'price' => 20, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 9165, 'price' => 20, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//        ],
+        30 => [
+//            ['goods_id' => 9166, 'price' => 30, 'quality' => 1, 'card_type' => 'chinamobile'],
+            ['goods_id' => 9166, 'price' => 28.11, 'quality' => 1, 'card_type' => 'chinaunicom'],
+        ],
+        50 => [
+            ['goods_id' => 9167, 'price' => 48.45, 'quality' => 1, 'card_type' => 'chinamobile'],
+            ['goods_id' => 9167, 'price' => 46.85, 'quality' => 1, 'card_type' => 'chinaunicom'],
+        ],
+        100 => [
+            ['goods_id' => 9168, 'price' => 96.9, 'quality' => 1, 'card_type' => 'chinamobile'],
+            ['goods_id' => 9168, 'price' => 93.7, 'quality' => 1, 'card_type' => 'chinaunicom'],
+        ],
+        200 => [
+            ['goods_id' => 9169, 'price' => 193.8, 'quality' => 1, 'card_type' => 'chinamobile'],
+            ['goods_id' => 9169, 'price' => 187.4, 'quality' => 1, 'card_type' => 'chinaunicom'],
+        ],
+//        300 => [
+//            ['goods_id' => 9170, 'price' => 300, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 9170, 'price' => 300, 'quality' => 1, 'card_type' => 'chinaunicom']
+//        ],
+//        500 => [
+//            ['goods_id' => 9171, 'price' => 500, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 9171, 'price' => 500, 'quality' => 1, 'card_type' => 'chinaunicom']
+//        ]
+    ],
+    'official_sn' => true, 'refill_type' => 'api'];
+
 $phone_providers = [
 //    ['name' => 'beixt', 'cfg' => $beixt_p hone],
 //    ['name' => 'bxtwt', 'cfg' => $bxtwt_phone],
@@ -11022,6 +11059,7 @@ $phone_providers = [
     ['name' => 'yeyepucnt', 'cfg' => $yeyepucnt_phone],
     ['name' => 'zunni', 'cfg' => $zunni_phone],
     ['name' => 'taoxun', 'cfg' => $taoxun_phone],
+    ['name' => 'youshilian_sec', 'cfg' => $youshilian_sec_phone],
 ];
 $config['phone_providers'] = $phone_providers;
 

+ 38 - 0
data/config/yl/refill.ini.php

@@ -8150,6 +8150,43 @@ $menshang_fs_phone = ['name' => 'menshang_fs', 'store_id' => 312, 'qualitys' =>
     ],
     'official_sn' => true, 'refill_type' => 'api'];
 
+$youshilian_phone = ['name' => 'youshilian', 'store_id' => 313, 'qualitys' => '1',
+    'amount' => [
+//        10 => [
+//            ['goods_id' => 8515, 'price' => 10, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 8515, 'price' => 10, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//        ],
+//        20 => [
+//            ['goods_id' => 8516, 'price' => 20, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 8516, 'price' => 20, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//        ],
+        30 => [
+//            ['goods_id' => 8517, 'price' => 30, 'quality' => 1, 'card_type' => 'chinamobile'],
+            ['goods_id' => 8517, 'price' => 28.11, 'quality' => 1, 'card_type' => 'chinaunicom'],
+        ],
+        50 => [
+            ['goods_id' => 8518, 'price' => 48.45, 'quality' => 1, 'card_type' => 'chinamobile'],
+            ['goods_id' => 8518, 'price' => 46.85, 'quality' => 1, 'card_type' => 'chinaunicom'],
+        ],
+        100 => [
+            ['goods_id' => 8519, 'price' => 96.9, 'quality' => 1, 'card_type' => 'chinamobile'],
+            ['goods_id' => 8519, 'price' => 93.7, 'quality' => 1, 'card_type' => 'chinaunicom'],
+        ],
+        200 => [
+            ['goods_id' => 8520, 'price' => 193.8, 'quality' => 1, 'card_type' => 'chinamobile'],
+            ['goods_id' => 8520, 'price' => 187.4, 'quality' => 1, 'card_type' => 'chinaunicom'],
+        ],
+//        300 => [
+//            ['goods_id' => 8521, 'price' => 300, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 8521, 'price' => 300, 'quality' => 1, 'card_type' => 'chinaunicom']
+//        ],
+//        500 => [
+//            ['goods_id' => 8522, 'price' => 500, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 8522, 'price' => 500, 'quality' => 1, 'card_type' => 'chinaunicom']
+//        ]
+    ],
+    'official_sn' => true, 'refill_type' => 'api'];
+
 $phone_providers = [
 //    ['name' => 'beixt', 'cfg' => $beixt_phone],
 //    ['name' => 'bxtwt', 'cfg' => $bxtwt_phone],
@@ -8409,6 +8446,7 @@ $phone_providers = [
     ['name' => 'xingchuang_fs', 'cfg' => $xingchuang_fs_phone],
     ['name' => 'menshang', 'cfg' => $menshang_phone],
     ['name' => 'menshang_fs', 'cfg' => $menshang_fs_phone],
+    ['name' => 'youshilian', 'cfg' => $youshilian_phone],
 ];
 
 $config['phone_providers'] = $phone_providers;

+ 18 - 0
helper/refill/api/xyz/youshilian_sec/API.MD

@@ -0,0 +1,18 @@
+## 优仕联全国2号
+### 全国账户:
+- 后台:http://8.136.129.136:10181/plat/index
+- 账户:fqs-qg-2
+- 密码:123456
+
+- ID:200063
+- 秘钥:c045b87a829148eda90af079b494ba90
+
+### API
+- 提单地址:http://8.136.129.136:10181/plat/api/old/submitorder
+- 查单地址:http://8.136.129.136:10181/plat/api/old/queryorder
+- 余额查询地址:http://8.136.129.136:10181/plat/api/old/queryBalance
+- 对接文档地址:https://docs.qq.com/doc/DWkV1VkxQVk13eEtQ
+
+### 店铺账号
+- youshilian_sec
+- youshilian_sec67890

+ 51 - 0
helper/refill/api/xyz/youshilian_sec/RefillCallBack.php

@@ -0,0 +1,51 @@
+<?php
+namespace refill\youshilian_sec;
+
+require_once(BASE_HELPER_RAPI_PATH . '/youshilian_sec/config.php');
+
+use refill;
+class RefillCallBack implements refill\IRefillCallBack
+{
+    public function verify($params): bool
+    {
+        $sign = $this->sign($params);
+        if ($params['szVerifyString'] == $sign) {
+            return true;
+        } else {
+            return false;
+        }
+    }
+
+    private function sign($params)
+    {
+        $userid = config::USER_ID;
+        $key = config::KEY;
+        $content = "szAgentId={$userid}&szOrderId={$params['szOrderId']}&szPhoneNum={$params['szPhoneNum']}&nDemo={$params['nDemo']}&fSalePrice={$params['fSalePrice']}";
+        $content .= "&nFlag={$params['nFlag']}&szKey={$key}";
+        return md5($content);
+    }
+
+    public function notify($params)
+    {
+        $status = intval($params['nFlag']);
+        $order_sn = $params['szOrderId'];
+        $order_info = Model('vr_order')->getOrderInfoForNotify(['order_sn' => $order_sn]);
+        if (empty($order_info)) {
+            return [false, false, false, false, ''];
+        }
+        $order_id = $order_info['order_id'];
+
+        if ($status === 2) {
+            $official_sn = strtolower($params['szRtnMsg']) == 'null' ? '' : $params['szRtnMsg'];
+            $data['official_sn'] = $official_sn;
+            Model('refill_order')->edit($order_id, $data);
+            return [$order_id, true, false, true, $official_sn];
+        }
+        elseif ($status === 3) {
+            return [$order_id, false, true, true, ''];
+        }
+        else {
+            return [$order_id, false, false, false, ''];
+        }
+    }
+}

+ 143 - 0
helper/refill/api/xyz/youshilian_sec/RefillPhone.php

@@ -0,0 +1,143 @@
+<?php
+
+namespace refill\youshilian_sec;
+
+require_once(BASE_HELPER_RAPI_PATH . '/youshilian_sec/config.php');
+
+use refill;
+use Log;
+
+class RefillPhone extends refill\IRefillPhone
+{
+    public function __construct($cfgs)
+    {
+        parent::__construct($cfgs);
+    }
+
+    private function req_params(int $phone, int $amount, int $card_type, string $order_sn)
+    {
+        $params['szAgentId'] = config::USER_ID;
+        $params['szOrderId'] = $order_sn;
+        $params['szPhoneNum'] = $phone;
+        $params['nMoney'] = $amount;
+        $params['nSortType'] = config::operator[$card_type];
+        $params['szProductId'] = '';
+        $params['nProductClass'] = 1;
+        $params['nProductType'] = 1;
+        $params['szTimeStamp'] = date("Y-m-d H:i:s");
+        $params['szNotifyUrl'] = config::NOTIFY_URL;
+        return $params;
+    }
+
+    public function add($card_no, $card_type, $amount, $params,&$net_errno = 0)
+    {
+        $order_sn = $params['order_sn'];
+        $params = $this->req_params($card_no, $amount, $card_type, $order_sn);
+
+        $sign = $this->sign($params);
+        $params['szVerifyString'] = $sign;
+
+        $resp = http_request(config::ORDER_URL, $params, 'POST', false, config::ExtHeaders, $net_errno);
+
+        if (empty($resp)) {
+            return [false, '网络错误', true];
+        }
+        else
+        {
+            Log::record($resp, Log::DEBUG);
+            $resp = json_decode($resp, true);
+
+            $nRtn = $resp['nRtn'];
+            if (empty($resp)) {
+                return [false, '网络错误', true];
+            } elseif ($nRtn === 0) {
+                return [true, '', false];
+            } elseif (in_array($nRtn, config::ERR_NOS, true)) {
+                return [false, $resp['szRtnCode'], false];
+            } elseif (in_array($nRtn, [2050, 999], true)) {
+                $net_errno = "HTTP-{$nRtn}";
+                return [false, $resp['szRtnCode'], true];
+            } else {
+                $err = 998;
+                $net_errno = "HTTP-{$err}";
+                return [false, $resp['szRtnCode'], true];
+            }
+        }
+    }
+
+    public function query($refill_info)
+    {
+        $params['szAgentId'] = config::USER_ID;
+        $params['szOrderId'] = $refill_info['order_sn'];
+        $key = config::KEY;
+        $content = "szAgentId={$params['szAgentId']}&szOrderId={$params['szOrderId']}&szKey={$key}";
+        $params['szVerifyString'] = md5($content);
+
+        $resp = http_request(config::QUERY_URL, $params, 'POST', false, config::ExtHeaders);
+
+        if (empty($resp)) {
+            return [false, '网络错误', ''];
+        }
+        else
+        {
+            Log::record($resp, Log::DEBUG);
+            $resp = json_decode($resp, true);
+            if (empty($resp)) {
+                return [false, '网络错误', ''];
+            }
+            $offical_sn = '';
+            $status = $resp['nRtn'];
+            if ($status === 5012) {
+                $offical_sn = $resp['szRtnMsg'];
+                $updata['official_sn'] = $offical_sn;
+                Model('refill_order')->edit($refill_info['order_id'], $updata);
+                $order_state = ORDER_STATE_SUCCESS;
+            } elseif ($status === 5013) {
+                $order_state = ORDER_STATE_CANCEL;
+            } elseif (in_array($status, [5011,5019],true)) {
+                $order_state = ORDER_STATE_SEND;
+            } elseif ($status === 5005 && (time() - $refill_info['commit_time'] >= 300)) {
+                $order_state = ORDER_STATE_NOEXIST;
+            } else {
+                return [false, $resp['szRtnMsg'], $offical_sn];
+            }
+
+            return [true, $order_state, $offical_sn];
+        }
+    }
+
+    public function balance()
+    {
+        $params['szAgentId'] = config::USER_ID;
+        $key = config::KEY;
+        $content = "szAgentId={$params['szAgentId']}&szKey={$key}";
+        $params['szVerifyString'] = md5($content);
+
+        $resp = http_request(config::BALANCE_URL, $params, 'POST', false, config::ExtHeaders);
+
+        if (empty($resp)) {
+            return [false, '网络错误'];
+        }
+        else
+        {
+            Log::record($resp, Log::DEBUG);
+            $resp = json_decode($resp, true);
+            if (empty($resp)) {
+                return [false, '网络错误'];
+            } elseif ($resp['nRtn'] === 0) {
+                return [true, $resp['fBalance']];
+            } else {
+                return [false, $resp['szRtnCode']];
+            }
+        }
+    }
+
+    private function sign($params)
+    {
+        $userid = config::USER_ID;
+        $key = config::KEY;
+        $content = "szAgentId={$userid}&szOrderId={$params['szOrderId']}&szPhoneNum={$params['szPhoneNum']}&nMoney={$params['nMoney']}&nSortType={$params['nSortType']}";
+        $content .= "&nProductClass={$params['nProductClass']}&nProductType={$params['nProductType']}&szTimeStamp={$params['szTimeStamp']}&szKey={$key}";
+        return md5($content);
+    }
+}

+ 27 - 0
helper/refill/api/xyz/youshilian_sec/config.php

@@ -0,0 +1,27 @@
+<?php
+
+
+namespace refill\youshilian_sec;
+
+use mtopcard;
+class config
+{
+    const ORDER_URL = 'http://8.136.129.136:10181/plat/api/old/submitorder';
+    const QUERY_URL= 'http://8.136.129.136:10181/plat/api/old/queryorder';
+    const BALANCE_URL = 'http://8.136.129.136:10181/plat/api/old/queryBalance';
+
+    const USER_ID= '200063';
+    const KEY = 'c045b87a829148eda90af079b494ba90';
+    const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_youshilian_sec.php";
+
+    const operator = [
+        mtopcard\ChinaMobileCard  => 1,
+        mtopcard\ChinaUnicomCard  => 2,
+        mtopcard\ChinaTelecomCard => 3
+    ];
+    const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
+
+    const ERR_NOS = [
+        1000,1001,1003,1004,2001,2002,2003,2020,2021,1006,2030,3003
+    ];
+}

+ 18 - 0
helper/refill/api/yl/youshilian/API.MD

@@ -0,0 +1,18 @@
+## 优仕联全国1号
+### 全国账户:
+- 后台:http://8.136.129.136:10181/plat/index
+- 账户:fqs-qg
+- 密码:123456
+
+- ID:200062
+- 秘钥:0dfbb7a9ae934ef3ae8f2af5afe0653a
+
+### API
+- 提单地址:http://8.136.129.136:10181/plat/api/old/submitorder
+- 查单地址:http://8.136.129.136:10181/plat/api/old/queryorder
+- 余额查询地址:http://8.136.129.136:10181/plat/api/old/queryBalance
+- 对接文档地址:https://docs.qq.com/doc/DWkV1VkxQVk13eEtQ
+
+### 店铺账号
+- youshilian
+- youshilian67890

+ 51 - 0
helper/refill/api/yl/youshilian/RefillCallBack.php

@@ -0,0 +1,51 @@
+<?php
+namespace refill\youshilian;
+
+require_once(BASE_HELPER_RAPI_PATH . '/youshilian/config.php');
+
+use refill;
+class RefillCallBack implements refill\IRefillCallBack
+{
+    public function verify($params): bool
+    {
+        $sign = $this->sign($params);
+        if ($params['szVerifyString'] == $sign) {
+            return true;
+        } else {
+            return false;
+        }
+    }
+
+    private function sign($params)
+    {
+        $userid = config::USER_ID;
+        $key = config::KEY;
+        $content = "szAgentId={$userid}&szOrderId={$params['szOrderId']}&szPhoneNum={$params['szPhoneNum']}&nDemo={$params['nDemo']}&fSalePrice={$params['fSalePrice']}";
+        $content .= "&nFlag={$params['nFlag']}&szKey={$key}";
+        return md5($content);
+    }
+
+    public function notify($params)
+    {
+        $status = intval($params['nFlag']);
+        $order_sn = $params['szOrderId'];
+        $order_info = Model('vr_order')->getOrderInfoForNotify(['order_sn' => $order_sn]);
+        if (empty($order_info)) {
+            return [false, false, false, false, ''];
+        }
+        $order_id = $order_info['order_id'];
+
+        if ($status === 2) {
+            $official_sn = strtolower($params['szRtnMsg']) == 'null' ? '' : $params['szRtnMsg'];
+            $data['official_sn'] = $official_sn;
+            Model('refill_order')->edit($order_id, $data);
+            return [$order_id, true, false, true, $official_sn];
+        }
+        elseif ($status === 3) {
+            return [$order_id, false, true, true, ''];
+        }
+        else {
+            return [$order_id, false, false, false, ''];
+        }
+    }
+}

+ 143 - 0
helper/refill/api/yl/youshilian/RefillPhone.php

@@ -0,0 +1,143 @@
+<?php
+
+namespace refill\youshilian;
+
+require_once(BASE_HELPER_RAPI_PATH . '/youshilian/config.php');
+
+use refill;
+use Log;
+
+class RefillPhone extends refill\IRefillPhone
+{
+    public function __construct($cfgs)
+    {
+        parent::__construct($cfgs);
+    }
+
+    private function req_params(int $phone, int $amount, int $card_type, string $order_sn)
+    {
+        $params['szAgentId'] = config::USER_ID;
+        $params['szOrderId'] = $order_sn;
+        $params['szPhoneNum'] = $phone;
+        $params['nMoney'] = $amount;
+        $params['nSortType'] = config::operator[$card_type];
+        $params['szProductId'] = '';
+        $params['nProductClass'] = 1;
+        $params['nProductType'] = 1;
+        $params['szTimeStamp'] = date("Y-m-d H:i:s");
+        $params['szNotifyUrl'] = config::NOTIFY_URL;
+        return $params;
+    }
+
+    public function add($card_no, $card_type, $amount, $params,&$net_errno = 0)
+    {
+        $order_sn = $params['order_sn'];
+        $params = $this->req_params($card_no, $amount, $card_type, $order_sn);
+
+        $sign = $this->sign($params);
+        $params['szVerifyString'] = $sign;
+
+        $resp = http_request(config::ORDER_URL, $params, 'POST', false, config::ExtHeaders, $net_errno);
+
+        if (empty($resp)) {
+            return [false, '网络错误', true];
+        }
+        else
+        {
+            Log::record($resp, Log::DEBUG);
+            $resp = json_decode($resp, true);
+
+            $nRtn = $resp['nRtn'];
+            if (empty($resp)) {
+                return [false, '网络错误', true];
+            } elseif ($nRtn === 0) {
+                return [true, '', false];
+            } elseif (in_array($nRtn, config::ERR_NOS, true)) {
+                return [false, $resp['szRtnCode'], false];
+            } elseif (in_array($nRtn, [2050, 999], true)) {
+                $net_errno = "HTTP-{$nRtn}";
+                return [false, $resp['szRtnCode'], true];
+            } else {
+                $err = 998;
+                $net_errno = "HTTP-{$err}";
+                return [false, $resp['szRtnCode'], true];
+            }
+        }
+    }
+
+    public function query($refill_info)
+    {
+        $params['szAgentId'] = config::USER_ID;
+        $params['szOrderId'] = $refill_info['order_sn'];
+        $key = config::KEY;
+        $content = "szAgentId={$params['szAgentId']}&szOrderId={$params['szOrderId']}&szKey={$key}";
+        $params['szVerifyString'] = md5($content);
+
+        $resp = http_request(config::QUERY_URL, $params, 'POST', false, config::ExtHeaders);
+
+        if (empty($resp)) {
+            return [false, '网络错误', ''];
+        }
+        else
+        {
+            Log::record($resp, Log::DEBUG);
+            $resp = json_decode($resp, true);
+            if (empty($resp)) {
+                return [false, '网络错误', ''];
+            }
+            $offical_sn = '';
+            $status = $resp['nRtn'];
+            if ($status === 5012) {
+                $offical_sn = $resp['szRtnMsg'];
+                $updata['official_sn'] = $offical_sn;
+                Model('refill_order')->edit($refill_info['order_id'], $updata);
+                $order_state = ORDER_STATE_SUCCESS;
+            } elseif ($status === 5013) {
+                $order_state = ORDER_STATE_CANCEL;
+            } elseif (in_array($status, [5011,5019],true)) {
+                $order_state = ORDER_STATE_SEND;
+            } elseif ($status === 5005 && (time() - $refill_info['commit_time'] >= 300)) {
+                $order_state = ORDER_STATE_NOEXIST;
+            } else {
+                return [false, $resp['szRtnMsg'], $offical_sn];
+            }
+
+            return [true, $order_state, $offical_sn];
+        }
+    }
+
+    public function balance()
+    {
+        $params['szAgentId'] = config::USER_ID;
+        $key = config::KEY;
+        $content = "szAgentId={$params['szAgentId']}&szKey={$key}";
+        $params['szVerifyString'] = md5($content);
+
+        $resp = http_request(config::BALANCE_URL, $params, 'POST', false, config::ExtHeaders);
+
+        if (empty($resp)) {
+            return [false, '网络错误'];
+        }
+        else
+        {
+            Log::record($resp, Log::DEBUG);
+            $resp = json_decode($resp, true);
+            if (empty($resp)) {
+                return [false, '网络错误'];
+            } elseif ($resp['nRtn'] === 0) {
+                return [true, $resp['fBalance']];
+            } else {
+                return [false, $resp['szRtnCode']];
+            }
+        }
+    }
+
+    private function sign($params)
+    {
+        $userid = config::USER_ID;
+        $key = config::KEY;
+        $content = "szAgentId={$userid}&szOrderId={$params['szOrderId']}&szPhoneNum={$params['szPhoneNum']}&nMoney={$params['nMoney']}&nSortType={$params['nSortType']}";
+        $content .= "&nProductClass={$params['nProductClass']}&nProductType={$params['nProductType']}&szTimeStamp={$params['szTimeStamp']}&szKey={$key}";
+        return md5($content);
+    }
+}

+ 27 - 0
helper/refill/api/yl/youshilian/config.php

@@ -0,0 +1,27 @@
+<?php
+
+
+namespace refill\youshilian;
+
+use mtopcard;
+class config
+{
+    const ORDER_URL = 'http://8.136.129.136:10181/plat/api/old/submitorder';
+    const QUERY_URL= 'http://8.136.129.136:10181/plat/api/old/queryorder';
+    const BALANCE_URL = 'http://8.136.129.136:10181/plat/api/old/queryBalance';
+
+    const USER_ID= '200062';
+    const KEY = '0dfbb7a9ae934ef3ae8f2af5afe0653a';
+    const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_youshilian.php";
+
+    const operator = [
+        mtopcard\ChinaMobileCard  => 1,
+        mtopcard\ChinaUnicomCard  => 2,
+        mtopcard\ChinaTelecomCard => 3
+    ];
+    const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
+
+    const ERR_NOS = [
+        1000,1001,1003,1004,2001,2002,2003,2020,2021,1006,2030,3003
+    ];
+}

+ 4 - 0
mobile/callback/refill_youshilian.php

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

+ 4 - 0
mobile/callback/refill_youshilian_sec.php

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

+ 12 - 0
test/TestRefill.php

@@ -5998,6 +5998,18 @@ class TestRefill extends TestCase
         $resp = $provider->balance();
     }
 
+    public function testyoushilian_sec()
+    {
+        $provider = $this->getProvider('youshilian_sec');
+        $resp = $provider->balance();
+    }
+
+    public function testyoushilian()
+    {
+        $provider = $this->getProvider('youshilian');
+        $resp = $provider->balance();
+    }
+
 }