顺丰字典调用

optimize
wet 1 year ago
parent b57ef299b3
commit c1163e7f82

@ -395,7 +395,7 @@ namespace Myshipping.Application
var rt = String.Empty; var rt = String.Empty;
//获取url //获取url
var dict = _cache.GetAllDictData().Result; var dict = _cache.GetAllDictData().Result;
_logger.LogInformation("顺丰调用字典:"+dict.ToJsonString());
var url = dict.Where(x => x.Code == "SFToken").Select(x => x.Value).FirstOrDefault(); var url = dict.Where(x => x.Code == "SFToken").Select(x => x.Value).FirstOrDefault();
var partnerID = dict.Where(x => x.Code == "customercode").Select(x => x.Value).FirstOrDefault();//顾客编码: var partnerID = dict.Where(x => x.Code == "customercode").Select(x => x.Value).FirstOrDefault();//顾客编码:
var secret = dict.Where(x => x.Code == "CheckCode").Select(x => x.Value).FirstOrDefault();//沙箱校验码 var secret = dict.Where(x => x.Code == "CheckCode").Select(x => x.Value).FirstOrDefault();//沙箱校验码

Loading…
Cancel
Save