优化教辅文件没有文件名称时异常问题。
This commit is contained in:
@@ -48,7 +48,7 @@ class Lebo extends Command
|
||||
private function start()
|
||||
{
|
||||
// $savepath = store_path() . '/lebolebo/';
|
||||
$savepath = 'E:/lebolebo/';
|
||||
$savepath = 'D:/lebolebo/';
|
||||
$account = new Account();
|
||||
$account_info = $account->login('13880615958','robo520');
|
||||
if($account_info['code'] == 500){
|
||||
@@ -233,6 +233,9 @@ class Lebo extends Command
|
||||
}
|
||||
$resourceLists = $kk['content']['resourceList'];
|
||||
foreach($resourceLists as $resourceList){
|
||||
if(empty($resourceList['fileName'])){
|
||||
continue;
|
||||
}
|
||||
$file = $jiaofupath . $resourceList['fileName'] ;
|
||||
if(Str::endsWith($file,['.mp4','.mov'])){
|
||||
$dd = $curr->getVideoUrl($resourceList['fileUrl']);
|
||||
|
||||
Reference in New Issue
Block a user