Browse Source

修复bug.

zzj 5 years ago
parent
commit
e997a03dc3
2 changed files with 2 additions and 2 deletions
  1. 0 1
      line.h
  2. 2 1
      net-service.cpp

+ 0 - 1
line.h

@@ -140,7 +140,6 @@ struct line_v:line//线段
 
 	line_v widen(double length) const
 	{
-		
 		point pt1(v[0].x-length*cos(),v[0].y-length*sin());
 		point pt2(v[1].x+length*cos(),v[1].y+length*sin());
 

+ 2 - 1
net-service.cpp

@@ -68,9 +68,10 @@ void net_service::on_message(const std::shared_ptr<client> &clt,const char*data,
 					auto site_ptr = sit_list::instance()->get(static_cast<int32_t>(site_id));
 					if(!site_ptr)
 					{
-						logn_error(1,"在全局分站列表中找不到分站:%s,%d", site_id);
+						logn_error(1,"在全局分站列表中找不到分站:%s,%d", clt->name().c_str(), site_id);
 						break;
 					}
+
                     if(site_ptr->is_abnormal_site())
                     {
 						logn_error(1,"分站[%d]天线异常", site_id);