stanley-king 4 年之前
父节点
当前提交
f18d00e465
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      helper/refill/RefillBase.php

+ 4 - 0
helper/refill/RefillBase.php

@@ -405,6 +405,10 @@ class RefillBase
 
         $chname = $refill_info['channel_name'];
         $provider = $this->mPolicy->provider($chname);
+        if(empty($provider)) {
+            Log::record(__FUNCTION__ . " provider is null",Log::DEBUG);
+            return false;
+        }
         [$state, $order_state] = $provider->query($refill_info);
 
         if(!$state) {