orzogc / fake115uploader

模拟115网盘客户端的上传功能
GNU General Public License v3.0
256 stars 55 forks source link

你们遇到过这种情况吗?在批处理运行完,会暂停批处理。 #50

Open leeonix opened 1 year ago

leeonix commented 1 year ago

你们遇到过这种情况吗?fake115uploader放在脚本或者批处理执行,fake115uploader会暂停批处理。 我有10几个文件连续上传,上传一个就会暂停在这个上传成功的,下面条例,就执行不下去。 但同样的脚本,放到linux下执行,就完全没问题。 我每次执行windows下的批处理,都要「盯着」……

0xCP commented 1 year ago

应该是Windows系统环境下(含Powershell和CMD),main.go#L171exitPrint()退出逻辑的处理有问题。

leeonix commented 1 year ago

应该是Windows系统环境下(含Powershell和CMD),main.go#L171exitPrint()退出逻辑的处理有问题。

到现在也没解决方案啊……唉……

0xCP commented 1 year ago

到现在也没解决方案啊……唉……

@leeonix 临时解决办法 main.go#L183 这一行的return换成os.Exit(0) main.go#L207 在这一行前加一行os.Exit(0)

缺点就是可能会导致文件上传处理结束后打印的信息不完整。

leeonix commented 1 year ago

到现在也没解决方案啊……唉……

@leeonix 临时解决办法 main.go#L183 这一行的return换成os.Exit(0) main.go#L207 在这一行前加一行os.Exit(0)

缺点就是可能会导致文件上传处理结束后打印的信息不完整。

那也比卡死强啊……

orzogc commented 1 year ago

试试用WSL运行