配置修改
This commit is contained in:
@@ -994,26 +994,26 @@ namespace Tnb.WarehouseMgr
|
||||
|
||||
private async Task<bool> Floor2UpDownMachinecode_SetTag(string tag, string value)
|
||||
{
|
||||
//string DevName = "东面提升机输送线";
|
||||
//Dictionary<string, string> dicCommand = new(StringComparer.OrdinalIgnoreCase)
|
||||
//{
|
||||
// ["DevName"] = DevName,
|
||||
// ["token"] = _eleCtlCfg.token,
|
||||
// ["TagName"] = tag,
|
||||
// ["Value"] = value,
|
||||
//};
|
||||
//string result = await HttpClientHelper.GetRequestAsync(_eleCtlCfg.WriteTagUrl, dicCommand);
|
||||
string DevName = "东面提升机输送线";
|
||||
Dictionary<string, string> dicCommand = new(StringComparer.OrdinalIgnoreCase)
|
||||
{
|
||||
["DevName"] = DevName,
|
||||
["token"] = _eleCtlCfg.token,
|
||||
["TagName"] = tag,
|
||||
["Value"] = value,
|
||||
};
|
||||
string result = await HttpClientHelper.GetRequestAsync(_eleCtlCfg.WriteTagUrl, dicCommand);
|
||||
|
||||
//return result.Contains("Ok");
|
||||
return result.Contains("Ok");
|
||||
|
||||
// 测试
|
||||
string DevName = "东面提升机输送线";
|
||||
//string DevName = "东面提升机输送线";
|
||||
|
||||
JObject valueJson = new JObject();
|
||||
valueJson["Value"] = value;
|
||||
//JObject valueJson = new JObject();
|
||||
//valueJson["Value"] = value;
|
||||
|
||||
_redisData.SetHash(DevName, tag, valueJson.ToString());
|
||||
return true;
|
||||
//_redisData.SetHash(DevName, tag, valueJson.ToString());
|
||||
//return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user