Browse Source

插件

bjmzak
DESKTOP-G961P6V\Zhh 2 years ago
parent
commit
566212e186
  1. 12
      src/Shentun.ColumnReferencePlugIns/PlugInsBase.cs

12
src/Shentun.ColumnReferencePlugIns/PlugInsBase.cs

@ -142,6 +142,10 @@ namespace Shentun.Peis.PlugIns
public async Task<TOut> CallAppServiceAsync<TInput, TOut>(string url, TInput data, string method = "post")
{
if(string.IsNullOrWhiteSpace(_appBaseAddress))
{
throw new Exception("_appBaseAddress不能为空");
}
string baseAddress = _appBaseAddress;
await CheckLoginAsync();
using (var httpClientHandler = new HttpClientHandler())
@ -214,6 +218,14 @@ namespace Shentun.Peis.PlugIns
public async virtual Task<LoginOutDto> LoginAsync()
{
if(string.IsNullOrWhiteSpace(SelfUser))
{
throw new Exception("SelfUser不能为空");
}
if (string.IsNullOrWhiteSpace(SelfPassword))
{
throw new Exception("SelfPassword不能为空");
}
var relult = await LoginAsync(SelfUser, SelfPassword);
return relult;
}

Loading…
Cancel
Save