Bläddra i källkod

add card_type 7

ayHaru 3 år sedan
förälder
incheckning
ea383cec90

+ 3 - 1
admin/control/ordersendlist.php

@@ -48,7 +48,7 @@ class ordersendlistControl extends SystemControl
             $time_cond[] = ['lt', (time() - 900)];
         }
         if (!empty($_GET['card_type'])) {
-            if (in_array($_GET['card_type'], ['1', '2', '4', '5', '6'])) {
+            if (in_array($_GET['card_type'], ['1', '2', '4', '5', '6', '7'])) {
                 $condition['refill_order.card_type'] = $_GET['card_type'];
             }
             if ($_GET['card_type'] == 'oil') {
@@ -109,6 +109,8 @@ class ordersendlistControl extends SystemControl
             return '中国联通';
         } elseif ($card_type == 6) { //中国电信
             return '中国电信';
+        } elseif ($card_type == 7) { //中国电信
+            return '增值业务';
         } else {
             return 'unknown';
         }

+ 1 - 1
admin/control/refill_order.php

@@ -53,7 +53,7 @@ class refill_orderControl extends SystemControl
         }
 
         if (!empty($_GET['card_type'])) {
-            if (in_array($_GET['card_type'], ['1', '2', '4', '5', '6'])) {
+            if (in_array($_GET['card_type'], ['1', '2', '4', '5', '6', '7'])) {
                 $condition['refill_order.card_type'] = intval($_GET['card_type']);
             }
             if ($_GET['card_type'] == 'oil') {

+ 2 - 0
admin/templates/default/refill.order.index.php

@@ -111,6 +111,8 @@
                                 <?php if ($_GET['card_type'] == '5'){ ?>selected<?php } ?>>中国联通</option>
                         <option value="6"
                                 <?php if ($_GET['card_type'] == '6'){ ?>selected<?php } ?>>中国电信</option>
+                        <option value="7"
+                                <?php if ($_GET['card_type'] == '7'){ ?>selected<?php } ?>>增值业务</option>
                         <option value="oil"
                                 <?php if ($_GET['card_type'] == 'oil'){ ?>selected<?php } ?>>油费</option>
                         <option value="phone"

+ 2 - 0
admin/templates/default/refill.order.send.index.php

@@ -62,6 +62,8 @@
                                 <?php if ($_GET['card_type'] == '5'){ ?>selected<?php } ?>>中国联通</option>
                         <option value="6"
                                 <?php if ($_GET['card_type'] == '6'){ ?>selected<?php } ?>>中国电信</option>
+                        <option value="7"
+                                <?php if ($_GET['card_type'] == '7'){ ?>selected<?php } ?>>增值业务</option>
                         <option value="oil"
                                 <?php if ($_GET['card_type'] == 'oil'){ ?>selected<?php } ?>>油费</option>
                         <option value="phone"

+ 2 - 0
mchsrv/control/merchant_order.php

@@ -187,6 +187,8 @@ class merchant_orderControl extends mbMerchantControl
             return '中国联通';
         } elseif ($card_type == mtopcard\ChinaTelecomCard) { //中国电信
             return '中国电信';
+        } elseif ($card_type == mtopcard\ThirdRefillCard) { //中国电信
+            return '增值业务';
         } else {
             return 'unknown';
         }

+ 2 - 0
mobile/control/merchant_order.php

@@ -172,6 +172,8 @@ class merchant_orderControl extends mbMerchantControl
             return '中国联通';
         } elseif ($card_type == mtopcard\ChinaTelecomCard) { //中国电信
             return '中国电信';
+        } elseif ($card_type == mtopcard\ThirdRefillCard) { //中国电信
+            return '增值业务';
         } else {
             return 'unknown';
         }