xiaoyu пре 3 година
родитељ
комит
e1578878f3

+ 57 - 4
data/config/win/refill.ini.php

@@ -3122,17 +3122,69 @@ $guantu_phone = ['name' => 'guantu', 'store_id' => 157, 'qualitys' => '1',
         ],
 //        300 => [
 //            ['goods_id' => 7331, 'price' => 286.2, 'quality' => 1, 'card_type' => 'chinamobile'],
-//            ['goods_id' => 7331, 'price' => 285.+, 'quality' => 1, 'card_type' => 'chinaunicom'],
-//            ['goods_id' => 7331, 'price' => 285, 'quality' => 1, 'card_type' => 'chinatelecom']
+//            ['goods_id' => 7331, 'price' => 285.3, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7331, 'price' => 285.9, 'quality' => 1, 'card_type' => 'chinatelecom']
 //        ],
 //        500 => [
 //            ['goods_id' => 7332, 'price' => 477, 'quality' => 1, 'card_type' => 'chinamobile'],
-//            ['goods_id' => 7332, 'price' => 476.5, 'quality' => 1, 'card_type' => 'chinaunicom'],
-//            ['goods_id' => 7332, 'price' => 475, 'quality' => 1, 'card_type' => 'chinatelecom']
+//            ['goods_id' => 7332, 'price' => 475.5, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7332, 'price' => 476.5, 'quality' => 1, 'card_type' => 'chinatelecom']
 //        ]
     ],
     'official_sn' => true, 'refill_type' => 'api'];
 
+$yiqian_phone = ['name' => 'yiqian', 'store_id' => 158,'qualitys' => '2',
+    'amount' => [
+        10 => [
+//            ['goods_id' => 7333, 'price' => 9.985, 'quality' => 2, 'card_type' => 'chinamobile'],
+            ['goods_id' => 7333, 'price' => 9.995, 'quality' => 2, 'card_type' => 'chinaunicom']
+//            ['goods_id' => 7333, 'price' => 9.985, 'quality' => 2, 'card_type' => 'chinatelecom']
+        ],
+
+        20 => [
+//            ['goods_id' => 7334, 'price' => 19.97, 'quality' => 2, 'card_type' => 'chinamobile'],
+            ['goods_id' => 7334, 'price' => 19.99, 'quality' => 2, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7334, 'price' => 19.97, 'quality' => 2, 'card_type' => 'chinatelecom']
+        ],
+
+        30 => [
+//            ['goods_id' => 7335, 'price' => 29.955, 'quality' => 2, 'card_type' => 'chinamobile'],
+            ['goods_id' => 7335, 'price' => 29.985, 'quality' => 2, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7335, 'price' => 29.955, 'quality' => 2, 'card_type' => 'chinatelecom']
+        ],
+
+        50 => [
+//            ['goods_id' => 7336, 'price' => 49.925, 'quality' => 2, 'card_type' => 'chinamobile'],
+            ['goods_id' => 7336, 'price' => 49.975, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7336, 'price' => 49.9, 'quality' => 2, 'card_type' => 'chinatelecom']
+        ],
+
+        100 => [
+            ['goods_id' => 7337, 'price' => 99.85, 'quality' => 2, 'card_type' => 'chinamobile'],
+            ['goods_id' => 7337, 'price' => 99.8, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7337, 'price' => 99.85, 'quality' => 2, 'card_type' => 'chinatelecom']
+        ],
+
+        200 => [
+            ['goods_id' => 7338, 'price' => 199.7, 'quality' => 2, 'card_type' => 'chinamobile'],
+            ['goods_id' => 7338, 'price' => 199.6, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7338, 'price' => 199.7, 'quality' => 2, 'card_type' => 'chinatelecom']
+        ],
+
+        300 => [
+            ['goods_id' => 7339, 'price' => 299.55, 'quality' => 2, 'card_type' => 'chinamobile'],
+            ['goods_id' => 7339, 'price' => 299.4, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7339, 'price' => 299.55, 'quality' => 2, 'card_type' => 'chinatelecom']
+        ],
+
+        500 => [
+            ['goods_id' => 7340, 'price' => 499.25, 'quality' => 2, 'card_type' => 'chinamobile'],
+            ['goods_id' => 7340, 'price' => 499, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7340, 'price' => 499.25, 'quality' => 2, 'card_type' => 'chinatelecom']
+        ]
+    ],
+    'official_sn' => true, 'refill_type' => 'api'];
+
 $phone_providers = [
 //    ['name' => 'beixt', 'cfg' => $beixt_phone],
 //    ['name' => 'bxtwt', 'cfg' => $bxtwt_phone],
@@ -3253,6 +3305,7 @@ $phone_providers = [
     ['name' => 'lexianglt', 'cfg' => $lexianglt_phone],
     ['name' => 'lexiangdx', 'cfg' => $lexiangdx_phone],
     ['name' => 'guantu', 'cfg' => $guantu_phone],
+    ['name' => 'yiqian', 'cfg' => $yiqian_phone],
 ];
 $config['phone_providers'] = $phone_providers;
 

+ 57 - 4
data/config/xyz/refill.ini.php

@@ -3122,17 +3122,69 @@ $guantu_phone = ['name' => 'guantu', 'store_id' => 157, 'qualitys' => '1',
         ],
 //        300 => [
 //            ['goods_id' => 7331, 'price' => 286.2, 'quality' => 1, 'card_type' => 'chinamobile'],
-//            ['goods_id' => 7331, 'price' => 285.+, 'quality' => 1, 'card_type' => 'chinaunicom'],
-//            ['goods_id' => 7331, 'price' => 285, 'quality' => 1, 'card_type' => 'chinatelecom']
+//            ['goods_id' => 7331, 'price' => 285.3, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7331, 'price' => 285.9, 'quality' => 1, 'card_type' => 'chinatelecom']
 //        ],
 //        500 => [
 //            ['goods_id' => 7332, 'price' => 477, 'quality' => 1, 'card_type' => 'chinamobile'],
-//            ['goods_id' => 7332, 'price' => 476.5, 'quality' => 1, 'card_type' => 'chinaunicom'],
-//            ['goods_id' => 7332, 'price' => 475, 'quality' => 1, 'card_type' => 'chinatelecom']
+//            ['goods_id' => 7332, 'price' => 475.5, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7332, 'price' => 476.5, 'quality' => 1, 'card_type' => 'chinatelecom']
 //        ]
     ],
     'official_sn' => true, 'refill_type' => 'api'];
 
+$yiqian_phone = ['name' => 'yiqian', 'store_id' => 158,'qualitys' => '2',
+    'amount' => [
+        10 => [
+//            ['goods_id' => 7333, 'price' => 9.985, 'quality' => 2, 'card_type' => 'chinamobile'],
+            ['goods_id' => 7333, 'price' => 9.995, 'quality' => 2, 'card_type' => 'chinaunicom']
+//            ['goods_id' => 7333, 'price' => 9.985, 'quality' => 2, 'card_type' => 'chinatelecom']
+        ],
+
+        20 => [
+//            ['goods_id' => 7334, 'price' => 19.97, 'quality' => 2, 'card_type' => 'chinamobile'],
+            ['goods_id' => 7334, 'price' => 19.99, 'quality' => 2, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7334, 'price' => 19.97, 'quality' => 2, 'card_type' => 'chinatelecom']
+        ],
+
+        30 => [
+//            ['goods_id' => 7335, 'price' => 29.955, 'quality' => 2, 'card_type' => 'chinamobile'],
+            ['goods_id' => 7335, 'price' => 29.985, 'quality' => 2, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7335, 'price' => 29.955, 'quality' => 2, 'card_type' => 'chinatelecom']
+        ],
+
+        50 => [
+//            ['goods_id' => 7336, 'price' => 49.925, 'quality' => 2, 'card_type' => 'chinamobile'],
+            ['goods_id' => 7336, 'price' => 49.975, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7336, 'price' => 49.9, 'quality' => 2, 'card_type' => 'chinatelecom']
+        ],
+
+        100 => [
+            ['goods_id' => 7337, 'price' => 99.85, 'quality' => 2, 'card_type' => 'chinamobile'],
+            ['goods_id' => 7337, 'price' => 99.8, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7337, 'price' => 99.85, 'quality' => 2, 'card_type' => 'chinatelecom']
+        ],
+
+        200 => [
+            ['goods_id' => 7338, 'price' => 199.7, 'quality' => 2, 'card_type' => 'chinamobile'],
+            ['goods_id' => 7338, 'price' => 199.6, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7338, 'price' => 199.7, 'quality' => 2, 'card_type' => 'chinatelecom']
+        ],
+
+        300 => [
+            ['goods_id' => 7339, 'price' => 299.55, 'quality' => 2, 'card_type' => 'chinamobile'],
+            ['goods_id' => 7339, 'price' => 299.4, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7339, 'price' => 299.55, 'quality' => 2, 'card_type' => 'chinatelecom']
+        ],
+
+        500 => [
+            ['goods_id' => 7340, 'price' => 499.25, 'quality' => 2, 'card_type' => 'chinamobile'],
+            ['goods_id' => 7340, 'price' => 499, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7340, 'price' => 499.25, 'quality' => 2, 'card_type' => 'chinatelecom']
+        ]
+    ],
+    'official_sn' => true, 'refill_type' => 'api'];
+
 $phone_providers = [
 //    ['name' => 'beixt', 'cfg' => $beixt_phone],
 //    ['name' => 'bxtwt', 'cfg' => $bxtwt_phone],
@@ -3253,6 +3305,7 @@ $phone_providers = [
     ['name' => 'lexianglt', 'cfg' => $lexianglt_phone],
     ['name' => 'lexiangdx', 'cfg' => $lexiangdx_phone],
     ['name' => 'guantu', 'cfg' => $guantu_phone],
+    ['name' => 'yiqian', 'cfg' => $yiqian_phone],
 ];
 $config['phone_providers'] = $phone_providers;
 

+ 57 - 4
data/config/xyzadm/refill.ini.php

@@ -3122,17 +3122,69 @@ $guantu_phone = ['name' => 'guantu', 'store_id' => 157, 'qualitys' => '1',
         ],
 //        300 => [
 //            ['goods_id' => 7331, 'price' => 286.2, 'quality' => 1, 'card_type' => 'chinamobile'],
-//            ['goods_id' => 7331, 'price' => 285.+, 'quality' => 1, 'card_type' => 'chinaunicom'],
-//            ['goods_id' => 7331, 'price' => 285, 'quality' => 1, 'card_type' => 'chinatelecom']
+//            ['goods_id' => 7331, 'price' => 285.3, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7331, 'price' => 285.9, 'quality' => 1, 'card_type' => 'chinatelecom']
 //        ],
 //        500 => [
 //            ['goods_id' => 7332, 'price' => 477, 'quality' => 1, 'card_type' => 'chinamobile'],
-//            ['goods_id' => 7332, 'price' => 476.5, 'quality' => 1, 'card_type' => 'chinaunicom'],
-//            ['goods_id' => 7332, 'price' => 475, 'quality' => 1, 'card_type' => 'chinatelecom']
+//            ['goods_id' => 7332, 'price' => 475.5, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7332, 'price' => 476.5, 'quality' => 1, 'card_type' => 'chinatelecom']
 //        ]
     ],
     'official_sn' => true, 'refill_type' => 'api'];
 
+$yiqian_phone = ['name' => 'yiqian', 'store_id' => 158,'qualitys' => '2',
+    'amount' => [
+        10 => [
+//            ['goods_id' => 7333, 'price' => 9.985, 'quality' => 2, 'card_type' => 'chinamobile'],
+            ['goods_id' => 7333, 'price' => 9.995, 'quality' => 2, 'card_type' => 'chinaunicom']
+//            ['goods_id' => 7333, 'price' => 9.985, 'quality' => 2, 'card_type' => 'chinatelecom']
+        ],
+
+        20 => [
+//            ['goods_id' => 7334, 'price' => 19.97, 'quality' => 2, 'card_type' => 'chinamobile'],
+            ['goods_id' => 7334, 'price' => 19.99, 'quality' => 2, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7334, 'price' => 19.97, 'quality' => 2, 'card_type' => 'chinatelecom']
+        ],
+
+        30 => [
+//            ['goods_id' => 7335, 'price' => 29.955, 'quality' => 2, 'card_type' => 'chinamobile'],
+            ['goods_id' => 7335, 'price' => 29.985, 'quality' => 2, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7335, 'price' => 29.955, 'quality' => 2, 'card_type' => 'chinatelecom']
+        ],
+
+        50 => [
+//            ['goods_id' => 7336, 'price' => 49.925, 'quality' => 2, 'card_type' => 'chinamobile'],
+            ['goods_id' => 7336, 'price' => 49.975, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7336, 'price' => 49.9, 'quality' => 2, 'card_type' => 'chinatelecom']
+        ],
+
+        100 => [
+            ['goods_id' => 7337, 'price' => 99.85, 'quality' => 2, 'card_type' => 'chinamobile'],
+            ['goods_id' => 7337, 'price' => 99.8, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7337, 'price' => 99.85, 'quality' => 2, 'card_type' => 'chinatelecom']
+        ],
+
+        200 => [
+            ['goods_id' => 7338, 'price' => 199.7, 'quality' => 2, 'card_type' => 'chinamobile'],
+            ['goods_id' => 7338, 'price' => 199.6, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7338, 'price' => 199.7, 'quality' => 2, 'card_type' => 'chinatelecom']
+        ],
+
+        300 => [
+            ['goods_id' => 7339, 'price' => 299.55, 'quality' => 2, 'card_type' => 'chinamobile'],
+            ['goods_id' => 7339, 'price' => 299.4, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7339, 'price' => 299.55, 'quality' => 2, 'card_type' => 'chinatelecom']
+        ],
+
+        500 => [
+            ['goods_id' => 7340, 'price' => 499.25, 'quality' => 2, 'card_type' => 'chinamobile'],
+            ['goods_id' => 7340, 'price' => 499, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7340, 'price' => 499.25, 'quality' => 2, 'card_type' => 'chinatelecom']
+        ]
+    ],
+    'official_sn' => true, 'refill_type' => 'api'];
+
 $phone_providers = [
 //    ['name' => 'beixt', 'cfg' => $beixt_phone],
 //    ['name' => 'bxtwt', 'cfg' => $bxtwt_phone],
@@ -3253,6 +3305,7 @@ $phone_providers = [
     ['name' => 'lexianglt', 'cfg' => $lexianglt_phone],
     ['name' => 'lexiangdx', 'cfg' => $lexiangdx_phone],
     ['name' => 'guantu', 'cfg' => $guantu_phone],
+    ['name' => 'yiqian', 'cfg' => $yiqian_phone],
 ];
 $config['phone_providers'] = $phone_providers;
 

+ 45 - 0
helper/refill/api/xyz/yiqian/RefillCallBack.php

@@ -0,0 +1,45 @@
+<?php
+namespace refill\yiqian;
+
+require_once(BASE_HELPER_RAPI_PATH . '/yiqian/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)
+    {
+        $content = $params['extOrderId'] . $params['orderId'] . $params['state'] . config::KEY;
+        return md5($content);
+    }
+
+    public function notify($params)
+    {
+        $status = intval($params['state']);
+        $order_sn = $params['extOrderId'];
+        $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 === 4) {
+            Model('refill_order')->edit($order_id, ['official_sn' => $params['exchangeTraded'], 'ch_trade_no' => $params['orderId']]);
+            return [$order_id, true, false, true];
+        } elseif ($status === 5) {
+            return [$order_id, false, true, true];
+        } else {
+            return [$order_id, false, false, false];
+        }
+    }
+}

+ 125 - 0
helper/refill/api/xyz/yiqian/RefillPhone.php

@@ -0,0 +1,125 @@
+<?php
+
+namespace refill\yiqian;
+
+require_once(BASE_HELPER_RAPI_PATH . '/yiqian/config.php');
+
+use refill;
+use Log;
+
+class RefillPhone extends refill\IRefillPhone
+{
+    public function __construct($cfgs)
+    {
+        parent::__construct($cfgs);
+    }
+
+    private function req_params(int $card_no, int $card_type, string $order_sn, int $amount)
+    {
+        $params['merchantId'] = config::MCH_ID;
+        $params['amt'] = $amount;
+        $params['phone'] = $card_no;
+        $params['phoneBelong'] = config::operator[$card_type];
+        $params['extOrderId'] = $order_sn;
+        $params['notifyUrl'] = config::NOTIFY_URL;
+        $params['sourceType'] = '全国';
+        return $params;
+    }
+
+    public function add($card_no, $card_type, $amount, $params,&$net_errno = 0)
+    {
+        $params = $this->req_params($card_no, $card_type, $params['order_sn'], $amount);
+        $sign = $this->sign($params);
+        $params['md5'] = $sign;
+
+        $resp = http_request(config::ORDER_URL, $params, 'POST', false, [], $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'] === 0) {
+                return [true, '', false];
+            } else {
+                return [false, $resp['msg'], false];
+            }
+        }
+    }
+
+    public function query($refill_info)
+    {
+        $params['merchantId'] = config::MCH_ID;
+        $params['extOrderId'] = $refill_info['order_sn'];
+        $content = $params['extOrderId'] . $params['merchantId'] . config::KEY;
+        $params['sign'] = md5($content);
+
+        $resp = http_request(config::QUERY_URL, $params, 'POST');
+        if (empty($resp)) {
+            return [false, '系统错误'];
+        }
+        else
+        {
+            Log::record($resp, Log::DEBUG);
+            $resp = json_decode($resp, true);
+            if (empty($resp))
+            {
+                return [false, '系统错误'];
+            }
+            elseif ($resp['code'] === 0)
+            {
+                $status = intval($resp['data']);
+                if ($status === 4) {
+                    Model('refill_order')->edit($refill_info['order_id'], ['official_sn' => $resp['ext']['exchangeTraded']]);
+                    $order_state = ORDER_STATE_SUCCESS;
+                } elseif ($status === 5) {
+                    $order_state = ORDER_STATE_CANCEL;
+                } elseif ($status === 3) {
+                    $order_state = ORDER_STATE_SEND;
+                } elseif ($status === -1 && time() - $refill_info['commit_time'] > 600){
+                    $order_state = ORDER_STATE_NOEXIST;
+                } else {
+                    return [false, $status];
+                }
+
+                return [true, $order_state];
+            }
+            else
+            {
+                return [false, $resp['msg']];
+            }
+        }
+    }
+
+    public function balance()
+    {
+        $params['merchantId'] = config::MCH_ID;
+        $content = $params['merchantId'] . config::KEY;
+        $params['sign'] = md5($content);
+
+        $resp = http_request(config::BALANCE_URL, $params, 'POST');
+
+        if (empty($resp)) {
+            return [false, '网络错误'];
+        } else {
+            Log::record($resp, Log::DEBUG);
+            $resp = json_decode($resp, true);
+            if ($resp['code'] === 0) {
+                return [true, $resp['ext']['balance']];
+            } else {
+                return [false, $resp['msg']];
+            }
+        }
+    }
+
+    private function sign($params)
+    {
+        $content = $params['amt'] . $params['extOrderId'] . $params['merchantId'] . $params['notifyUrl'] . $params['phone'];
+        $content .= config::KEY;
+        return md5($content);
+    }
+}

+ 20 - 0
helper/refill/api/xyz/yiqian/config.php

@@ -0,0 +1,20 @@
+<?php
+namespace refill\yiqian;
+
+use mtopcard;
+class config
+{
+    //http://118.31.46.58:8080/doc/api.html
+    const ORDER_URL = 'http://118.31.46.58:8080/api/huafei/makeOrder';
+    const QUERY_URL = 'http://118.31.46.58:8080/api/queryOrder';
+    const BALANCE_URL = 'http://118.31.46.58:8080/api/queryBalance';
+
+    const MCH_ID = 'M00221';
+    const KEY = '0xHGoi3X6d78ZGfeapushi0UmgtTjghoqowg';
+    const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_yiqian.php";
+    const operator = [
+        mtopcard\ChinaMobileCard => '移动',
+        mtopcard\ChinaUnicomCard => '联通',
+        mtopcard\ChinaTelecomCard => '电信'
+    ];
+}

+ 6 - 0
helper/refill/api/xyz/yiqian/对接文档.txt

@@ -0,0 +1,6 @@
+商户号:M00221
+登陆密码 :a7eZ3w5D
+MD5KEY :0xHGoi3X6d78ZGfeai0UmgtTjghoqowg
+接口文档地址http://118.31.46.58:8080/doc/api.html
+生产服务器地址 http://118.31.46.58:8080/
+客户后台地址: http://47.114.180.82:7777/#

+ 4 - 0
mobile/callback/refill_yiqian.php

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

+ 14 - 0
test/TestRefill.php

@@ -1418,6 +1418,20 @@ class TestRefill extends TestCase
         $resp = $provider->notify($params);
     }
 
+    public function testYiqian()
+    {
+//        $provider = $this->getProvider('yiqian');
+//        $resp = $provider->balance();
+//        $resp = $provider->add(18500608333, 5, 10, ['order_sn' => $this->make_sn()]);
+//        $resp = $provider->query(['order_sn' => '12871637568430713782']);
+
+        $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 testAmingjd()
     {
 //        $provider = new refill\amingjd\RefillPhone([]);