shen 1 anno fa
parent
commit
82af355502
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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']);