距离判断函数BUG修改

Signed-off-by: schmikoff@hotmail.com <schmikoff@hotmail.com>