stanley-king 3 lat temu
rodzic
commit
ae67645be9

+ 1 - 0
helper/refill/IRefill.php

@@ -59,6 +59,7 @@ abstract class IRefill
 
     abstract public function add($card_no,$card_type,$amount,$params,&$net_errno = 0);
     abstract public function query($refill_info);
+    abstract public function balance();
 
     //分省相关
     public function setRegins($regins) {

+ 5 - 0
helper/refill/IRefillOil.php

@@ -9,4 +9,9 @@ abstract class IRefillOil extends IRefill
     {
         parent::__construct($cfgs);
     }
+
+    public function balance()
+    {
+        return [false, 'RefillOil 暂无余额接口'];
+    }
 }

+ 6 - 0
helper/refill/IRefillPhone.php

@@ -9,4 +9,10 @@ abstract class IRefillPhone extends IRefill
     {
         parent::__construct($cfgs);
     }
+
+    public function balance()
+    {
+        return [false, 'RefillPhone 暂无余额接口'];
+    }
+
 }

+ 1 - 4
helper/refill/api/xyz/afand/RefillPhone.php

@@ -98,10 +98,7 @@ class RefillPhone extends refill\IRefillPhone
         }
     }
 
-    public function balance()
-    {
-        return [false, '暂无余额接口'];
-    }
+
 
     private function sign($params)
     {