Przeglądaj źródła

1.0.9.13扳动值颜色判断错误.

git-svn-id: https://202.107.226.68:8443/svn/Services/ResistanceMonitor@61 a05970a1-87b9-9d4f-9ee5-fa77e2ec115b
shenchunzhong 1 rok temu
rodzic
commit
d9e3fefb6f
2 zmienionych plików z 4 dodań i 4 usunięć
  1. 4 4
      4.Data/HttpPrcess.cpp
  2. BIN
      4.Data/TimeSyncServer.rc

+ 4 - 4
4.Data/HttpPrcess.cpp

@@ -2253,9 +2253,9 @@ int DealGetResistData(const httplib::Request& req, const string token, char** js
 					{
 						if (pInfo->out_name.find("¶¨°â·´") != -1)
 						{
-							if (pConvertLimit->dw_alarm_low_limit > show_val)
+							if (pConvertLimit->dw_alarm_low_limit < show_val)
 								yyjson_mut_obj_add_str(doc, obj, "color", "Red");
-							else if (pConvertLimit->dw_warn_low_limit > show_val)
+							else if (pConvertLimit->dw_warn_low_limit < show_val)
 								yyjson_mut_obj_add_str(doc, obj, "color", "Orange");
 						}
 						else
@@ -2288,9 +2288,9 @@ int DealGetResistData(const httplib::Request& req, const string token, char** js
 					{
 						if (pInfo->out_name.find("·´°â¶¨") != -1)
 						{
-							if (pConvertLimit->dw_alarm_low_limit > show_val)
+							if (pConvertLimit->dw_alarm_low_limit < show_val)
 								yyjson_mut_obj_add_str(doc, obj, "color", "Red");
-							else if (pConvertLimit->dw_warn_low_limit > show_val)
+							else if (pConvertLimit->dw_warn_low_limit < show_val)
 								yyjson_mut_obj_add_str(doc, obj, "color", "Orange");
 						}
 						else

BIN
4.Data/TimeSyncServer.rc