|
@@ -1087,7 +1087,7 @@ class merchantControl extends SystemControl
|
|
|
$provider_list[$key]['store_name'] = $stores[$provider['store_id']];
|
|
|
}
|
|
|
$opened_text = ['使用中', '已禁用'];
|
|
|
- $type_text = ['油卡', '手机充值卡'];
|
|
|
+ $type_text = ['油卡', '手机充值卡', '三方增值业务'];
|
|
|
Tpl::output('opened_text', $opened_text);
|
|
|
Tpl::output('type_text', $type_text);
|
|
|
Tpl::output('provider_list', $provider_list);
|
|
@@ -1188,8 +1188,10 @@ class merchantControl extends SystemControl
|
|
|
global $config;
|
|
|
$oil_configs = $config['oil_providers'];
|
|
|
$pho_configs = $config['phone_providers'];
|
|
|
+ $third_configs = $config['third_providers'];
|
|
|
$oils = $name_val($oil_configs);
|
|
|
$phones = $name_val($pho_configs);
|
|
|
+ $third = $name_val($third_configs);
|
|
|
|
|
|
$mod_prov = Model('refill_provider');
|
|
|
|
|
@@ -1200,10 +1202,17 @@ class merchantControl extends SystemControl
|
|
|
$phone_items = $mod_prov->getProviderList(['type' => 2]);
|
|
|
$phone_items = $name_val($phone_items);
|
|
|
[$phone_inserts, $phone_updates] = $match($phones, $phone_items);
|
|
|
+
|
|
|
+ $third_items = $mod_prov->getProviderList(['type' => 3]);
|
|
|
+ $third_items = $name_val($third_items);
|
|
|
+ [$third_inserts, $third_updates] = $match($third, $third_items);
|
|
|
+
|
|
|
$inserter($mod_prov, 1, $oil_inserts);
|
|
|
$inserter($mod_prov, 2, $phone_inserts);
|
|
|
+ $inserter($mod_prov, 3, $third_inserts);
|
|
|
$updater($mod_prov, $oil_updates);
|
|
|
$updater($mod_prov, $phone_updates);
|
|
|
+ $updater($mod_prov, $third_updates);
|
|
|
}
|
|
|
|
|
|
public function changeProviderStateOp()
|