Skip to content

Commit

Permalink
123
Browse files Browse the repository at this point in the history
  • Loading branch information
hxz393 committed Mar 21, 2023
1 parent 1a9ce9f commit 3e07da5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ bdpan://44K344Or44Kv44Gu5p6c5a6fICsg44Go44KJ44Gu44GC44Gq44CA5o+P44GN5LiL44KN44GX


## 更新日志
**2023.03.21 更新版本 1.13**

1.更换秒传转存请求接口,解决错误代码#9019;

2.添加程序运行图标.

**2023.01.08 更新版本 1.12.1**

修复秒传目录或文件名带"&"时不正确行为
Expand Down
10 changes: 5 additions & 5 deletions bpftUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

'''
软件名: BaiduPanFilesTransfers
版本: 1.12.1
更新时间: 2023.01.08
版本: 1.13
更新时间: 2023.03.21
打包命令: pyinstaller -F -w -i bpftUI.ico bpftUI.py
'''

Expand All @@ -32,7 +32,7 @@
root.iconbitmap(default=ICON_PATH)

# 主窗口配置
root.wm_title("度盘转存 1.12.1 by assassing")
root.wm_title("度盘转存 1.13 by assassing")
root.wm_geometry('350x473+240+240')
root.wm_attributes("-alpha", 0.91)
# root.resizable(width=False, height=False)
Expand Down Expand Up @@ -185,7 +185,7 @@ def transfer_files(check_links_reason, dir_name, bdstoken):
def transfer_files_rapid(rapid_data, dir_name, bdstoken):
user_agent = request_header['User-Agent']
request_header['User-Agent'] = 'netdisk;2.2.51.6;netdisk;10.0.63;PC;android-android;QTP/1.0.32.2'
url = 'https://pan.baidu.com/rest/2.0/xpan/file?method=create&bdstoken=' + bdstoken
url = 'https://pan.baidu.com/api/create&bdstoken=' + bdstoken
# post_data = {'path': dir_name + '/' + rapid_data[3], 'content-md5': rapid_data[0], 'slice-md5': rapid_data[1], 'content-length': rapid_data[2]}
post_data = '&block_list=["{}"]&path=/{}/{}&size={}&isdir=0&rtype=0'.format(rapid_data[0], dir_name.replace("&","%26"), rapid_data[3].replace("&","%26"), rapid_data[2])
response = s.post(url=url, headers=request_header, data=post_data.encode("utf-8"), timeout=15, allow_redirects=False, verify=False)
Expand Down Expand Up @@ -295,7 +295,7 @@ def main():
text_logs.insert(END, '链接失效,文件已经被删除或取消分享:' + url_code + '\n')
elif check_links_reason == '百度网盘 请输入提取码':
text_logs.insert(END, '链接错误,缺少提取码:' + url_code + '\n')
elif check_links_reason == -12:
elif check_links_reason == -9:
text_logs.insert(END, '链接错误,提取码错误:' + url_code + '\n')
elif check_links_reason == -62:
text_logs.insert(END, '链接错误尝试次数过多,请手动转存或稍后再试:' + url_code + '\n')
Expand Down

0 comments on commit 3e07da5

Please sign in to comment.