|
@@ -179,7 +179,7 @@ class refillControl extends merchantControl
|
|
|
return !empty($product);
|
|
|
}
|
|
|
|
|
|
- public function add_thirdOp()
|
|
|
+ private function add_third_product($third_product_type)
|
|
|
{
|
|
|
[$success,$error] = $this->check_third($_GET);
|
|
|
if($success === false) {
|
|
@@ -215,7 +215,7 @@ class refillControl extends merchantControl
|
|
|
'product_code' => $product_code,
|
|
|
'quantity' => $quantity,
|
|
|
'third_card_type' => $third_card_type,
|
|
|
- 'third_product_type' => mtopcard\ThirdOnlineProduct,
|
|
|
+ 'third_product_type' => $third_product_type,
|
|
|
'order_time' => $order_time
|
|
|
];
|
|
|
|
|
@@ -232,6 +232,16 @@ class refillControl extends merchantControl
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public function add_thirdOp()
|
|
|
+ {
|
|
|
+ return $this->add_third_product(mtopcard\ThirdOnlineProduct);
|
|
|
+ }
|
|
|
+
|
|
|
+ public function add_netOp()
|
|
|
+ {
|
|
|
+ return $this->add_third_product(mtopcard\ThirdNetTrafficPoroduct);
|
|
|
+ }
|
|
|
+
|
|
|
private function check_electirc($params)
|
|
|
{
|
|
|
if(empty($params['cardno'])) {
|