|
@@ -99,11 +99,11 @@ class merchant_refillControl extends mbMerchantControl
|
|
|
'card_no' => $no,
|
|
|
'mch_order' => "",
|
|
|
'notify_url' => ""];
|
|
|
-
|
|
|
+
|
|
|
$card_type = mtopcard\simple_card_type($no);
|
|
|
[$can_refill, $period] = refill\util::can_commit($no, $card_type);
|
|
|
if ($can_refill === false) {
|
|
|
- $ret = refill\util::async_add($params, $period, $period);
|
|
|
+ $ret = refill\util::async_add('add', $params, $period);
|
|
|
} else {
|
|
|
$ret = refill\util::push_add($params);
|
|
|
}
|