Procházet zdrojové kódy

xiaoniu addapi add param mobile

xiaoyu před 3 roky
rodič
revize
aaea2b5638
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3 0
      helper/refill/api/xyz/xiaoniu/RefillOil.php

+ 3 - 0
helper/refill/api/xyz/xiaoniu/RefillOil.php

@@ -30,6 +30,8 @@ class RefillOil extends refill\IRefillOil
     public function add($card_no, $card_type, $amount, $params,&$net_errno = 0)
     {
         $params = $this->req_params($card_no, $amount, $params['order_sn']);
+        $card_info = refill\util::read_card($card_no,$card_type);
+        $params['mobile'] = $card_info['bind_phone'];
         $sign = $this->sign($params);
         $params['sign'] = $sign;
 
@@ -45,6 +47,7 @@ class RefillOil extends refill\IRefillOil
             if (empty($resp)) {
                 return [false, '系统错误', true];
             } elseif ($resp['code'] === '0') {
+                refill\util::inc_card($card_no,$card_info);
                 return [true, $resp['orderNo'], false];
             } else {
                 return [false, $resp['msg'], false];