|
@@ -7,6 +7,7 @@
|
|
|
***/
|
|
|
|
|
|
defined('InShopNC') or exit('Access Invalid!');
|
|
|
+require_once(BASE_HELPER_PATH . '/mtopcard/mtopcard.php');
|
|
|
class SystemControl
|
|
|
{
|
|
|
/**
|
|
@@ -329,34 +330,28 @@ class SystemControl
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- protected function quality_format($quality) {
|
|
|
- switch ($quality) {
|
|
|
- case 1:
|
|
|
- $text = "普充";
|
|
|
- break;
|
|
|
- case 2:
|
|
|
- $text = "快充";
|
|
|
- break;
|
|
|
- case 3:
|
|
|
- $text = "卡密";
|
|
|
- break;
|
|
|
- case 4:
|
|
|
- $text = "三方";
|
|
|
- break;
|
|
|
- case 5:
|
|
|
- $text = "慢充二十四小时";
|
|
|
- break;
|
|
|
- case 6:
|
|
|
- $text = "慢充六小时";
|
|
|
- break;
|
|
|
- case 7:
|
|
|
- $text = "慢充两小时";
|
|
|
- break;
|
|
|
- default:
|
|
|
- return '其他';
|
|
|
- break;
|
|
|
- }
|
|
|
- return $text;
|
|
|
+ protected function quality_format($quality,$card_type) {
|
|
|
+ $oil_text = [
|
|
|
+ 1 => '无流水',
|
|
|
+ 5 => '有流水'
|
|
|
+ ];
|
|
|
+ $phone_text = [
|
|
|
+ 1 => '普充',
|
|
|
+ 2 => '快充',
|
|
|
+ 3 => '卡密',
|
|
|
+ 4 => '三方',
|
|
|
+ 5 => '慢充二十四小时',
|
|
|
+ 6 => '慢充六小时',
|
|
|
+ 7 => '慢充两小时'
|
|
|
+ ];
|
|
|
+ $text = [
|
|
|
+ mtopcard\PetroChinaCard => $oil_text,
|
|
|
+ mtopcard\SinopecCard => $oil_text,
|
|
|
+ mtopcard\ChinaMobileCard => $phone_text,
|
|
|
+ mtopcard\ChinaUnicomCard => $phone_text,
|
|
|
+ mtopcard\ChinaTelecomCard => $phone_text
|
|
|
+ ];
|
|
|
+ return $text[$card_type][$quality] ?? '未知';
|
|
|
}
|
|
|
|
|
|
protected function elapse_time($seconds)
|