正在显示
1 个修改的文件
包含
3 行增加
和
1 行删除
@@ -1241,6 +1241,8 @@ class SecondController extends RestBaseController | @@ -1241,6 +1241,8 @@ class SecondController extends RestBaseController | ||
1241 | * | 1241 | * |
1242 | *@header name:XX-Token require:1 default: desc:token | 1242 | *@header name:XX-Token require:1 default: desc:token |
1243 | *@param name:id type:int require:1 other: desc:订单id | 1243 | *@param name:id type:int require:1 other: desc:订单id |
1244 | + *@param name:lat type:int require:1 other: desc:纬度 | ||
1245 | + *@param name:long type:int require:1 other: desc:经度 | ||
1244 | *@header name:XX-Token require:1 default: desc:token | 1246 | *@header name:XX-Token require:1 default: desc:token |
1245 | * | 1247 | * |
1246 | * | 1248 | * |
@@ -1266,7 +1268,7 @@ class SecondController extends RestBaseController | @@ -1266,7 +1268,7 @@ class SecondController extends RestBaseController | ||
1266 | } | 1268 | } |
1267 | /*检查地点*/ | 1269 | /*检查地点*/ |
1268 | $distance=getDistance($activity['lat'],$activity['long'],$data['lat'],$data['long']); | 1270 | $distance=getDistance($activity['lat'],$activity['long'],$data['lat'],$data['long']); |
1269 | - if ($distance*1000>$config['distinct']){ | 1271 | + if ($distance*1000>$config['distance']){ |
1270 | $this->error('不在打卡范围内'); | 1272 | $this->error('不在打卡范围内'); |
1271 | } | 1273 | } |
1272 | $update['status']=2; | 1274 | $update['status']=2; |
-
请 注册 或 登录 后发表评论