|
@@ -2,10 +2,13 @@
|
|
|
|
|
|
namespace refill\lingzhman;
|
|
|
|
|
|
+
|
|
|
+
|
|
|
require_once(BASE_HELPER_RAPI_PATH . '/lingzhman/config.php');
|
|
|
|
|
|
use refill;
|
|
|
use Log;
|
|
|
+use mtopcard;
|
|
|
|
|
|
class RefillPhone extends refill\IRefillPhone
|
|
|
{
|
|
@@ -24,8 +27,18 @@ class RefillPhone extends refill\IRefillPhone
|
|
|
return $params;
|
|
|
}
|
|
|
|
|
|
+ private function none_support($card_no)
|
|
|
+ {
|
|
|
+ [$validate,$card_type,$regin_no,$isTransfer,$card_state,$black] = mtopcard\valid_phone($card_no);
|
|
|
+ return $isTransfer;
|
|
|
+ }
|
|
|
+
|
|
|
public function add($card_no, $card_type, $amount, $params,&$net_errno = 0)
|
|
|
{
|
|
|
+ if($this->none_support($card_no)) {
|
|
|
+ return [false, '不支持转网', false];
|
|
|
+ }
|
|
|
+
|
|
|
$params = $this->req_params($card_no, $params['order_sn']);
|
|
|
$params['flowCode'] = config::ProductIDS[$card_type][$amount];
|
|
|
if (empty($params['flowCode'])) {
|