@ -24,8 +24,8 @@ namespace Shentun.Peis.PlugIns
protected string? AppConnctionStr ;
private string _appBaseAddress ;
private string _accesToken ;
protected string? App User;
protected string? App Password;
protected string? Self User;
protected string? Self Password;
protected string InterfaceSql ;
protected string InterfaceSqlKeyColumn ;
@ -53,10 +53,10 @@ namespace Shentun.Peis.PlugIns
. GetSection ( "Default" ) . Value ;
_appBaseAddress = AppConfig . GetSection ( "App" )
. GetSection ( "SelfUrl" ) . Value ;
App User = AppConfig . GetSection ( "App" )
. GetSection ( "App User" ) . Value ;
App Password = AppConfig . GetSection ( "App" )
. GetSection ( "App Password" ) . Value ;
Self User = AppConfig . GetSection ( "App" )
. GetSection ( "Self User" ) . Value ;
Self Password = AppConfig . GetSection ( "App" )
. GetSection ( "Self Password" ) . Value ;
var configurationBuilder = new ConfigurationBuilder ( )
. AddJsonStream ( new MemoryStream ( System . Text . Encoding . UTF8 . GetBytes ( parmValue ) ) ) ;
@ -199,7 +199,7 @@ namespace Shentun.Peis.PlugIns
protected async virtual Task < LoginOutDto > LoginAsync ( )
{
var relult = await LoginAsync ( AppUser , App Password) ;
var relult = await LoginAsync ( SelfUser , Self Password) ;
return relult ;
}
public async Task < LoginOutDto > LoginAsync ( string userId , string password )