development
温天培 1 year ago
parent 2fe6e2a743
commit 1f77bcfaee

@ -513,9 +513,10 @@ namespace GDZZ.Application.Service.Auth
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 filePath = Path.Combine(App.WebHostEnvironment.WebRootPath, _options.QRCode.path);
if (!Directory.Exists(filePath))
Directory.CreateDirectory(filePath);
var Imageurl = filePath + fileName;
Console.WriteLine(Imageurl);
try
{

Loading…
Cancel
Save