diff --git a/GDZZ.Application/Service/Auth/AuthService.cs b/GDZZ.Application/Service/Auth/AuthService.cs index 47bf56c..7126a01 100644 --- a/GDZZ.Application/Service/Auth/AuthService.cs +++ b/GDZZ.Application/Service/Auth/AuthService.cs @@ -512,10 +512,11 @@ namespace GDZZ.Application.Service.Auth var res = await this._wechatOAuth.GetShareCodeAsync(value,scene, page); - var fileName = Path.Combine("/"+ UserManager.UserId +".png"); - if (!Directory.Exists(_options.QRCode.path)) - Directory.CreateDirectory(_options.QRCode.path); - var Imageurl = _options.QRCode.path + fileName; + var fileName = Path.Combine("/" + UserManager.UserId + ".png"); + var filePath = Path.Combine(App.WebHostEnvironment.WebRootPath, _options.QRCode.path); + if (!Directory.Exists(filePath)) + Directory.CreateDirectory(filePath); + var Imageurl = filePath + fileName; Console.WriteLine(Imageurl); try {