Explorar o código

Merge branch 'raccount' of 39.97.239.116:gyfl/xyzshop into raccount

stanley-king hai 1 ano
pai
achega
c03aecb389

+ 72 - 26
data/config/xyz/refill.ini.php

@@ -10543,51 +10543,96 @@ $xingchuang_trd_phone = ['name' => 'xingchuang_trd', 'store_id' => 394, 'quality
     ],
     'official_sn' => true, 'refill_type' => 'api'];
 
-$menshang_sec_phone = ['name' => 'menshang_sec', 'store_id' => 395, 'qualitys' => '1',
+$menshang_sec_phone = ['name' => 'menshang_sec', 'store_id' => 395, 'qualitys' => '3',
     'amount' => [
         10 => [
-            ['goods_id' => 9097, 'price' => 9.65, 'quality' => 1, 'card_type' => 'chinamobile'],
-//            ['goods_id' => 9097, 'price' => 10, 'quality' => 1, 'card_type' => 'chinaunicom'],
-//            ['goods_id' => 9097, 'price' => 10, 'quality' => 1, 'card_type' => 'chinatelecom']
+            ['goods_id' => 9097, 'price' => 9.65, 'quality' => 3, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 9097, 'price' => 10, 'quality' => 3, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 9097, 'price' => 10, 'quality' => 3, 'card_type' => 'chinatelecom']
         ],
         20 => [
-            ['goods_id' => 9098, 'price' => 19.3, 'quality' => 1, 'card_type' => 'chinamobile'],
-//            ['goods_id' => 9098, 'price' => 20, 'quality' => 1, 'card_type' => 'chinaunicom'],
-//            ['goods_id' => 9098, 'price' => 20, 'quality' => 1, 'card_type' => 'chinatelecom']
+            ['goods_id' => 9098, 'price' => 19.3, 'quality' => 3, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 9098, 'price' => 20, 'quality' => 3, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 9098, 'price' => 20, 'quality' => 3, 'card_type' => 'chinatelecom']
         ],
         30 => [
-//            ['goods_id' => 9099, 'price' => 30, 'quality' => 1, 'card_type' => 'chinamobile'],
-            ['goods_id' => 9099, 'price' => 28.2, 'quality' => 1, 'card_type' => 'chinaunicom'],
-            ['goods_id' => 9099, 'price' => 29.01, 'quality' => 1, 'card_type' => 'chinatelecom']
+//            ['goods_id' => 9099, 'price' => 30, 'quality' => 3, 'card_type' => 'chinamobile'],
+            ['goods_id' => 9099, 'price' => 28.2, 'quality' => 3, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 9099, 'price' => 28.5, 'quality' => 3, 'card_type' => 'chinatelecom']
         ],
         50 => [
-            ['goods_id' => 9100, 'price' => 48.35, 'quality' => 1, 'card_type' => 'chinamobile'],
-            ['goods_id' => 9100, 'price' => 47, 'quality' => 1, 'card_type' => 'chinaunicom'],
-            ['goods_id' => 9100, 'price' => 48.35, 'quality' => 1, 'card_type' => 'chinatelecom']
+            ['goods_id' => 9100, 'price' => 47.5, 'quality' => 3, 'card_type' => 'chinamobile'],
+            ['goods_id' => 9100, 'price' => 47, 'quality' => 3, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 9100, 'price' => 47.5, 'quality' => 3, 'card_type' => 'chinatelecom']
         ],
         100 => [
-            ['goods_id' => 9101, 'price' => 96.7, 'quality' => 1, 'card_type' => 'chinamobile'],
-            ['goods_id' => 9101, 'price' => 94, 'quality' => 1, 'card_type' => 'chinaunicom'],
-            ['goods_id' => 9101, 'price' => 96.7, 'quality' => 1, 'card_type' => 'chinatelecom']
+            ['goods_id' => 9101, 'price' => 95, 'quality' => 3, 'card_type' => 'chinamobile'],
+            ['goods_id' => 9101, 'price' => 94, 'quality' => 3, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 9101, 'price' => 95, 'quality' => 3, 'card_type' => 'chinatelecom']
         ],
         200 => [
-            ['goods_id' => 9102, 'price' => 193.4, 'quality' => 1, 'card_type' => 'chinamobile'],
-            ['goods_id' => 9102, 'price' => 188, 'quality' => 1, 'card_type' => 'chinaunicom'],
-            ['goods_id' => 9102, 'price' => 193.4, 'quality' => 1, 'card_type' => 'chinatelecom']
+            ['goods_id' => 9102, 'price' => 190, 'quality' => 3, 'card_type' => 'chinamobile'],
+            ['goods_id' => 9102, 'price' => 188, 'quality' => 3, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 9102, 'price' => 190, 'quality' => 3, 'card_type' => 'chinatelecom']
         ],
 //        300 => [
-//            ['goods_id' => 9103, 'price' => 300, 'quality' => 1, 'card_type' => 'chinamobile'],
-//            ['goods_id' => 9103, 'price' => 300, 'quality' => 1, 'card_type' => 'chinaunicom'],
-//            ['goods_id' => 9103, 'price' => 300, 'quality' => 1, 'card_type' => 'chinatelecom']
+//            ['goods_id' => 9103, 'price' => 300, 'quality' => 3, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 9103, 'price' => 300, 'quality' => 3, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 9103, 'price' => 300, 'quality' => 3, 'card_type' => 'chinatelecom']
 //        ],
 //        500 => [
-//            ['goods_id' => 9104, 'price' => 500, 'quality' => 1, 'card_type' => 'chinamobile'],
-//            ['goods_id' => 9104, 'price' => 500, 'quality' => 1, 'card_type' => 'chinaunicom'],
-//            ['goods_id' => 9104, 'price' => 500, 'quality' => 1, 'card_type' => 'chinatelecom']
+//            ['goods_id' => 9104, 'price' => 500, 'quality' => 3, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 9104, 'price' => 500, 'quality' => 3, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 9104, 'price' => 500, 'quality' => 3, 'card_type' => 'chinatelecom']
 //        ]
     ],
     'official_sn' => true, 'refill_type' => 'api'];
 
+$yeyepucnt_phone = ['name' => 'yeyepucnt', 'store_id' => 396, 'qualitys' => '1',
+    'amount' => [
+//        10 => [
+//            ['goods_id' => 9105, 'price' => 10, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 9105, 'price' => 10, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 9105, 'price' => 10, 'quality' => 1, 'card_type' => 'chinatelecom']
+//        ],
+//        20 => [
+//            ['goods_id' => 9106, 'price' => 20, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 9106, 'price' => 20, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 9106, 'price' => 20, 'quality' => 1, 'card_type' => 'chinatelecom']
+//        ],
+        30 => [
+            ['goods_id' => 9107, 'price' => 30, 'quality' => 1, 'card_type' => 'chinamobile'],
+            ['goods_id' => 9107, 'price' => 30, 'quality' => 1, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 9107, 'price' => 30, 'quality' => 1, 'card_type' => 'chinatelecom']
+        ],
+        50 => [
+            ['goods_id' => 9108, 'price' => 50, 'quality' => 1, 'card_type' => 'chinamobile'],
+            ['goods_id' => 9108, 'price' => 50, 'quality' => 1, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 9108, 'price' => 50, 'quality' => 1, 'card_type' => 'chinatelecom']
+        ],
+        100 => [
+            ['goods_id' => 9109, 'price' => 100, 'quality' => 1, 'card_type' => 'chinamobile'],
+            ['goods_id' => 9109, 'price' => 100, 'quality' => 1, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 9109, 'price' => 100, 'quality' => 1, 'card_type' => 'chinatelecom']
+        ],
+        200 => [
+            ['goods_id' => 9110, 'price' => 200, 'quality' => 1, 'card_type' => 'chinamobile'],
+            ['goods_id' => 9110, 'price' => 200, 'quality' => 1, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 9110, 'price' => 200, 'quality' => 1, 'card_type' => 'chinatelecom']
+        ],
+        300 => [
+            ['goods_id' => 9111, 'price' => 300, 'quality' => 1, 'card_type' => 'chinamobile'],
+            ['goods_id' => 9111, 'price' => 300, 'quality' => 1, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 9111, 'price' => 300, 'quality' => 1, 'card_type' => 'chinatelecom']
+        ],
+        500 => [
+            ['goods_id' => 9112, 'price' => 500, 'quality' => 1, 'card_type' => 'chinamobile'],
+            ['goods_id' => 9112, 'price' => 500, 'quality' => 1, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 9112, 'price' => 500, 'quality' => 1, 'card_type' => 'chinatelecom']
+        ]
+    ],
+    'official_sn' => true, 'refill_type' => 'api'];
+
 $phone_providers = [
 //    ['name' => 'beixt', 'cfg' => $beixt_p hone],
 //    ['name' => 'bxtwt', 'cfg' => $bxtwt_phone],
@@ -10900,10 +10945,11 @@ $phone_providers = [
     ['name' => 'tengyoujun_ylyw', 'cfg' => $tengyoujun_ylyw_phone],
     ['name' => 'tengyoujun_yj', 'cfg' => $tengyoujun_yj_phone],
     ['name' => 'huifen_fast', 'cfg' => $huifen_fast_phone],
-        ['name' => 'xingchuang_sec', 'cfg' => $xingchuang_sec_phone],
+    ['name' => 'xingchuang_sec', 'cfg' => $xingchuang_sec_phone],
     ['name' => 'kachong_new', 'cfg' => $kachong_new_phone],
     ['name' => 'xingchuang_trd', 'cfg' => $xingchuang_trd_phone],
     ['name' => 'menshang_sec', 'cfg' => $menshang_sec_phone],
+    ['name' => 'yeyepucnt', 'cfg' => $yeyepucnt_phone],
 ];
 $config['phone_providers'] = $phone_providers;
 

+ 5 - 5
data/config/yl/refill.ini.php

@@ -7878,14 +7878,14 @@ $beirui_trd_phone = ['name' => 'beirui_trd', 'store_id' => 306, 'qualitys' => '1
 //        30 => [
 //            ['goods_id' => 8453, 'price' => 29.04, 'quality' => 1, 'card_type' => 'chinamobile'],
 //        ],
-//        50 => [
-//            ['goods_id' => 8454, 'price' => 47.5, 'quality' => 1, 'card_type' => 'chinamobile'],
-//        ],
+        50 => [
+            ['goods_id' => 8454, 'price' => 48.35, 'quality' => 1, 'card_type' => 'chinamobile'],
+        ],
         100 => [
-            ['goods_id' => 8455, 'price' => 96.5, 'quality' => 1, 'card_type' => 'chinamobile'],
+            ['goods_id' => 8455, 'price' => 96.7, 'quality' => 1, 'card_type' => 'chinamobile'],
         ],
         200 => [
-            ['goods_id' => 8456, 'price' => 193, 'quality' => 1, 'card_type' => 'chinamobile'],
+            ['goods_id' => 8456, 'price' => 193.4, 'quality' => 1, 'card_type' => 'chinamobile'],
         ],
 //        300 => [
 //            ['goods_id' => 8457, 'price' => 290.4, 'quality' => 1, 'card_type' => 'chinamobile'],

BIN=BIN
helper/refill/api/xyz/guochuang/20240128_yd_sichuan.jpg


BIN=BIN
helper/refill/api/xyz/guochuang/20240129_yd_qinghai.png


BIN=BIN
helper/refill/api/xyz/guochuang/20240131_yd_liaoning.jpg


+ 3 - 3
helper/refill/api/xyz/guochuang/config.php

@@ -64,10 +64,10 @@ class config
     const Price = [
         //移动
         "4-10-2" => 10.28, "4-20-2" => 20.56, "4-30-2" => 30.84, "4-50-2" => 50.3, "4-100-2" => 100.3, "4-200-2" => 200.6, "4-300-2" => 300.9, "4-500-2" => 501.5,//天津 2
-        "4-10-6" => 9.67, "4-20-6" => 19.34, "4-30-6" => 29.01, "4-50-6" => 48.35, "4-100-6" => 96.7, "4-200-6" => 193.4, "4-300-6" => 290.1, "4-500-6" => 483.5,//辽宁 6
+        "4-10-6" => 9.68, "4-20-6" => 19.36, "4-30-6" => 29.04, "4-50-6" => 48.4, "4-100-6" => 96.8, "4-200-6" => 193.6, "4-300-6" => 290.4, "4-500-6" => 484,//辽宁 6
         "4-10-9" => 9.94, "4-20-9" => 19.88, "4-30-9" => 29.82, "4-50-9" => 49.7, "4-100-9" => 99.4,//上海 9
         "4-10-8" => 9.98, "4-20-8" => 19.96, "4-30-8" => 29.94, "4-50-8" => 49.9, "4-100-8" => 99.8, "4-200-8" => 199.6, "4-300-8" => 299.4, "4-500-8" => 499,//黑龙江 8
-        "4-10-29" => 9.83, "4-20-29" => 19.66, "4-30-29" => 29.49, "4-50-29" => 49.15, "4-100-29" => 98.3, "4-200-29" => 196.6, "4-300-29" => 294.9, "4-500-29" => 491.5,//青海 29
+        "4-10-29" => 9.89, "4-20-29" => 19.78, "4-30-29" => 29.67, "4-50-29" => 49.45, "4-100-29" => 98.9, "4-200-29" => 197.8, "4-300-29" => 296.7, "4-500-29" => 494.5,//青海 29
         "4-10-28" => 10.45, "4-20-28" => 20.74, "4-30-28" => 31.11, "4-50-28" => 50.65, "4-100-28" => 99.85, "4-200-28" => 199.7, "4-300-28" => 299.55, "4-500-28" => 499.25,//甘肃 28
         "4-10-13" => 9.965, "4-20-13" => 19.93, "4-30-13" => 29.895, "4-50-13" => 49.825, "4-100-13" => 99.65, "4-200-13" => 199.3, "4-300-13" => 298.95, "4-500-13" => 498.25,//福建 13
         "4-10-5" => 10.035, "4-20-5" => 20.07, "4-30-5" => 30.09, "4-50-5" => 50.15, "4-100-5" => 100.3, "4-200-5" => 200.4, "4-300-5" => 300.6, "4-500-5" => 501,//内蒙古 5
@@ -88,7 +88,7 @@ class config
         "4-10-27" => 10.29, "4-20-27" => 20.58, "4-30-27" => 30.48, "4-50-27" => 49.95, "4-100-27" => 99.9, "4-200-27" => 199.8, "4-300-27" => 299.7, "4-500-27" => 499.5,//陕西 27
         "4-10-31" => 10.4, "4-20-31" => 20.5,//新疆 31
         "4-10-3" => 10.36, "4-20-3" => 20.72, "4-30-3" => 31.08, "4-50-3" => 50.7,//河北 3
-        "4-10-23" => 10.36, "4-20-23" => 20.72, "4-30-23" => 31.08,//四川 23
+        "4-10-23" => 10.38, "4-20-23" => 20.76, "4-30-23" => 31.14,//四川 23
 
         //联通
         "5-10-19" => 10.04, "5-20-19" => 20.08, "5-30-19" => 30.06, "5-50-19" => 50.1, "5-100-19" => 100.2, "5-200-19" => 200.4, "5-300-19" => 300.6, "5-500-19" => 501,//广东 19

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

@@ -57,11 +57,11 @@ class RefillPhone extends refill\IRefillPhone
                 return [false, $resultno, false];
             } elseif ($resultno === '9999' || $resultno === '5006') {
                 $net_errno = "HTTP-{$resultno}";
-                return [false, $net_errno, true];
+                return [false, $resultno, true];
             } else {
                 $err = 998;
                 $net_errno = "HTTP-{$err}";
-                return [false, $net_errno, true];
+                return [false, $resultno, true];
             }
         }
     }

+ 13 - 0
helper/refill/api/xyz/yeyepucnt/API.MD

@@ -0,0 +1,13 @@
+## YY3椰椰-普充2号
+
+### 机构账号
+- 账号:yeyepucnt
+- 密码:34yiiu
+- https://ylweb.xyzshops.cn/merchant/#/login
+
+### 店铺账号
+- yeyepucnt
+- yeyepucnt67890
+
+### 密钥
+> d3721ec21c2d993bfc01999f9dbeacfc

+ 76 - 0
helper/refill/api/xyz/yeyepucnt/RefillCallBack.php

@@ -0,0 +1,76 @@
+<?php
+namespace refill\yeyepucnt;
+
+require_once(BASE_HELPER_RAPI_PATH . '/yeyepucnt/config.php');
+use refill;
+class RefillCallBack implements refill\IRefillCallBack
+{
+    public function verify($params): bool
+    {
+        $input = $params;
+        unset($input['sign']);
+        $sign = $this->sign($input);
+        if ($params['sign'] == $sign) {
+            return true;
+        } else {
+            return false;
+        }
+    }
+
+    protected function check_empty($value)
+    {
+        if (!isset($value))
+            return true;
+        if ($value === null)
+            return true;
+        if (trim($value) === "")
+            return true;
+
+        return false;
+    }
+
+    private function sign($params)
+    {
+        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=".config::KEY;
+        return md5($body);
+    }
+
+    public function notify($params)
+    {
+        $status = $params['state'];
+        $order_sn = $params['order_sn'];
+        $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 === 'SUCCESS') {
+            $data['ch_trade_no'] = $params['trade_no'];
+            $data['official_sn'] = strtolower($params['official_sn']) == 'null' ? '' : $params['official_sn'];
+            Model('refill_order')->edit($order_id, $data);
+            return [$order_id, true, false,true];
+        }
+        elseif ($status === 'CANCEL') {
+            Model('refill_order')->edit($order_id, ['ch_trade_no' => $params['trade_no']]);
+            return [$order_id, false, true,true];
+        }
+        else {
+            return [$order_id, false, false,false];
+        }
+    }
+}

+ 161 - 0
helper/refill/api/xyz/yeyepucnt/RefillPhone.php

@@ -0,0 +1,161 @@
+<?php
+
+namespace refill\yeyepucnt;
+
+require_once(BASE_HELPER_RAPI_PATH . '/yeyepucnt/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, string $order_sn)
+    {
+        $params['act'] = 'refill';
+        $params['op'] = 'add';
+        $params['mchid'] = config::MCH_ID;
+        $params['cardno'] = $phone;
+        $params['amount'] = $amount;
+        $params['order_sn'] = $order_sn;
+        $params['notifyurl'] = config::NOTIFY_URL;
+        return $params;
+    }
+
+    public function add($card_no, $card_type, $amount, $params,&$net_errno = 0)
+    {
+        $params = $this->req_params($card_no, $amount, $params['order_sn']);
+        $sign = $this->sign($params);
+        $params['sign'] = $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'] === 200) {
+                return [true, '', false];
+            } else {
+                return [false, $resp['message'], false];
+            }
+        }
+    }
+
+    public function query($refill_info)
+    {
+        $params['act'] = 'refill';
+        $params['op'] = 'query';
+        $params['mchid'] = config::MCH_ID;
+        $params['order_sn'] = $refill_info['order_sn'];
+        $params['sign'] = $this->sign($params);
+
+        $resp = http_request(config::ORDER_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'] === 200)
+            {
+                $data = $resp['datas'];
+                if ($data['order_state'] == '40') {
+                    $save['ch_trade_no'] = $data['trade_no'];
+                    $save['official_sn'] = strtolower($resp['official_sn']) == 'null' ? '' : $resp['official_sn'];
+                    Model('refill_order')->edit($refill_info['order_id'], $save);
+                    $order_state = ORDER_STATE_SUCCESS;
+                } elseif ($data['order_state'] === '0') {
+                    Model('refill_order')->edit($refill_info['order_id'], ['ch_trade_no' => $data['trade_no']]);
+                    $order_state = ORDER_STATE_CANCEL;
+                } elseif (in_array($data['order_state'], ['10', '20', '30', '50'], true)) {
+                    $order_state = ORDER_STATE_SEND;
+                } else {
+                    return [false, $resp['message']];
+                }
+                return [true, $order_state];
+            }
+            elseif ($resp['code'] === 202 && (time() - $refill_info['commit_time'] >= 600))
+            {
+                return [true, ORDER_STATE_NOEXIST];
+            }
+            else
+            {
+                return [false, $resp['message']];
+            }
+        }
+    }
+
+    public function balance()
+    {
+        $params['act'] = 'refill';
+        $params['op'] = 'balance';
+        $params['mchid'] = config::MCH_ID;
+        $params['sign'] = $this->sign($params);
+
+        $resp = http_request(config::ORDER_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'] === 200) {
+                return [true, $resp['datas']['balance']];
+            } else {
+                return [false, $resp['message']];
+            }
+        }
+    }
+
+    protected function check_empty($value)
+    {
+        if (!isset($value))
+            return true;
+        if ($value === null)
+            return true;
+        if (trim($value) === "")
+            return true;
+
+        return false;
+    }
+
+    private function sign($params)
+    {
+        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=".config::KEY;
+
+        return md5($body);
+    }
+}

+ 12 - 0
helper/refill/api/xyz/yeyepucnt/config.php

@@ -0,0 +1,12 @@
+<?php
+
+namespace refill\yeyepucnt;
+
+class config
+{
+    const ORDER_URL = 'https://ylapi.xyzshops.cn/mobile/index.php';
+
+    const MCH_ID = 10386;
+    const KEY = 'd3721ec21c2d993bfc01999f9dbeacfc';
+    const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_yeyepucnt.php";
+}

+ 3 - 3
helper/refill/api/yl/guochuang/config.php

@@ -64,10 +64,10 @@ class config
     const Price = [
         //移动
         "4-10-2" => 10.28, "4-20-2" => 20.56, "4-30-2" => 30.84, "4-50-2" => 50.3, "4-100-2" => 100.3, "4-200-2" => 200.6, "4-300-2" => 300.9, "4-500-2" => 501.5,//天津 2
-        "4-10-6" => 9.67, "4-20-6" => 19.34, "4-30-6" => 29.01, "4-50-6" => 48.35, "4-100-6" => 96.7, "4-200-6" => 193.4, "4-300-6" => 290.1, "4-500-6" => 483.5,//辽宁 6
+        "4-10-6" => 9.68, "4-20-6" => 19.36, "4-30-6" => 29.04, "4-50-6" => 48.4, "4-100-6" => 96.8, "4-200-6" => 193.6, "4-300-6" => 290.4, "4-500-6" => 484,//辽宁 6
         "4-10-9" => 9.94, "4-20-9" => 19.88, "4-30-9" => 29.82, "4-50-9" => 49.7, "4-100-9" => 99.4,//上海 9
         "4-10-8" => 9.98, "4-20-8" => 19.96, "4-30-8" => 29.94, "4-50-8" => 49.9, "4-100-8" => 99.8, "4-200-8" => 199.6, "4-300-8" => 299.4, "4-500-8" => 499,//黑龙江 8
-        "4-10-29" => 9.83, "4-20-29" => 19.66, "4-30-29" => 29.49, "4-50-29" => 49.15, "4-100-29" => 98.3, "4-200-29" => 196.6, "4-300-29" => 294.9, "4-500-29" => 491.5,//青海 29
+        "4-10-29" => 9.89, "4-20-29" => 19.78, "4-30-29" => 29.67, "4-50-29" => 49.45, "4-100-29" => 98.9, "4-200-29" => 197.8, "4-300-29" => 296.7, "4-500-29" => 494.5,//青海 29
         "4-10-28" => 10.45, "4-20-28" => 20.74, "4-30-28" => 31.11, "4-50-28" => 50.65, "4-100-28" => 99.85, "4-200-28" => 199.7, "4-300-28" => 299.55, "4-500-28" => 499.25,//甘肃 28
         "4-10-13" => 9.965, "4-20-13" => 19.93, "4-30-13" => 29.895, "4-50-13" => 49.825, "4-100-13" => 99.65, "4-200-13" => 199.3, "4-300-13" => 298.95, "4-500-13" => 498.25,//福建 13
         "4-10-5" => 10.035, "4-20-5" => 20.07, "4-30-5" => 30.09, "4-50-5" => 50.15, "4-100-5" => 100.3, "4-200-5" => 200.4, "4-300-5" => 300.6, "4-500-5" => 501,//内蒙古 5
@@ -88,7 +88,7 @@ class config
         "4-10-27" => 10.29, "4-20-27" => 20.58, "4-30-27" => 30.48, "4-50-27" => 49.95, "4-100-27" => 99.9, "4-200-27" => 199.8, "4-300-27" => 299.7, "4-500-27" => 499.5,//陕西 27
         "4-10-31" => 10.4, "4-20-31" => 20.5,//新疆 31
         "4-10-3" => 10.36, "4-20-3" => 20.72, "4-30-3" => 31.08, "4-50-3" => 50.7,//河北 3
-        "4-10-23" => 10.36, "4-20-23" => 20.72, "4-30-23" => 31.08,//四川 23
+        "4-10-23" => 10.38, "4-20-23" => 20.76, "4-30-23" => 31.14,//四川 23
 
         //联通
         "5-10-19" => 10.04, "5-20-19" => 20.08, "5-30-19" => 30.06, "5-50-19" => 50.1, "5-100-19" => 100.2, "5-200-19" => 200.4, "5-300-19" => 300.6, "5-500-19" => 501,//广东 19

+ 4 - 0
mobile/callback/refill_yeyepucnt.php

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

+ 6 - 0
test/TestRefill.php

@@ -5982,6 +5982,12 @@ class TestRefill extends TestCase
         $resp = $provider->query(['order_sn' => '56641701227303096134']);
     }
 
+    public function testyeyepucnt()
+    {
+        $provider = $this->getProvider('yeyepucnt');
+        $resp = $provider->balance();
+    }
+
 }