Procházet zdrojové kódy

Merge branch 'raccount' into rchannel

xiaoyu před 3 roky
rodič
revize
50d1da9a8f

+ 42 - 5
admin/control/refill_config.php

@@ -10,16 +10,13 @@ class refill_configControl extends SystemControl
 
     public function indexOp()
     {
-        if(chksubmit())
-        {
+        if (chksubmit()) {
             foreach ($_POST as $key => $value) {
                 $cache[$key] = $value;
             }
             wcache('config', ['data' => serialize($_POST)], 'refill-');
             showMessage('编辑成功');
-        }
-        else
-        {
+        } else {
             $config = rcache('config', 'refill-');
             if (empty($config)) {
                 $config = [];
@@ -30,4 +27,44 @@ class refill_configControl extends SystemControl
             Tpl::showpage('refill.config');
         }
     }
+
+    public function interceptOp()
+    {
+        $qualitys = [refill\Quality::Normal => '普充', refill\Quality::Quick => '快充', refill\Quality::CardKey => '卡密',
+            refill\Quality::ThirdShop => '三方', refill\Quality::SlowTwentyFour => '慢24'];
+        $card_types = [mtopcard\ChinaMobileCard => '移动', mtopcard\ChinaUnicomCard => '联通', mtopcard\ChinaTelecomCard => '电信'];
+        $province_list = mtopcard\ProvinceList;
+        $province_list[-1] = '全国';
+        ksort($province_list);
+
+        if (chksubmit()) {
+            $intercept = [];
+            foreach ($qualitys as $quality_key => $quality_txt) {
+                foreach ($card_types as $card_type_key => $card_type_text) {
+                    $key = $quality_key . '-' . $card_type_key;
+                    foreach ($province_list as $province_key => $province_text) {
+                        $data_key = $key . '-' . $province_key;
+                        if (array_key_exists($data_key, $_POST)) {
+                            $intercept[$key][$province_key] = intval($_POST[$data_key]);
+                        }
+                    }
+                }
+            }
+            wcache('intercept', ['data' => serialize($intercept)], 'refill-');
+            showMessage('编辑成功');
+        } else {
+            $intercept = rcache('intercept', 'refill-');
+
+            if (empty($intercept)) {
+                $intercept = [];
+            } else {
+                $intercept = unserialize($intercept['data']);
+            }
+            Tpl::output('quality_txt', $qualitys);
+            Tpl::output('card_type_text', $card_types);
+            Tpl::output('province_list', $province_list);
+            Tpl::output('intercept', $intercept);
+            Tpl::showpage('refill.intercept');
+        }
+    }
 }

+ 1 - 1
admin/include/menu.php

@@ -101,6 +101,7 @@ $arr = array(
 					array('args'=>'index,provider_group,merchant',			'text'=>'通道组管理'),
 					array('args'=>'index,ordersendlist,merchant',			'text'=>'订单监控'),
 					array('args'=>'index,orderstats,merchant',				'text'=>'对账管理'),
+					array('args'=>'intercept,refill_config,merchant',			'text'=>'充值拦截设置'),
 					array('args'=>'stats,card_key,merchant',				'text'=>'卡密管理'),
 					array('args'=>'index,refill_third,merchant',			'text'=>'增值业务管理'),
 					array('args'=>'index,refill_stock,merchant',			'text'=>'库存管理'),
@@ -109,7 +110,6 @@ $arr = array(
 					array('args'=>'index,provider_info,merchant',			'text'=>'上游信息管理'),
 					array('args'=>'index,merchant_info,merchant',			'text'=>'机构信息管理'),
 					array('args'=>'index,refill_cron,merchant',				'text'=>'订单排队查询'),
-					array('args'=>'index,refill_config,merchant',			'text'=>'充值系统设置'),
 					array('args'=>'index,refill_refund,merchant',			'text'=>'退款信息管理'),
 					array('args'=>'index,order_search,merchant',			'text'=>'客服订单查询'),
 					array('args'=>'index,refill_detail,merchant',			'text'=>'接单查询'),

+ 1 - 0
admin/templates/default/refill.config.php

@@ -6,6 +6,7 @@
             <h3>系统设置</h3>
             <ul class="tab-base">
                 <li><a href="JavaScript:void(0);" class="current"><span>系统设置</span></a></li>
+                <li><a href="index.php?act=refill_config&op=intercept"><span>拦截设置</span></a></li>
             </ul>
         </div>
     </div>

+ 341 - 0
admin/templates/default/refill.intercept.php

@@ -0,0 +1,341 @@
+<link href="<?php echo ADMIN_TEMPLATES_URL;?>/css/recharge.css?<?php echo rand(1,10);?>" rel="stylesheet" type="text/css" id="cssfile2" />
+<style>
+    .batch {
+        vertical-align: middle;
+        display: inline-block;
+        *display: inline /*IE7*/;
+        margin-left: 4px;
+        position: relative;
+        z-index: 1;
+        *zoom: 1 /*IE7*/;
+    }
+    .batch i {
+        cursor: pointer;
+    }
+    .batch-input {
+        background-color: #FFF;
+        white-space: nowrap;
+        padding: 4px 9px;
+        border: solid 1px #BCE8F1;
+        position: absolute;
+        z-index: 1;
+        top: -70px;
+        left: -75px;
+        box-shadow: 3px 3px 0 rgba(153, 153, 153, 0.25);
+    }
+    .batch-input h6 {
+        font-size: 12px;
+        color: #555;
+    }
+    .batch-input .text {
+        vertical-align: middle;
+        clear: both;
+        padding: 0 4px;
+        vertical-align: middle;
+        margin-right: 4px;
+    }
+    .batch-input .arrow {
+        background: url(<?php echo SHOP_SITE_URL;?>/templates/default/images/seller/ncsc_bg_img.png) no-repeat -240px -20px;
+        display: block;
+        width: 10px;
+        height: 5px;
+        margin-left: -5px;
+        bottom: -5px;
+        left: 50%;
+        position: absolute;
+        z-index: 2;
+    }
+    .batch-input a.close {
+        font-size: 11px;
+        line-height: 12px;
+        color: #BCE8F1;
+        text-decoration: none;
+        background-color: #FFF;
+        text-align: center;
+        display: block;
+        width: 12px;
+        height: 12px;
+        border-radius: 7px;
+        border: solid 1px #BCE8F1;
+        top: -7px;
+        right: -7px;
+        position: absolute;
+        z-index: 2;
+    }
+    .text.price {
+        width: 40px;
+    }
+    .text.pricee {
+        width: 40px;
+    }
+    .fixed-bar {
+        width: 100%;
+    }
+    .Borderadd {
+        border: 1px solid #e64444!important;
+    }
+    
+
+</style>
+<?php defined('InShopNC') or exit('Access Invalid!'); ?>
+<div class="page provider_amount_control">
+    <div class="fixed-bar">
+        <div class="item-title">
+            <h3>充值拦截设置</h3>
+            <ul class="tab-base">
+<!--                <li><a href="index.php?act=refill_config&op=index"><span>系统设置</span></a></li>-->
+                <li><a href="JavaScript:void(0);" class="current"><span>拦截设置</span></a></li>
+            </ul>
+        </div>
+    </div>
+    <div class="fixed-empty"></div>
+    <form id="price_form" enctype="multipart/form-data" method="post">
+        <input type="hidden" name="form_submit" value="ok"/>
+        <table class="table tb-type2 tableFixed">
+            <tbody class="tbody" >
+            <tr>
+                <td colspan="2" class="required" ><label>拦截设置:</label></td>
+            </tr>
+            <tr>
+                <td class="tip_info">
+                    是否拦截:1-正常,0-拦截。  注:全国优先级为最高,如全国被拦截,那么对应列所有省份均被拦截。
+                </td>
+            </tr>
+            <tr class="noborder">
+                <table class="table tb-type2" style="margin-top: 77px;">
+                    <thead id="tableHread">
+                        <tr class="w550" style="display:block;">
+                            <th class="align-center w120 mw120"></th>
+                            <?php foreach ($output['quality_txt'] as $quality_key => $quality_txt) { ?>
+                            <th class="align-center w165 mw165"><?php echo $quality_txt;?>
+                            <?php }?>
+                        </tr>
+                        <tr class="w500" style="display:block;">
+                            <td class="align-center w120 mw120" style="height:16px"></td>
+                            <?php foreach ($output['quality_txt'] as $quality_key => $quality_txt) { ?>
+                            <td class="batch-td">
+                                <?php foreach ($output['card_type_text'] as $card_type_key => $card_type_text) { ?>
+                                <div class="priority">
+                                    <?php echo $card_type_text;?>
+                                    <div class="batch" style="display: inline-block"><i class="icon-edit" title="批量操作"></i>
+                                        <div class="batch-input" style="display:none">
+                                            <h6>批量设置拦截(0/1):</h6>
+                                            <a href="javascript:void(0)" class="close">X</a>
+                                            <input name="" type="number" class="text price"/>
+                                            <a href="javascript:void(0)" class="ncsc-btn-mini<?php echo $card_type_key;?>" data-type="price">设置</a><span
+                                                    class="arrow"></span>
+                                        </div>
+                                    </div>
+                                </div>
+                                <?php }?>
+                            </td>
+                            <?php }?>
+
+                        </tr>
+
+                    </thead>
+                    <tbody class="tbody tableContent">
+                    <?php foreach ($output['province_list'] as $province_key => $province) { ?>
+                        <tr class="w500 trFlex" data-color="">
+                            <td style="text-align: center;width: 120px;min-width:120px;" class="tbFlex">
+                                <?php echo $province;?>
+                            </td>
+                            <?php foreach ($output['quality_txt'] as $quality_key => $quality_txt) { ?>
+                            <td class="batch-td">
+                                <?php foreach ($output['card_type_text'] as $card_type_key => $card_type_text) { ?>
+                                <div class="priority">
+                                    <input type="hidden" name="province[]" value="<?php echo $province_key;?>">
+                                    <input type="text" class="input-three<?php echo $card_type_key;?> styleTow w32 input-one" name='<?php echo "{$quality_key}-{$card_type_key}-{$province_key}"?>' autocomplete="off"
+                                           value="<?php echo $output['intercept']["{$quality_key}-{$card_type_key}"][$province_key] ?? 1;?>"
+                                    >
+                                </div>
+                                <?php }?>
+                            </td>
+                            <?php }?>
+                        </tr>
+                        <?php }?>
+                    </tbody>
+                </table>
+            </tr>
+            </tbody>
+            <tfoot>
+            <tr class="tfoot">
+                <td colspan="15"><a href="JavaScript:void(0);" class="btn" style="margin-top: 15px" id="submitBtn"><span><?php echo $lang['nc_submit']; ?></span></a></td>
+            </tr>
+            </tfoot>
+        </table>
+    </form>
+</div>
+<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/dialog/dialog.js" id="dialog_js"
+        charset="utf-8"></script>
+<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/jquery.ui.js"></script>
+<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/ajaxfileupload/ajaxfileupload.js"></script>
+<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/jquery.Jcrop/jquery.Jcrop.js"></script>
+<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/refill/layer.js"></script>
+<link href="<?php echo RESOURCE_SITE_URL; ?>/js/jquery.Jcrop/jquery.Jcrop.min.css" rel="stylesheet" type="text/css"
+      id="cssfile2"/>
+<script type="text/javascript">
+    $(function () {
+        $(window).scroll(function() {
+            let toLeft = document.documentElement.scrollLeft || document.body.scrollLeft;
+            if (toLeft>0) {
+                let headLeft = toLeft - 20
+                $('#tableHread')[0].style.left = '-'+headLeft+'px'
+            } else if (toLeft == 0) {
+                $('#tableHread')[0].style.left = 20+'px'
+            }
+        });
+        let isSubmit = true
+        $('.input-one').blur(function () {
+            let value = $(this)[0].value
+            if (value == 1 || value == 0) {
+                isSubmit = true;
+                $(this)[0].style['borderColor'] = ''
+            } else {
+                isSubmit = false
+                $(this)[0].style['borderColor'] = '#e64444'
+            }
+        })
+        // 开始获取当前地址
+        let type = '<?php echo $_GET['type'];?>';
+        let form = '<?php echo $_GET['form'];?>';
+        $(".classA").each(function () {
+           if (type+'-'+form == $(this).attr("data-type")) {
+               $(this).addClass('current')
+               $(this).attr('href','JavaScript:void(0);')
+           }
+        })
+        // 提交
+        $("#submitBtn").click(function () {
+            if (isSubmit) {
+                $("#price_form").submit();
+            }
+        })
+
+        // tab样式
+        $(".tab-base a").click(function () {
+            $(this).addClass('current')
+            $(this).siblings().removeClass('current')
+        })
+        // 表格hover时背景
+        $('.trFlex').each(function () {
+            let color = $(this).attr('data-color')
+            if (color ==  4 || color ==  1) {
+                $(this).css('background', '#f1dde6')
+            } else if (color == 5 || color ==  2) {
+                $(this).css('background', '#c8c6f3')
+            } else if (color == 6) {
+                $(this).css('background', '#f2f3c6')
+            } else {
+                $(this).css('background', '#fff')
+            }
+            $(this).hover(function () {
+                $(this)[0].style.backgroundColor = '#cbe9f3'
+            },function() {
+                if (color ==  4 || color ==  1) {
+                    $(this).css('background', '#f1dde6')
+                } else if (color == 5  || color ==  2) {
+                    $(this).css('background', '#c8c6f3')
+
+                } else if (color == 6) {
+                    $(this).css('background', '#f2f3c6')
+
+                } else {
+                    $(this).css('background', '#fff')
+
+                }
+            })
+        })
+      
+        // 批量设置开关
+        $('.batch > .icon-edit').click(function () {
+            $('.batch > .batch-input').hide();
+            $(this).next().show();
+        });
+        $('.batch-input > .close').click(function () {
+            $(this).parent().hide();
+        });
+       
+        // 点击设置
+        $('.ncsc-btn-mini4').click(function () {
+            let price = $(this).siblings('.price').val()
+            if (price != '1' && price != '0') {
+                layer.msg('移动只能设置0或1');
+                return
+            }
+            var lie = $(this).parents('.batch-td').prevAll().length
+            $('.input-three4').each(function (index, item) {
+               let tdCon = $(this).parents('td').prevAll().length 
+               let readOnly = $(this).attr('readOnly')
+               if (lie == tdCon && !readOnly) {
+                   $(this).val(price)
+               }
+            })
+        })  
+        $('.input-three4').each(function(index, item) {
+            $(item).change(function() {
+                let val = $(this).val()
+                if (val != 1 && val != 0) {
+                $(this).addClass('Borderadd')
+                layer.msg('移动只能设置0或1');
+            } else {
+                $(this).removeClass('Borderadd')
+            }
+               })
+        })  
+        $('.input-three5').each(function(index, item) {
+            $(item).change(function() {
+                let val = $(this).val()
+                if (val != 1 && val != 0) {
+                $(this).addClass('Borderadd')
+                layer.msg('联通只能设置0或1');
+            } else {
+                $(this).removeClass('Borderadd')
+            }
+               })
+        })  
+        $('.input-three6').each(function(index, item) {
+            $(item).change(function() {
+                let val = $(this).val()
+                if (val != 1 && val != 0) {
+                $(this).addClass('Borderadd')
+                layer.msg('电信只能设置0或1');
+            } else {
+                $(this).removeClass('Borderadd')
+            }
+               })
+        })
+         $('.ncsc-btn-mini5').click(function () {
+            let price = $(this).siblings('.price').val()
+            if (price != '1' && price != '0') {
+                layer.msg('联通只能设置0或1');
+                return
+            }
+            var lie = $(this).parents('.batch-td').prevAll().length
+            $('.input-three5').each(function () {
+               let tdCon = $(this).parents('td').prevAll().length 
+               let readOnly = $(this).attr('readOnly')
+               if (lie == tdCon && !readOnly) {
+                   $(this).val(price)
+               }
+            })
+            
+        })       
+        $('.ncsc-btn-mini6').click(function () {
+            let price = $(this).siblings('.price').val()
+            if (price != '1' && price != '0') {
+                layer.msg('电信只能设置0或1');
+                return
+            }
+            var lie = $(this).parents('.batch-td').prevAll().length
+            $('.input-three6').each(function () {
+               let tdCon = $(this).parents('td').prevAll().length 
+               let readOnly = $(this).attr('readOnly')
+               if (lie == tdCon && !readOnly) {
+                   $(this).val(price)
+               }
+            })
+        })
+    });
+</script>
+ 

+ 12 - 12
data/config/win/refill.ini.php

@@ -2432,32 +2432,32 @@ $guochuang_nation_phone = ['name' => 'guochuang_nation', 'store_id' => 121, 'qua
         ],
         30 => [
             ['goods_id' => 7062, 'price' => 30.21, 'quality' => 2, 'card_type' => 'chinamobile'],
-            ['goods_id' => 7062, 'price' => 30.09, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7062, 'price' => 30.12, 'quality' => 2, 'card_type' => 'chinaunicom'],
             ['goods_id' => 7062, 'price' => 30.39, 'quality' => 2, 'card_type' => 'chinatelecom']
         ],
         50 => [
             ['goods_id' => 7063, 'price' => 50.2, 'quality' => 2, 'card_type' => 'chinamobile'],
-            ['goods_id' => 7063, 'price' => 50.15, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7063, 'price' => 50.2, 'quality' => 2, 'card_type' => 'chinaunicom'],
             ['goods_id' => 7063, 'price' => 50.4, 'quality' => 2, 'card_type' => 'chinatelecom']
         ],
         100 => [
             ['goods_id' => 7064, 'price' => 100.4, 'quality' => 2, 'card_type' => 'chinamobile'],
-            ['goods_id' => 7064, 'price' => 100.3, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7064, 'price' => 100.4, 'quality' => 2, 'card_type' => 'chinaunicom'],
             ['goods_id' => 7064, 'price' => 100.45, 'quality' => 2, 'card_type' => 'chinatelecom']
         ],
         200 => [
             ['goods_id' => 7065, 'price' => 200.8, 'quality' => 2, 'card_type' => 'chinamobile'],
-            ['goods_id' => 7065, 'price' => 200.6, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7065, 'price' => 200.8, 'quality' => 2, 'card_type' => 'chinaunicom'],
             ['goods_id' => 7065, 'price' => 200.5, 'quality' => 2, 'card_type' => 'chinatelecom']
         ],
         300 => [
             ['goods_id' => 7066, 'price' => 301.2, 'quality' => 2, 'card_type' => 'chinamobile'],
-            ['goods_id' => 7066, 'price' => 300.9, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7066, 'price' => 301.2, 'quality' => 2, 'card_type' => 'chinaunicom'],
             ['goods_id' => 7066, 'price' => 300.75, 'quality' => 2, 'card_type' => 'chinatelecom']
         ],
         500 => [
             ['goods_id' => 7067, 'price' => 502, 'quality' => 2, 'card_type' => 'chinamobile'],
-            ['goods_id' => 7067, 'price' => 501.5, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7067, 'price' => 502, 'quality' => 2, 'card_type' => 'chinaunicom'],
             ['goods_id' => 7067, 'price' => 501.25, 'quality' => 2, 'card_type' => 'chinatelecom']
         ]
     ],
@@ -3024,12 +3024,12 @@ $dingchi_phone = ['name' => 'dingchi', 'store_id' => 150,'qualitys' => '2',
     'amount' => [
         10 => [['goods_id' => 7283, 'price' => 10.04, 'quality' => 2, 'card_type' => 'chinaunicom']],
         20 => [['goods_id' => 7284, 'price' => 20.08, 'quality' => 2, 'card_type' => 'chinaunicom']],
-        30 => [['goods_id' => 7285, 'price' => 30.12, 'quality' => 2, 'card_type' => 'chinaunicom']],
-        50 => [['goods_id' => 7286, 'price' => 50.2, 'quality' => 2, 'card_type' => 'chinaunicom']],
-        100 => [['goods_id' => 7287, 'price' => 100.4, 'quality' => 2, 'card_type' => 'chinaunicom']],
-        200 => [['goods_id' => 7288, 'price' => 200.8, 'quality' => 2, 'card_type' => 'chinaunicom']],
-        300 => [['goods_id' => 7289, 'price' => 301.2, 'quality' => 2, 'card_type' => 'chinaunicom']],
-        500 => [['goods_id' => 7290, 'price' => 502, 'quality' => 2, 'card_type' => 'chinaunicom']]
+        30 => [['goods_id' => 7285, 'price' => 30.081, 'quality' => 2, 'card_type' => 'chinaunicom']],
+        50 => [['goods_id' => 7286, 'price' => 50.135, 'quality' => 2, 'card_type' => 'chinaunicom']],
+        100 => [['goods_id' => 7287, 'price' => 100.27, 'quality' => 2, 'card_type' => 'chinaunicom']],
+        200 => [['goods_id' => 7288, 'price' => 200.54, 'quality' => 2, 'card_type' => 'chinaunicom']],
+        300 => [['goods_id' => 7289, 'price' => 300.81, 'quality' => 2, 'card_type' => 'chinaunicom']],
+        500 => [['goods_id' => 7290, 'price' => 501.35, 'quality' => 2, 'card_type' => 'chinaunicom']]
     ],
     'official_sn' => true, 'refill_type' => 'api'];
 

+ 12 - 12
data/config/xyz/refill.ini.php

@@ -2432,32 +2432,32 @@ $guochuang_nation_phone = ['name' => 'guochuang_nation', 'store_id' => 121, 'qua
         ],
         30 => [
             ['goods_id' => 7062, 'price' => 30.21, 'quality' => 2, 'card_type' => 'chinamobile'],
-            ['goods_id' => 7062, 'price' => 30.09, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7062, 'price' => 30.12, 'quality' => 2, 'card_type' => 'chinaunicom'],
             ['goods_id' => 7062, 'price' => 30.39, 'quality' => 2, 'card_type' => 'chinatelecom']
         ],
         50 => [
             ['goods_id' => 7063, 'price' => 50.2, 'quality' => 2, 'card_type' => 'chinamobile'],
-            ['goods_id' => 7063, 'price' => 50.15, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7063, 'price' => 50.2, 'quality' => 2, 'card_type' => 'chinaunicom'],
             ['goods_id' => 7063, 'price' => 50.4, 'quality' => 2, 'card_type' => 'chinatelecom']
         ],
         100 => [
             ['goods_id' => 7064, 'price' => 100.4, 'quality' => 2, 'card_type' => 'chinamobile'],
-            ['goods_id' => 7064, 'price' => 100.3, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7064, 'price' => 100.4, 'quality' => 2, 'card_type' => 'chinaunicom'],
             ['goods_id' => 7064, 'price' => 100.45, 'quality' => 2, 'card_type' => 'chinatelecom']
         ],
         200 => [
             ['goods_id' => 7065, 'price' => 200.8, 'quality' => 2, 'card_type' => 'chinamobile'],
-            ['goods_id' => 7065, 'price' => 200.6, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7065, 'price' => 200.8, 'quality' => 2, 'card_type' => 'chinaunicom'],
             ['goods_id' => 7065, 'price' => 200.5, 'quality' => 2, 'card_type' => 'chinatelecom']
         ],
         300 => [
             ['goods_id' => 7066, 'price' => 301.2, 'quality' => 2, 'card_type' => 'chinamobile'],
-            ['goods_id' => 7066, 'price' => 300.9, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7066, 'price' => 301.2, 'quality' => 2, 'card_type' => 'chinaunicom'],
             ['goods_id' => 7066, 'price' => 300.75, 'quality' => 2, 'card_type' => 'chinatelecom']
         ],
         500 => [
             ['goods_id' => 7067, 'price' => 502, 'quality' => 2, 'card_type' => 'chinamobile'],
-            ['goods_id' => 7067, 'price' => 501.5, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7067, 'price' => 502, 'quality' => 2, 'card_type' => 'chinaunicom'],
             ['goods_id' => 7067, 'price' => 501.25, 'quality' => 2, 'card_type' => 'chinatelecom']
         ]
     ],
@@ -3024,12 +3024,12 @@ $dingchi_phone = ['name' => 'dingchi', 'store_id' => 150,'qualitys' => '2',
     'amount' => [
         10 => [['goods_id' => 7283, 'price' => 10.04, 'quality' => 2, 'card_type' => 'chinaunicom']],
         20 => [['goods_id' => 7284, 'price' => 20.08, 'quality' => 2, 'card_type' => 'chinaunicom']],
-        30 => [['goods_id' => 7285, 'price' => 30.12, 'quality' => 2, 'card_type' => 'chinaunicom']],
-        50 => [['goods_id' => 7286, 'price' => 50.2, 'quality' => 2, 'card_type' => 'chinaunicom']],
-        100 => [['goods_id' => 7287, 'price' => 100.4, 'quality' => 2, 'card_type' => 'chinaunicom']],
-        200 => [['goods_id' => 7288, 'price' => 200.8, 'quality' => 2, 'card_type' => 'chinaunicom']],
-        300 => [['goods_id' => 7289, 'price' => 301.2, 'quality' => 2, 'card_type' => 'chinaunicom']],
-        500 => [['goods_id' => 7290, 'price' => 502, 'quality' => 2, 'card_type' => 'chinaunicom']]
+        30 => [['goods_id' => 7285, 'price' => 30.081, 'quality' => 2, 'card_type' => 'chinaunicom']],
+        50 => [['goods_id' => 7286, 'price' => 50.135, 'quality' => 2, 'card_type' => 'chinaunicom']],
+        100 => [['goods_id' => 7287, 'price' => 100.27, 'quality' => 2, 'card_type' => 'chinaunicom']],
+        200 => [['goods_id' => 7288, 'price' => 200.54, 'quality' => 2, 'card_type' => 'chinaunicom']],
+        300 => [['goods_id' => 7289, 'price' => 300.81, 'quality' => 2, 'card_type' => 'chinaunicom']],
+        500 => [['goods_id' => 7290, 'price' => 501.35, 'quality' => 2, 'card_type' => 'chinaunicom']]
     ],
     'official_sn' => true, 'refill_type' => 'api'];
 

+ 12 - 12
data/config/xyzadm/refill.ini.php

@@ -2432,32 +2432,32 @@ $guochuang_nation_phone = ['name' => 'guochuang_nation', 'store_id' => 121, 'qua
         ],
         30 => [
             ['goods_id' => 7062, 'price' => 30.21, 'quality' => 2, 'card_type' => 'chinamobile'],
-            ['goods_id' => 7062, 'price' => 30.09, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7062, 'price' => 30.12, 'quality' => 2, 'card_type' => 'chinaunicom'],
             ['goods_id' => 7062, 'price' => 30.39, 'quality' => 2, 'card_type' => 'chinatelecom']
         ],
         50 => [
             ['goods_id' => 7063, 'price' => 50.2, 'quality' => 2, 'card_type' => 'chinamobile'],
-            ['goods_id' => 7063, 'price' => 50.15, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7063, 'price' => 50.2, 'quality' => 2, 'card_type' => 'chinaunicom'],
             ['goods_id' => 7063, 'price' => 50.4, 'quality' => 2, 'card_type' => 'chinatelecom']
         ],
         100 => [
             ['goods_id' => 7064, 'price' => 100.4, 'quality' => 2, 'card_type' => 'chinamobile'],
-            ['goods_id' => 7064, 'price' => 100.3, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7064, 'price' => 100.4, 'quality' => 2, 'card_type' => 'chinaunicom'],
             ['goods_id' => 7064, 'price' => 100.45, 'quality' => 2, 'card_type' => 'chinatelecom']
         ],
         200 => [
             ['goods_id' => 7065, 'price' => 200.8, 'quality' => 2, 'card_type' => 'chinamobile'],
-            ['goods_id' => 7065, 'price' => 200.6, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7065, 'price' => 200.8, 'quality' => 2, 'card_type' => 'chinaunicom'],
             ['goods_id' => 7065, 'price' => 200.5, 'quality' => 2, 'card_type' => 'chinatelecom']
         ],
         300 => [
             ['goods_id' => 7066, 'price' => 301.2, 'quality' => 2, 'card_type' => 'chinamobile'],
-            ['goods_id' => 7066, 'price' => 300.9, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7066, 'price' => 301.2, 'quality' => 2, 'card_type' => 'chinaunicom'],
             ['goods_id' => 7066, 'price' => 300.75, 'quality' => 2, 'card_type' => 'chinatelecom']
         ],
         500 => [
             ['goods_id' => 7067, 'price' => 502, 'quality' => 2, 'card_type' => 'chinamobile'],
-            ['goods_id' => 7067, 'price' => 501.5, 'quality' => 2, 'card_type' => 'chinaunicom'],
+            ['goods_id' => 7067, 'price' => 502, 'quality' => 2, 'card_type' => 'chinaunicom'],
             ['goods_id' => 7067, 'price' => 501.25, 'quality' => 2, 'card_type' => 'chinatelecom']
         ]
     ],
@@ -3024,12 +3024,12 @@ $dingchi_phone = ['name' => 'dingchi', 'store_id' => 150,'qualitys' => '2',
     'amount' => [
         10 => [['goods_id' => 7283, 'price' => 10.04, 'quality' => 2, 'card_type' => 'chinaunicom']],
         20 => [['goods_id' => 7284, 'price' => 20.08, 'quality' => 2, 'card_type' => 'chinaunicom']],
-        30 => [['goods_id' => 7285, 'price' => 30.12, 'quality' => 2, 'card_type' => 'chinaunicom']],
-        50 => [['goods_id' => 7286, 'price' => 50.2, 'quality' => 2, 'card_type' => 'chinaunicom']],
-        100 => [['goods_id' => 7287, 'price' => 100.4, 'quality' => 2, 'card_type' => 'chinaunicom']],
-        200 => [['goods_id' => 7288, 'price' => 200.8, 'quality' => 2, 'card_type' => 'chinaunicom']],
-        300 => [['goods_id' => 7289, 'price' => 301.2, 'quality' => 2, 'card_type' => 'chinaunicom']],
-        500 => [['goods_id' => 7290, 'price' => 502, 'quality' => 2, 'card_type' => 'chinaunicom']]
+        30 => [['goods_id' => 7285, 'price' => 30.081, 'quality' => 2, 'card_type' => 'chinaunicom']],
+        50 => [['goods_id' => 7286, 'price' => 50.135, 'quality' => 2, 'card_type' => 'chinaunicom']],
+        100 => [['goods_id' => 7287, 'price' => 100.27, 'quality' => 2, 'card_type' => 'chinaunicom']],
+        200 => [['goods_id' => 7288, 'price' => 200.54, 'quality' => 2, 'card_type' => 'chinaunicom']],
+        300 => [['goods_id' => 7289, 'price' => 300.81, 'quality' => 2, 'card_type' => 'chinaunicom']],
+        500 => [['goods_id' => 7290, 'price' => 501.35, 'quality' => 2, 'card_type' => 'chinaunicom']]
     ],
     'official_sn' => true, 'refill_type' => 'api'];
 

binární
helper/refill/api/xyz/guochuang/20211112北京移动湖南山东电信.png


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

@@ -74,7 +74,7 @@ class config
         "4-30-18" => 29.835, "4-50-18" => 49.725, "4-100-18" => 99.45, "4-200-18" => 198.3,//湖南 18
         "4-10-19" => 9.965, "4-20-19" => 19.93, "4-30-19" => 29.895, "4-50-19" => 49.825, "4-100-19" => 99.65, "4-200-19" => 199.3, "4-300-19" => 298.95, "4-500-19" => 498.25,//广东 19
         "4-10-7" => 9.885, "4-20-7" => 19.77, "4-30-7" => 29.655, "4-50-7" => 49.425, "4-100-7" => 98.85, "4-200-7" => 197.7, "4-300-7" => 296.55, "4-500-7" => 494.25,//吉林 7
-        "4-10-1" => 9.99, "4-20-1" => 19.98, "4-30-1" => 29.97, "4-50-1" => 49.95, "4-100-1" => 99.9, "4-200-1" => 199.8, "4-300-1" => 299.7, "4-500-1" => 499.5,//北京 1
+        "4-10-1" => 10.31, "4-20-1" => 20.32, "4-30-1" => 30.33, "4-50-1" => 50.35, "4-100-1" => 100.4, "4-200-1" => 200.8, "4-300-1" => 299.7, "4-500-1" => 499.5,//北京 1
         "4-10-22" => 10.015, "4-20-22" => 20.03, "4-30-22" => 30.045, "4-50-22" => 50.075, "4-100-22" => 100.15, "4-200-22" => 200.3, "4-300-22" => 300.45, "4-500-22" => 500.75,//重庆 22
         "4-10-15" => 9.945, "4-20-15" => 19.89, "4-30-15" => 29.835, "4-50-15" => 49.725, "4-100-15" => 99.45, "4-200-15" => 198.9, "4-300-15" => 298.35, "4-500-15" => 497.25,//山东 15
         "4-10-10" => 9.945, "4-20-10" => 19.89, "4-30-10" => 29.835, "4-50-10" => 49.725, "4-100-10" => 99.45, "4-200-10" => 198.9, "4-300-10" => 298.35, "4-500-10" => 497.25,//江苏 10
@@ -88,5 +88,7 @@ class config
         //电信
         "6-10-27" => 9.955, "6-20-27" => 19.91, "6-30-27" => 29.865, "6-50-27" => 49.775, "6-100-27" => 99.55, "6-200-27" => 199.1, "6-300-27" => 298.65, "6-500-27" => 497.75,//陕西 27
         "6-10-4" => 9.935, "6-20-4" => 19.87, "6-30-4" => 29.805, "6-50-4" => 49.675, "6-100-4" => 99.35, "6-200-4" => 198.7, "6-300-4" => 298.05, "6-500-4" => 496.75,//山西 4
+        "6-10-18" => 10.31, "6-20-18" => 20.32, "6-30-18" => 30.33, "6-50-18" => 50.35, "6-100-18" => 100.4,//湖南 18
+        "6-10-15" => 10.31, "6-20-15" => 20.32, "6-30-15" => 30.33, "6-50-15" => 50.35, "6-100-15" => 100.4,//山东 15
     ];
 }

binární
helper/refill/api/xyz/guochuang_nation/20211112联通调价.png