From 2135cb549c8dacc546cdbf1912b96066ee8efdd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=B9=E6=9E=9C=E7=94=B5=E8=84=91?= Date: Fri, 18 Jul 2025 20:27:53 +0800 Subject: [PATCH] ? --- src/api/login.js | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/src/api/login.js b/src/api/login.js index 52b2b984..b21a030f 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -124,29 +124,29 @@ export const queryCurrentUser = (data) => request({ const localFilePath = '_downloads/' + filename // 先检查是否存在 - uni.getFileInfo({ - filePath: localFilePath, - success: () => { - console.log('头像已存在,无需下载'); - updateUserAvatar(localFilePath) - }, - fail: () => { - console.log('开始下载头像:', url); - const dtask = plus.downloader.createDownload( - url, { - method: 'GET', - filename: '_downloads/' + filename - }, - (download, status) => { - if (status === 200) { - console.log('头像下载成功:', download.filename); - updateUserAvatar(download.filename) - } - } - ) - dtask.start(); - } - }) + // uni.getFileInfo({ + // filePath: localFilePath, + // success: () => { + // console.log('头像已存在,无需下载'); + // updateUserAvatar(localFilePath) + // }, + // fail: () => { + // console.log('开始下载头像:', url); + // const dtask = plus.downloader.createDownload( + // url, { + // method: 'GET', + // filename: '_downloads/' + filename + // }, + // (download, status) => { + // if (status === 200) { + // console.log('头像下载成功:', download.filename); + // updateUserAvatar(download.filename) + // } + // } + // ) + // dtask.start(); + // } + // }) } catch (error) {