shen 1 年之前
父節點
當前提交
82af355502
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      app/Handlers/EcommerceBillHandler.php

+ 3 - 0
app/Handlers/EcommerceBillHandler.php

@@ -29,6 +29,9 @@ class EcommerceBillHandler extends Command
         $result=$handle->curl($url,'',$header,'GET');
         $res=json_decode($result,true);
         Log::info($res);
+        if(!array_key_exists('download_bill_list', $res)){
+            return ;
+        }
         Log::info($bill_date.'下载资金账单,页数为'.count($res['download_bill_list']));
         foreach($res['download_bill_list'] as $key=>$val){
             $ciphertext= $this->down($val['download_url']);