stanley-king 3 年之前
父节点
当前提交
e2f5f7812f

+ 1 - 1
helper/refill/IRefill.php

@@ -127,7 +127,7 @@ abstract class IRefill
         return $this->mAmountTypes;
         return $this->mAmountTypes;
     }
     }
 
 
-    public function goods($quality,int $amount,int $card_type,$other)
+    public function goods($quality,int $amount,int $card_type,$regin_no,$other)
     {
     {
         $maps = $this->mAmountTypes[$quality] ?? [];
         $maps = $this->mAmountTypes[$quality] ?? [];
         $key = "{$amount}-{$card_type}";
         $key = "{$amount}-{$card_type}";

+ 1 - 1
helper/refill/RefillBase.php

@@ -327,7 +327,7 @@ class RefillBase
         {
         {
             $channel_name = $provider->name();
             $channel_name = $provider->name();
 
 
-            [$goods_id, $price] = $provider->goods($quality,$amount,$card_type,$third_params);
+            [$goods_id, $price] = $provider->goods($quality,$amount,$card_type,$regin_no,$third_params);
             if ($goods_id <= 0) continue;
             if ($goods_id <= 0) continue;
             if(PolicyUtil::mixed_quality($org_quality) == false && $price > $mch_price) {
             if(PolicyUtil::mixed_quality($org_quality) == false && $price > $mch_price) {
                 //组合通道,以原始质量算价格. //通道价格大于客户价格,换通道.
                 //组合通道,以原始质量算价格. //通道价格大于客户价格,换通道.

+ 2 - 2
helper/refill/api/lingzh/sctongqian/RefillPhone.php

@@ -14,9 +14,9 @@ class RefillPhone extends refill\IRefillPhone
         parent::__construct($cfgs);
         parent::__construct($cfgs);
     }
     }
 
 
-    public function goods($quality,int $amount,int $card_type,$other)
+    public function goods($quality,int $amount,int $card_type,$regin_no,$other)
     {
     {
-        [$goods_id, $price] = parent::goods($quality,$amount,$card_type,$other);
+        [$goods_id, $price] = parent::goods($quality,$amount,$card_type,$regin_no,$other);
         if($goods_id <= 0) return [0,0];
         if($goods_id <= 0) return [0,0];
 
 
         $store_id = $this->mStoreID;
         $store_id = $this->mStoreID;

+ 2 - 2
helper/refill/api/xyz/lingzhthird/RefillPhone.php

@@ -14,9 +14,9 @@ class RefillPhone extends refill\IRefillPhone
         parent::__construct($cfgs);
         parent::__construct($cfgs);
     }
     }
 
 
-    public function goods($quality,int $amount,int $card_type,$other)
+    public function goods($quality,int $amount,int $card_type,$regin_no,$other)
     {
     {
-        [$goods_id, $price] = parent::goods($quality,$amount,$card_type,$other);
+        [$goods_id, $price] = parent::goods($quality,$amount,$card_type,$regin_no,$other);
         if($goods_id <= 0) return [0,0];
         if($goods_id <= 0) return [0,0];
 
 
         $store_id = $this->mStoreID;
         $store_id = $this->mStoreID;

+ 2 - 2
helper/refill/api/xyz/suning/RefillPhone.php

@@ -14,9 +14,9 @@ class RefillPhone extends refill\IRefillPhone
         parent::__construct($cfgs);
         parent::__construct($cfgs);
     }
     }
 
 
-    public function goods($quality,int $amount,int $card_type,$other)
+    public function goods($quality,int $amount,int $card_type,$regin_no,$other)
     {
     {
-        [$goods_id, $price] = parent::goods($quality,$amount,$card_type,$other);
+        [$goods_id, $price] = parent::goods($quality,$amount,$card_type,$regin_no,$other);
         if($goods_id <= 0) return [0,0];
         if($goods_id <= 0) return [0,0];
 
 
         $store_id = $this->mStoreID;
         $store_id = $this->mStoreID;