|
|
|
@ -510,8 +510,12 @@ namespace GDZZ.Application.Service.Auth
|
|
|
|
|
value = token.Result.AccessToken;
|
|
|
|
|
}
|
|
|
|
|
var res = await this._wechatOAuth.GetShareCodeAsync(value,scene, page);
|
|
|
|
|
var fileName = Path.Combine(_options.Default.path+"/"+ UserManager.UserId +".png");
|
|
|
|
|
Console.WriteLine(fileName);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var fileName = Path.Combine("/"+ UserManager.UserId +".png");
|
|
|
|
|
if (!Directory.Exists(_options.QRCode.path))
|
|
|
|
|
Directory.CreateDirectory(_options.QRCode.path);
|
|
|
|
|
Console.WriteLine(_options.QRCode.path + fileName);
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
MemoryStream ms = new MemoryStream(res);
|
|
|
|
|