|
@@ -130,14 +130,13 @@ class workercheck {
|
|
|
$inprjlocation = 1; //如果没有位置参数,则可以继续打卡
|
|
|
}
|
|
|
if ($paramhaslocation) {
|
|
|
-
|
|
|
if ($pid > 3) {
|
|
|
$t_pl = new prjlocationmodel();
|
|
|
- $ploaction = $t_pl->selinfobyprjid($pid);
|
|
|
- $checkradius = $ploaction['checkradius'];
|
|
|
log::info($ploaction);
|
|
|
if (!empty($ploaction)) {
|
|
|
log::info('computergps');
|
|
|
+ $ploaction = $t_pl->selinfobyprjid($pid);
|
|
|
+ $checkradius = $ploaction['checkradius'];
|
|
|
$p_lng = $ploaction['gps_lng'];
|
|
|
$p_lat = $ploaction['gps_lat'];
|
|
|
$distance = $this->calculateDistance($p_lat, $p_lng, $uinfo['gps_lat'], $uinfo['gps_lng']);
|