瀏覽代碼

third product

xiaoyu 1 年之前
父節點
當前提交
a5e39505e9

+ 3 - 5
admin/control/refill_third.php

@@ -119,11 +119,9 @@ class refill_thirdControl extends SystemControl
     {
         $system_code = $_GET['system_code'] ?? $_POST['system_code'];
         $mod = Model('refill_third');
-        $third_product = $mod->findThirdProduct($system_code);
-        if(empty($third_product)) {
-            showMessage('产品不存在');
+        if(!empty($system_code)) {
+            $condition['system_code'] = $system_code;
         }
-        $condition['system_code'] = $system_code;
         if(!empty($_GET['store_id']))
         {
             $condition['store_id'] = $_GET['store_id'];
@@ -134,7 +132,7 @@ class refill_thirdControl extends SystemControl
 
         Tpl::output('providers', $providers);
         Tpl::output('product_list', $list);
-        Tpl::output('third_product', $third_product);
+        Tpl::output('system_code', $system_code);
         Tpl::output('recharge_type_text', ['直充','卡密','直充+卡密']);
         Tpl::output('page', $mod->showpage());
         Tpl::showpage('third.proprice.list');

+ 1 - 0
admin/templates/default/third.product.add.php

@@ -7,6 +7,7 @@
             <ul class="tab-base">
                 <li><a href="index.php?act=refill_third&op=index"><span>增值产品列表</span></a></li>
                 <li><a href="JavaScript:void(0);" class="current"><span><?php echo $lang['nc_new'] ?>产品</span></a></li>
+                <li><a href="index.php?act=refill_third&op=third_proprice"><span>通道产品列表</span></a></li>
             </ul>
         </div>
     </div>

+ 1 - 0
admin/templates/default/third.product.edit.php

@@ -7,6 +7,7 @@
             <ul class="tab-base">
                 <li><a href="index.php?act=refill_third&op=index"><span>增值产品列表</span></a></li>
                 <li><a href="JavaScript:void(0);" class="current"><span><?php echo $lang['nc_update'] ?></span></a></li>
+                <li><a href="index.php?act=refill_third&op=third_proprice"><span>通道产品列表</span></a></li>
             </ul>
         </div>
     </div>

+ 1 - 0
admin/templates/default/third.product.list.php

@@ -7,6 +7,7 @@
             <ul class="tab-base">
                 <li><a href="JavaScript:void(0);" class="current"><span>增值产品列表</span></a></li>
                 <li><a href="index.php?act=refill_third&op=product_add"><span><?php echo $lang['nc_new'] ?>产品</span></a></li>
+                <li><a href="index.php?act=refill_third&op=third_proprice"><span>通道产品列表</span></a></li>
             </ul>
         </div>
     </div>

+ 3 - 5
admin/templates/default/third.proprice.list.php

@@ -6,7 +6,9 @@
             <h3>增值业务管理</h3>
             <ul class="tab-base">
                 <li><a href="JavaScript:void(0);" class="current"><span>通道产品列表</span></a></li>
+                <?php if(!empty($output['system_code'])) {?>
                 <li><a href="index.php?act=refill_third&op=third_proprice_add&system_code=<?php echo $_GET['system_code'];?>"><span><?php echo $lang['nc_new'] ?>通道产品</span></a></li>
+                <?php }?>
             </ul>
         </div>
     </div>
@@ -64,12 +66,10 @@
             <tr class="thead">
                 <th>通道名称</th>
                 <th>通道产品名称</th>
-                <th>产品名称</th>
                 <th>店铺ID</th>
                 <th>商品ID</th>
                 <th>通道code</th>
                 <th>椰子code</th>
-                <th>面值</th>
                 <th>折扣价格</th>
                 <th>充值类型</th>
                 <th class="align-center">操作</th>
@@ -81,12 +81,10 @@
                     <tr class="trFlex">
                         <td><?php echo $v['channel_name']; ?></td>
                         <td><?php echo $v['channel_product_name']; ?></td>
-                        <td><?php echo $output['third_product']['product_name']; ?></td>
                         <td><?php echo $v['store_id']; ?></td>
                         <td><?php echo $v['goods_id']; ?></td>
                         <td><?php echo $v['channel_code']; ?></td>
-                        <td><?php echo $output['third_product']['system_code']; ?></td>
-                        <td><?php echo $output['third_product']['refill_amount']; ?></td>
+                        <td><?php echo $v['system_code']; ?></td>
                         <td><?php echo $v['channel_amount']; ?></td>
                         <td><?php echo $output['recharge_type_text'][$v['recharge_type']-1]; ?></td>
                         <td class="align-center w200">

+ 1 - 1
helper/refill/api/xyz/by_online/RefillPhone.php

@@ -121,7 +121,7 @@ class RefillPhone extends refill\IRefillPhone
             if (empty($resp)) {
                 return [false, '系统错误'];
             } elseif ($resp['code'] === 1000) {
-                return [true, $resp['data']['balance'] * 100];
+                return [true, $resp['data']['balance'] / 100];
             } else {
                 return [false, $resp['msg']];
             }