haru haru пре 2 година
родитељ
комит
5e3d5c51bd

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

@@ -6088,6 +6088,96 @@ $guanbang_phone = ['name' => 'guanbang', 'store_id' => 229, 'qualitys' => '2',
     ],
     'official_sn' => true, 'refill_type' => 'api'];
 
+$yuke_lt_phone = ['name' => 'yuke_lt', 'store_id' => 230, 'qualitys' => '1',
+    'amount' => [
+//        10 => [
+//            ['goods_id' => 7910, 'price' => 9.75, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 7910, 'price' => 9.45, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7910, 'price' => 9.98, 'quality' => 1, 'card_type' => 'chinatelecom']
+//        ],
+//        20 => [
+//            ['goods_id' => 7911, 'price' => 19.5, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 7911, 'price' => 18.9, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7911, 'price' => 19.96, 'quality' => 1, 'card_type' => 'chinatelecom']
+//        ],
+        30 => [
+//            ['goods_id' => 7912, 'price' => 29.25, 'quality' => 1, 'card_type' => 'chinamobile'],
+            ['goods_id' => 7912, 'price' => 28.35, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7912, 'price' => 29.94, 'quality' => 1, 'card_type' => 'chinatelecom']
+        ],
+        50 => [
+//            ['goods_id' => 7913, 'price' => 48.75, 'quality' => 1, 'card_type' => 'chinamobile'],
+            ['goods_id' => 7913, 'price' => 47.25, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7913, 'price' => 49.9, 'quality' => 1, 'card_type' => 'chinatelecom']
+        ],
+        100 => [
+//            ['goods_id' => 7914, 'price' => 97.5, 'quality' => 1, 'card_type' => 'chinamobile'],
+            ['goods_id' => 7914, 'price' => 94.5, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7914, 'price' => 99.8, 'quality' => 1, 'card_type' => 'chinatelecom']
+        ],
+        200 => [
+//            ['goods_id' => 7915, 'price' => 195, 'quality' => 1, 'card_type' => 'chinamobile'],
+            ['goods_id' => 7915, 'price' => 189, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7915, 'price' => 199.6, 'quality' => 1, 'card_type' => 'chinatelecom']
+        ],
+//        300 => [
+//            ['goods_id' => 7916, 'price' => 292.5, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 7916, 'price' => 283.5, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7916, 'price' => 299.4, 'quality' => 1, 'card_type' => 'chinatelecom']
+//        ],
+//        500 => [
+//            ['goods_id' => 7917, 'price' => 487.5, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 7917, 'price' => 472.5, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7917, 'price' => 499, 'quality' => 1, 'card_type' => 'chinatelecom']
+//        ]
+    ],
+    'official_sn' => true, 'refill_type' => 'api'];
+
+$yuke_dx_phone = ['name' => 'yuke_dx', 'store_id' => 231, 'qualitys' => '1',
+    'amount' => [
+//        10 => [
+//            ['goods_id' => 7918, 'price' => 9.75, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 7918, 'price' => 9.45, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7918, 'price' => 9.53, 'quality' => 1, 'card_type' => 'chinatelecom']
+//        ],
+//        20 => [
+//            ['goods_id' => 7919, 'price' => 19.5, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 7919, 'price' => 18.9, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7919, 'price' => 19.06, 'quality' => 1, 'card_type' => 'chinatelecom']
+//        ],
+        30 => [
+//            ['goods_id' => 7920, 'price' => 29.25, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 7920, 'price' => 28.35, 'quality' => 1, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7920, 'price' => 28.59, 'quality' => 1, 'card_type' => 'chinatelecom']
+        ],
+        50 => [
+//            ['goods_id' => 7921, 'price' => 48.75, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 7921, 'price' => 47.25, 'quality' => 1, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7921, 'price' => 47.65, 'quality' => 1, 'card_type' => 'chinatelecom']
+        ],
+        100 => [
+//            ['goods_id' => 7922, 'price' => 97.5, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 7922, 'price' => 94.5, 'quality' => 1, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7922, 'price' => 95.3, 'quality' => 1, 'card_type' => 'chinatelecom']
+        ],
+        200 => [
+//            ['goods_id' => 7923, 'price' => 195, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 7923, 'price' => 189, 'quality' => 1, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7923, 'price' => 190.6, 'quality' => 1, 'card_type' => 'chinatelecom']
+        ],
+//        300 => [
+//            ['goods_id' => 7924, 'price' => 292.5, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 7924, 'price' => 283.5, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7924, 'price' => 285.9, 'quality' => 1, 'card_type' => 'chinatelecom']
+//        ],
+//        500 => [
+//            ['goods_id' => 7925, 'price' => 487.5, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 7925, 'price' => 472.5, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7925, 'price' => 476.5, 'quality' => 1, 'card_type' => 'chinatelecom']
+//        ]
+    ],
+    'official_sn' => true, 'refill_type' => 'api'];
+
 $phone_providers = [
 //    ['name' => 'beixt', 'cfg' => $beixt_phone],
 //    ['name' => 'bxtwt', 'cfg' => $bxtwt_phone],
@@ -6275,6 +6365,8 @@ $phone_providers = [
     ['name' => 'yuke', 'cfg' => $yuke_phone],
     ['name' => 'chizeng_yi', 'cfg' => $chizeng_yi_phone],
     ['name' => 'guanbang', 'cfg' => $guanbang_phone],
+    ['name' => 'yuke_lt', 'cfg' => $yuke_lt_phone],
+    ['name' => 'yuke_dx', 'cfg' => $yuke_dx_phone],
 
 ];
 $config['phone_providers'] = $phone_providers;

+ 53 - 0
helper/refill/api/xyz/yuke_dx/RefillCallBack.php

@@ -0,0 +1,53 @@
+<?php
+namespace refill\yuke_dx;
+
+require_once(BASE_HELPER_RAPI_PATH . '/yuke_dx/config.php');
+
+use refill;
+class RefillCallBack implements refill\IRefillCallBack
+{
+    public function verify($params): bool
+    {
+        $sign = $this->sign($params);
+        if ($params['sign'] == $sign) {
+            return true;
+        } else {
+            return false;
+        }
+    }
+
+    private function sign($params)
+    {
+        $params['rechargeAmount'] = number_format($params['rechargeAmount'], 3);
+        $key = config::SECRET_KEY;
+        $content = "tPfChannelId={$params['tPfChannelId']}&rechargeAccount={$params['rechargeAccount']}&rechargeAmount={$params['rechargeAmount']}&orderType={$params['orderType']}";
+        $content .= "&orderStatus={$params['orderStatus']}&orderSn={$params['orderSn']}&outOrderId={$params['outOrderId']}&createTime={$params['createTime']}";
+        $content .= "&updatedTime={$params['updatedTime']}&secret_key={$key}";
+
+        return strtoupper(md5($content));
+    }
+
+    //[$order_id, $success, $can_try, $need_handle]
+    public function notify($params)
+    {
+        $status = intval($params['orderStatus']);
+        $order_sn = $params['outOrderId'];
+        $order_info = Model('vr_order')->getOrderInfo(['order_sn' => $order_sn]);
+        if (empty($order_info)) {
+            return [false, false, false,false];
+        }
+        $order_id = $order_info['order_id'];
+
+        if ($status === 2) {
+            $data['official_sn'] = $params['callbackOtherAttr']['cert_no'];
+            Model('refill_order')->edit($order_id, $data);
+            return [$order_id, true, false,true];
+        }
+        elseif ($status === 3 || $status === 4) {
+            return [$order_id, false, true,true];
+        }
+        else {
+            return [$order_id, false, false,false];
+        }
+    }
+}

+ 142 - 0
helper/refill/api/xyz/yuke_dx/RefillPhone.php

@@ -0,0 +1,142 @@
+<?php
+
+namespace refill\yuke_dx;
+
+require_once(BASE_HELPER_RAPI_PATH . '/yuke_dx/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 $card_type, int $amount, string $order_sn)
+    {
+        $params['rechargeAccount'] = $phone;
+        $params['rechargeAmount'] = $amount;
+        $params['tPfChannelId'] = config::CHANNEL_ID;
+        $params['orderType'] = 0;
+        $params['outOrderId'] = $order_sn;
+        $params['randomNumber'] = $this->createNoncestr(10);
+
+        return $params;
+    }
+
+    public function add($card_no, $card_type, $amount, $params,&$net_errno = 0)
+    {
+        $params = $this->req_params($card_no, $card_type, $amount, $params['order_sn']);
+        $sign = $this->sign($params);
+        $params['sign'] = $sign;
+        $params = json_encode($params);
+
+        $resp = http_post_data(config::ORDER_URL, $params , config::ExtHeaders, $net_errno);
+
+        if (empty($resp)) {
+            return [false, '系统错误', true];
+        }
+        else
+        {
+            Log::record($resp, Log::DEBUG);
+            $resp = json_decode($resp, true);
+            if (empty($resp)) {
+                return [false, '系统错误', true];
+            } elseif ($resp['code'] === 1) {
+                return [true, $resp['data']['order_sn'], false];
+            } else {
+                return [false, $resp['message'], false];
+            }
+        }
+    }
+
+    public function query($refill_info)
+    {
+        $params['tPfChannelId'] = config::CHANNEL_ID;
+        $params['outOrderId'] = $refill_info['order_sn'];
+        $params = json_encode($params);
+
+        $resp = http_post_data(config::QUERY_URL, $params , 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['code'] === 1)
+            {
+                $status = $resp['data']['orderInfo']['orderStatus'];
+                if ($status === 2) {
+                    $order_state = ORDER_STATE_SUCCESS;
+                } elseif ($status === 3 || $status === 4) {
+                    $order_state = ORDER_STATE_CANCEL;
+                } elseif ($status === 1) {
+                    $order_state = ORDER_STATE_SEND;
+                } else {
+                    return [false, $status];
+                }
+                return [true, $order_state];
+            }
+            elseif ($resp['code'] === -2004 && (time() - $refill_info['commit_time'] > 600))
+            {
+                return [true, ORDER_STATE_NOEXIST];
+            }
+            else
+            {
+                return [false, $resp['message']];
+            }
+        }
+    }
+
+    public function balance()
+    {
+        $params['tPfChannelId'] = config::CHANNEL_ID;
+        $params['tunnelType'] = 0;
+        $key = config::SECRET_KEY;
+        $content = "tPfChannelId={$params['tPfChannelId']}&tunnelType={$params['tunnelType']}&secret_key={$key}";
+        $params['sign'] = strtoupper(md5($content));
+        $params = json_encode($params);
+
+        $resp = http_post_data(config::BALANCE_URL, $params , 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['code'] == 1) {
+                return [true, $resp['data']['amountOfMoney']];
+            } else {
+                return [false, $resp['message']];
+            }
+        }
+    }
+
+    private function createNoncestr( $length = 32 )
+    {
+        $chars = "abcdefghijklmnopqrstuvwxyz0123456789";
+        $str ="";
+        for ( $i = 0; $i < $length; $i++ )  {
+            $str.= substr($chars, mt_rand(0, strlen($chars)-1), 1);
+        }
+        return $str;
+    }
+
+    private function sign($params)
+    {
+        $key = config::SECRET_KEY;
+        $content = "orderType={$params['orderType']}&tPfChannelId={$params['tPfChannelId']}&rechargeAccount={$params['rechargeAccount']}&rechargeAmount={$params['rechargeAmount']}";
+        $content .= "&randomNumber={$params['randomNumber']}&secret_key={$key}";
+        return strtoupper(md5($content));
+    }
+}

+ 7 - 0
helper/refill/api/xyz/yuke_dx/api.txt

@@ -0,0 +1,7 @@
+http://www.recharge.org.cn/rechargeServiceAdmin
+渠道ID:196
+账户:15811535610
+密码:123456
+key:C16FBE7E0C597ECF
+
+下单地址:http://quantum.recharge.org.cn:19860/polymeric/api/tunnel/aries

+ 15 - 0
helper/refill/api/xyz/yuke_dx/config.php

@@ -0,0 +1,15 @@
+<?php
+namespace refill\yuke_dx;
+
+class config
+{
+    //回调地址上游配置
+    const ORDER_URL = 'http://quantum.recharge.org.cn:19860/polymeric/api/tunnel/aries';
+    const QUERY_URL = 'http://quantum.recharge.org.cn:19860/polymeric/api/tunnel/getOrderInfo';
+    const BALANCE_URL = 'http://quantum.recharge.org.cn:19860/polymeric/api/tunnel/getBalanceInfo';
+
+    const CHANNEL_ID = '196';
+    const SECRET_KEY = 'C16FBE7E0C597ECF';
+    const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_yuke_dx.php";
+    const ExtHeaders = ['Content-Type: application/json; charset=utf-8'];
+}

BIN
helper/refill/api/xyz/yuke_dx/充值服务接入文档v2.4.docx


+ 53 - 0
helper/refill/api/xyz/yuke_lt/RefillCallBack.php

@@ -0,0 +1,53 @@
+<?php
+namespace refill\yuke_lt;
+
+require_once(BASE_HELPER_RAPI_PATH . '/yuke_lt/config.php');
+
+use refill;
+class RefillCallBack implements refill\IRefillCallBack
+{
+    public function verify($params): bool
+    {
+        $sign = $this->sign($params);
+        if ($params['sign'] == $sign) {
+            return true;
+        } else {
+            return false;
+        }
+    }
+
+    private function sign($params)
+    {
+        $params['rechargeAmount'] = number_format($params['rechargeAmount'], 3);
+        $key = config::SECRET_KEY;
+        $content = "tPfChannelId={$params['tPfChannelId']}&rechargeAccount={$params['rechargeAccount']}&rechargeAmount={$params['rechargeAmount']}&orderType={$params['orderType']}";
+        $content .= "&orderStatus={$params['orderStatus']}&orderSn={$params['orderSn']}&outOrderId={$params['outOrderId']}&createTime={$params['createTime']}";
+        $content .= "&updatedTime={$params['updatedTime']}&secret_key={$key}";
+
+        return strtoupper(md5($content));
+    }
+
+    //[$order_id, $success, $can_try, $need_handle]
+    public function notify($params)
+    {
+        $status = intval($params['orderStatus']);
+        $order_sn = $params['outOrderId'];
+        $order_info = Model('vr_order')->getOrderInfo(['order_sn' => $order_sn]);
+        if (empty($order_info)) {
+            return [false, false, false,false];
+        }
+        $order_id = $order_info['order_id'];
+
+        if ($status === 2) {
+            $data['official_sn'] = $params['callbackOtherAttr']['cert_no'];
+            Model('refill_order')->edit($order_id, $data);
+            return [$order_id, true, false,true];
+        }
+        elseif ($status === 3 || $status === 4) {
+            return [$order_id, false, true,true];
+        }
+        else {
+            return [$order_id, false, false,false];
+        }
+    }
+}

+ 142 - 0
helper/refill/api/xyz/yuke_lt/RefillPhone.php

@@ -0,0 +1,142 @@
+<?php
+
+namespace refill\yuke_lt;
+
+require_once(BASE_HELPER_RAPI_PATH . '/yuke_lt/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 $card_type, int $amount, string $order_sn)
+    {
+        $params['rechargeAccount'] = $phone;
+        $params['rechargeAmount'] = $amount;
+        $params['tPfChannelId'] = config::CHANNEL_ID;
+        $params['orderType'] = 0;
+        $params['outOrderId'] = $order_sn;
+        $params['randomNumber'] = $this->createNoncestr(10);
+
+        return $params;
+    }
+
+    public function add($card_no, $card_type, $amount, $params,&$net_errno = 0)
+    {
+        $params = $this->req_params($card_no, $card_type, $amount, $params['order_sn']);
+        $sign = $this->sign($params);
+        $params['sign'] = $sign;
+        $params = json_encode($params);
+
+        $resp = http_post_data(config::ORDER_URL, $params , config::ExtHeaders, $net_errno);
+
+        if (empty($resp)) {
+            return [false, '系统错误', true];
+        }
+        else
+        {
+            Log::record($resp, Log::DEBUG);
+            $resp = json_decode($resp, true);
+            if (empty($resp)) {
+                return [false, '系统错误', true];
+            } elseif ($resp['code'] === 1) {
+                return [true, $resp['data']['order_sn'], false];
+            } else {
+                return [false, $resp['message'], false];
+            }
+        }
+    }
+
+    public function query($refill_info)
+    {
+        $params['tPfChannelId'] = config::CHANNEL_ID;
+        $params['outOrderId'] = $refill_info['order_sn'];
+        $params = json_encode($params);
+
+        $resp = http_post_data(config::QUERY_URL, $params , 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['code'] === 1)
+            {
+                $status = $resp['data']['orderInfo']['orderStatus'];
+                if ($status === 2) {
+                    $order_state = ORDER_STATE_SUCCESS;
+                } elseif ($status === 3 || $status === 4) {
+                    $order_state = ORDER_STATE_CANCEL;
+                } elseif ($status === 1) {
+                    $order_state = ORDER_STATE_SEND;
+                } else {
+                    return [false, $status];
+                }
+                return [true, $order_state];
+            }
+            elseif ($resp['code'] === -2004 && (time() - $refill_info['commit_time'] > 600))
+            {
+                return [true, ORDER_STATE_NOEXIST];
+            }
+            else
+            {
+                return [false, $resp['message']];
+            }
+        }
+    }
+
+    public function balance()
+    {
+        $params['tPfChannelId'] = config::CHANNEL_ID;
+        $params['tunnelType'] = 0;
+        $key = config::SECRET_KEY;
+        $content = "tPfChannelId={$params['tPfChannelId']}&tunnelType={$params['tunnelType']}&secret_key={$key}";
+        $params['sign'] = strtoupper(md5($content));
+        $params = json_encode($params);
+
+        $resp = http_post_data(config::BALANCE_URL, $params , 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['code'] == 1) {
+                return [true, $resp['data']['amountOfMoney']];
+            } else {
+                return [false, $resp['message']];
+            }
+        }
+    }
+
+    private function createNoncestr( $length = 32 )
+    {
+        $chars = "abcdefghijklmnopqrstuvwxyz0123456789";
+        $str ="";
+        for ( $i = 0; $i < $length; $i++ )  {
+            $str.= substr($chars, mt_rand(0, strlen($chars)-1), 1);
+        }
+        return $str;
+    }
+
+    private function sign($params)
+    {
+        $key = config::SECRET_KEY;
+        $content = "orderType={$params['orderType']}&tPfChannelId={$params['tPfChannelId']}&rechargeAccount={$params['rechargeAccount']}&rechargeAmount={$params['rechargeAmount']}";
+        $content .= "&randomNumber={$params['randomNumber']}&secret_key={$key}";
+        return strtoupper(md5($content));
+    }
+}

+ 7 - 0
helper/refill/api/xyz/yuke_lt/api.txt

@@ -0,0 +1,7 @@
+http://www.recharge.org.cn/rechargeServiceAdmin
+渠道ID:195
+账户:15811535609
+密码:123456
+key:567986E9DA9F5AE2
+
+下单地址:http://quantum.recharge.org.cn:19860/polymeric/api/tunnel/aries

+ 15 - 0
helper/refill/api/xyz/yuke_lt/config.php

@@ -0,0 +1,15 @@
+<?php
+namespace refill\yuke_lt;
+
+class config
+{
+    //回调地址上游配置
+    const ORDER_URL = 'http://quantum.recharge.org.cn:19860/polymeric/api/tunnel/aries';
+    const QUERY_URL = 'http://quantum.recharge.org.cn:19860/polymeric/api/tunnel/getOrderInfo';
+    const BALANCE_URL = 'http://quantum.recharge.org.cn:19860/polymeric/api/tunnel/getBalanceInfo';
+
+    const CHANNEL_ID = '195';
+    const SECRET_KEY = '567986E9DA9F5AE2';
+    const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_yuke_lt.php";
+    const ExtHeaders = ['Content-Type: application/json; charset=utf-8'];
+}

BIN
helper/refill/api/xyz/yuke_lt/充值服务接入文档v2.4.docx


+ 7 - 0
mobile/callback/refill_yuke_dx.php

@@ -0,0 +1,7 @@
+<?php
+
+$content = $_SERVER['post_content'] ?? [];
+$input = json_decode($content,true);
+refill\util::push_notify('yuke_dx',$input);
+
+echo 'ok';

+ 7 - 0
mobile/callback/refill_yuke_lt.php

@@ -0,0 +1,7 @@
+<?php
+
+$content = $_SERVER['post_content'] ?? [];
+$input = json_decode($content,true);
+refill\util::push_notify('yuke_lt',$input);
+
+echo 'ok';

+ 12 - 0
test/TestRefill.php

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