|
|
@ -37,7 +37,7 @@ namespace GDZZ.Application.Service.Auth
|
|
|
|
private readonly SqlSugarRepository<Company> CompanyRep;
|
|
|
|
private readonly SqlSugarRepository<Company> CompanyRep;
|
|
|
|
private readonly SqlSugarRepository<MiniPayTake> payTakeRep; //支付仓储
|
|
|
|
private readonly SqlSugarRepository<MiniPayTake> payTakeRep; //支付仓储
|
|
|
|
private readonly SqlSugarRepository<SysConfig> _sysConfigRep; // 参数配置表仓储
|
|
|
|
private readonly SqlSugarRepository<SysConfig> _sysConfigRep; // 参数配置表仓储
|
|
|
|
|
|
|
|
private readonly UploadFileOptions _options;
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
#region 服务
|
|
|
|
#region 服务
|
|
|
@ -67,6 +67,7 @@ namespace GDZZ.Application.Service.Auth
|
|
|
|
SqlSugarRepository<SysConfig> sysConfigRep,
|
|
|
|
SqlSugarRepository<SysConfig> sysConfigRep,
|
|
|
|
SqlSugarRepository<InviteUserPos> invitaitionRey,
|
|
|
|
SqlSugarRepository<InviteUserPos> invitaitionRey,
|
|
|
|
SqlSugarRepository<MiniRecharge> rechargeRep,
|
|
|
|
SqlSugarRepository<MiniRecharge> rechargeRep,
|
|
|
|
|
|
|
|
IOptions<UploadFileOptions> options,
|
|
|
|
ISysCacheService sysCacheService,
|
|
|
|
ISysCacheService sysCacheService,
|
|
|
|
ICacheService cacheService,
|
|
|
|
ICacheService cacheService,
|
|
|
|
WechatOAuth wechatOAuth,
|
|
|
|
WechatOAuth wechatOAuth,
|
|
|
@ -88,6 +89,7 @@ namespace GDZZ.Application.Service.Auth
|
|
|
|
this.rechargeRep= rechargeRep;
|
|
|
|
this.rechargeRep= rechargeRep;
|
|
|
|
_wechatOAuth = wechatOAuth;
|
|
|
|
_wechatOAuth = wechatOAuth;
|
|
|
|
_oauthConfig = options.Value.Wechat;
|
|
|
|
_oauthConfig = options.Value.Wechat;
|
|
|
|
|
|
|
|
this._options = options.Value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -508,7 +510,7 @@ namespace GDZZ.Application.Service.Auth
|
|
|
|
value = token.Result.AccessToken;
|
|
|
|
value = token.Result.AccessToken;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var res = await this._wechatOAuth.GetShareCodeAsync(value,scene, page);
|
|
|
|
var res = await this._wechatOAuth.GetShareCodeAsync(value,scene, page);
|
|
|
|
var fileName = Path.Combine(App.WebHostEnvironment.WebRootPath+"/"+ UserManager.UserId +".png");
|
|
|
|
var fileName = Path.Combine(_options.Default.path + "/"+ UserManager.UserId +".png");
|
|
|
|
Console.WriteLine(fileName);
|
|
|
|
Console.WriteLine(fileName);
|
|
|
|
try
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|