在BaiduWork类中,增加了ondup参数以解决目录中存在同名文件无法转存的问题。

This commit is contained in:
admin
2025-04-03 13:42:11 +08:00
parent 5a58163bf0
commit 3cbd04bfe0
3 changed files with 50 additions and 43 deletions
+3
View File
@@ -241,6 +241,9 @@ class BaiduPan extends BasePan
$cookie = Config('qfshop.baidu_cookie');
$network = new \netdisk\pan\BaiduWork($cookie);
$bdstoken = $network->getBdstoken();
$network->setBdstoken($bdstoken);
// 调用批量删除方法
$result = $network->batchDeleteFiles($filePaths);
return $result;
+2 -1
View File
@@ -184,7 +184,8 @@ class BaiduWork
'bdstoken' => $this->bdstoken,
'channel' => 'chunlei',
'web' => '1',
'clienttype' => '0'
'clienttype' => '0',
'ondup' => 'newcopy' //目录中存在同名文件无法转存的问题
];
$data = [
'fsidlist' => '[' . implode(',', $paramsList[2]) . ']',