Эх сурвалжийг харах

屏蔽无用的代码.

git-svn-id: https://202.107.226.68:8443/svn/Services/ResistanceMonitor@96 a05970a1-87b9-9d4f-9ee5-fa77e2ec115b
shenchunzhong 1 жил өмнө
parent
commit
957693b70d
1 өөрчлөгдсөн 8 нэмэгдсэн , 0 устгасан
  1. 8 0
      4.Data/HttpPrcess.cpp

+ 8 - 0
4.Data/HttpPrcess.cpp

@@ -4279,10 +4279,12 @@ int DealGetResistReport(const httplib::Request& req, const string token, char**
 			else if (it.second.f_suobi_lock_avg_color == UINT8_WARN)
 				yyjson_mut_obj_add_str(doc, obj, "f_suobi_lock_avg_color", "orange");
 
+			/*
 			if (it.second.d_baochi_lock != INT_MAX)
 				yyjson_mut_obj_add_int(doc, obj, "d_retention_fore", it.second.d_baochi_lock);
 			else
 				yyjson_mut_obj_add_str(doc, obj, "d_retention_fore", "-");
+			*/
 			if (it.second.d_baochi_lock_max != INT_MAX)
 				yyjson_mut_obj_add_int(doc, obj, "d_retention_fore_max", it.second.d_baochi_lock_max);
 			else
@@ -4291,6 +4293,7 @@ int DealGetResistReport(const httplib::Request& req, const string token, char**
 				yyjson_mut_obj_add_int(doc, obj, "d_retention_fore_min", it.second.d_baochi_lock_min);
 			else
 				yyjson_mut_obj_add_str(doc, obj, "d_retention_fore_min", "-");
+			/*
 			if (it.second.d_baochi_lock_avg != INT_MAX)
 				yyjson_mut_obj_add_int(doc, obj, "d_retention_fore_avg", it.second.d_baochi_lock_avg);
 			else
@@ -4308,11 +4311,14 @@ int DealGetResistReport(const httplib::Request& req, const string token, char**
 				yyjson_mut_obj_add_str(doc, obj, "d_retention_fore_avg_color", "red");
 			else if (it.second.d_baochi_lock_avg_color == UINT8_WARN)
 				yyjson_mut_obj_add_str(doc, obj, "d_retention_fore_avg_color", "orange");
+			*/
 
+			/*
 			if (it.second.f_baochi_lock != INT_MAX)
 				yyjson_mut_obj_add_int(doc, obj, "f_retention_fore", it.second.f_baochi_lock);
 			else
 				yyjson_mut_obj_add_str(doc, obj, "f_retention_fore", "-");
+			*/
 			if (it.second.f_baochi_lock_max != INT_MAX)
 				yyjson_mut_obj_add_int(doc, obj, "f_retention_fore_max", it.second.f_baochi_lock_max);
 			else
@@ -4321,6 +4327,7 @@ int DealGetResistReport(const httplib::Request& req, const string token, char**
 				yyjson_mut_obj_add_int(doc, obj, "f_retention_fore_min", it.second.f_baochi_lock_min);
 			else
 				yyjson_mut_obj_add_str(doc, obj, "f_retention_fore_min", "-");
+			/*
 			if (it.second.f_baochi_lock_avg != INT_MAX)
 				yyjson_mut_obj_add_int(doc, obj, "f_retention_fore_avg", it.second.f_baochi_lock_avg);
 			else
@@ -4338,6 +4345,7 @@ int DealGetResistReport(const httplib::Request& req, const string token, char**
 				yyjson_mut_obj_add_str(doc, obj, "f_retention_fore_avg_color", "red");
 			else if (it.second.f_baochi_lock_avg_color == UINT8_WARN)
 				yyjson_mut_obj_add_str(doc, obj, "f_retention_fore_avg_color", "orange");
+			*/
 		}
 	}