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

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

Loading…
Cancel
Save