|
@@ -18,6 +18,12 @@ struct work_rate_data:business_data
|
|
|
}
|
|
|
};
|
|
|
|
|
|
+void area_business_work_rate::on_load_his(const std::shared_ptr<area_hover>&area_hover_ptr,
|
|
|
+ const std::shared_ptr<card_location_base>&card_ptr,std::shared_ptr<business_data>&ptr)
|
|
|
+{
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
void area_business_work_rate::on_enter(const std::shared_ptr<area_hover>&area_hover_ptr,
|
|
|
const std::shared_ptr<card_location_base>&card_ptr,std::shared_ptr<business_data>& ptr)
|
|
|
{
|
|
@@ -35,7 +41,7 @@ void area_business_work_rate::on_enter(const std::shared_ptr<area_hover>&area_ho
|
|
|
auto area = std::make_shared<area_data>();
|
|
|
area->area_id = area_hover_ptr->id();
|
|
|
area->is_work_area = area_hover_ptr->m_area->m_is_work_area;
|
|
|
- area->enter_time = tool_time::now_to_seconds();
|
|
|
+ area->enter_time = area_hover_ptr->m_enter_time/1000;
|
|
|
|
|
|
three_rates::get_instance()->enter_area(card, area);
|
|
|
}
|
|
@@ -63,7 +69,7 @@ void area_business_work_rate::on_leave(const std::shared_ptr<area_hover>&area_ho
|
|
|
auto area = std::make_shared<area_data>();
|
|
|
area->area_id = area_hover_ptr->id();
|
|
|
area->is_work_area = area_hover_ptr->m_area->m_is_work_area;
|
|
|
- area->leave_time = tool_time::now_to_seconds();
|
|
|
+ area->leave_time = area_hover_ptr->m_last_time/1000;
|
|
|
|
|
|
three_rates::get_instance()->leave_area(card, area);
|
|
|
}
|