소스 검색

从0开始,与数据库保持一致

lixioayao 6 년 전
부모
커밋
653947693b
1개의 변경된 파일11개의 추가작업 그리고 15개의 파일을 삭제
  1. 11 15
      area_business.cpp

+ 11 - 15
area_business.cpp

@@ -20,8 +20,6 @@ struct area_business_factory
 {
 	void regist(int type,area_business* ab)
 	{
-		type-=1;
-
 		ab->m_business_type=type;
 
 		if(type>=(int)m_check_list.size())
@@ -70,19 +68,17 @@ struct area_business_factory
 	std::vector<std::unique_ptr<area_business>> m_check_list;
 	area_business_factory()
 	{
-		regist(1,new area_business_post_area);
-		regist(2,new area_business_person_dwell_checker);
-		regist(3,new area_business_count_checker);
-		regist(4,new area_business_speed_checker);
-		regist(5,new area_business_person_attendance);
-		regist(6,new area_business_car_attendance);
-		regist(7,new area_business_forbid);
-		//regist(8,new area_business_monkey_area);
-		regist(8,new area_business_card_enter_or_leave);
-
-		regist(9, new area_business_motionless_persion);
-		regist(10, new area_business_geofault);
-		regist(11, new area_business_work_rate);
+		regist(0, new area_business_post_area);
+		regist(1, new area_business_person_dwell_checker);
+		regist(2, new area_business_count_checker);
+		regist(3, new area_business_speed_checker);
+		regist(4, new area_business_person_attendance);
+		regist(5, new area_business_car_attendance);
+		regist(6, new area_business_forbid);
+		regist(7, new area_business_card_enter_or_leave);
+		regist(8, new area_business_motionless_persion);
+		regist(9,new area_business_geofault);
+		regist(10,new area_business_work_rate);
 	}
 
 };