mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-01-08 12:09:00 +08:00
Remove redundant upload success log
Eliminated a logger statement that logged successful uploads in the NTQQWebApi class. This reduces unnecessary log output during chunked uploads.
This commit is contained in:
parent
74a1011fcc
commit
ecd7012eee
@ -402,14 +402,13 @@ export class NTQQWebApi {
|
|||||||
const post = await response.json() as { ret: number, msg: string }; if (post.ret !== 0) {
|
const post = await response.json() as { ret: number, msg: string }; if (post.ret !== 0) {
|
||||||
throw new Error(`分片 ${seq} 上传失败: ${post.msg}`);
|
throw new Error(`分片 ${seq} 上传失败: ${post.msg}`);
|
||||||
}
|
}
|
||||||
this.context.logger.log(`上传 ${api} 成功`);
|
|
||||||
offset += chunk.length;
|
offset += chunk.length;
|
||||||
seq++;
|
seq++;
|
||||||
}
|
}
|
||||||
|
|
||||||
return { success: true, message: '上传完成' };
|
return { success: true, message: '上传完成' };
|
||||||
}
|
}
|
||||||
|
|
||||||
async uploadImageToQunAlbum(gc: string, sAlbumID: string, sAlbumName: string, path: string) {
|
async uploadImageToQunAlbum(gc: string, sAlbumID: string, sAlbumName: string, path: string) {
|
||||||
const skey = await this.core.apis.UserApi.getSKey() || '';
|
const skey = await this.core.apis.UserApi.getSKey() || '';
|
||||||
const pskey = (await this.core.apis.UserApi.getPSkey(['qzone.qq.com'])).domainPskeyMap.get('qzone.qq.com') || '';
|
const pskey = (await this.core.apis.UserApi.getPSkey(['qzone.qq.com'])).domainPskeyMap.get('qzone.qq.com') || '';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user