mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-06-08 23:38:57 +08:00
修复微信公众号登录没有昵称头像问题
This commit is contained in:
@@ -341,7 +341,8 @@ public class LoginServiceImpl implements ILoginService {
|
||||
String date = TimeUtils.millisecondToDate(time, "yyyyMMdd");
|
||||
String name = ToolUtils.makeMd5(ToolUtils.makeUUID()+time) + ".jpg";
|
||||
String path = "avatar" + date + "/" + name;
|
||||
ToolUtils.download(avatar, YmlUtils.get("like.upload-directory"), path);
|
||||
String savePath = YmlUtils.get("like.upload-directory") + path;
|
||||
ToolUtils.download(avatar, savePath);
|
||||
defaultAvatar = path;
|
||||
} catch (IOException ignored) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user