|
@@ -77,20 +77,20 @@ class refillControl extends merchantControl
|
|
|
return self::outerr(206,"平台不支持该卡充值.");
|
|
|
}
|
|
|
|
|
|
- $card_type = mtopcard\card_type($card_no);
|
|
|
- if($card_type === mtopcard\SinopecCard || $card_type === mtopcard\PetroChinaCard)
|
|
|
- {
|
|
|
- $allow = refill\RefillFactory::instance()->allow($this->mchid(),$card_type,$amount);
|
|
|
- if(!$allow) {
|
|
|
- if ($card_type === mtopcard\SinopecCard) {
|
|
|
- $text = "中石化";
|
|
|
- }
|
|
|
- else {
|
|
|
- $text = "中石油";
|
|
|
- }
|
|
|
- return self::outerr(207,"今日贵司{$amount}{$text}充值库存已经用完.");
|
|
|
- }
|
|
|
- }
|
|
|
+// $card_type = mtopcard\card_type($card_no);
|
|
|
+// if($card_type === mtopcard\SinopecCard || $card_type === mtopcard\PetroChinaCard)
|
|
|
+// {
|
|
|
+// $allow = refill\RefillFactory::instance()->allow($this->mchid(),$card_type,$amount);
|
|
|
+// if(!$allow) {
|
|
|
+// if ($card_type === mtopcard\SinopecCard) {
|
|
|
+// $text = "中石化";
|
|
|
+// }
|
|
|
+// else {
|
|
|
+// $text = "中石油";
|
|
|
+// }
|
|
|
+// return self::outerr(207,"今日贵司{$amount}{$text}充值库存已经用完.");
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
$minfo = new member_info($this->adminid());
|
|
|
$available = $minfo->available_predeposit();
|