Commit 7943e33d authored by zhuwei's avatar zhuwei

1

parent 9329339b
......@@ -145,16 +145,16 @@ class BatchProcessing extends Basic
$fail ++;
$longitude = '';//'经度'
$latitude = '';//'维度'
$log_text = '商圈:'.$v['name'].' 城市: '.$v['city'].' 数据库ID: '.$id;
Log::write($log_text, '获取商圈经纬度-失败'); //记录日志
$log_text = '办公楼名:'.$v['name'].' 城市: '.$v['city'].' 数据库ID: '.$id;
big_log($log_text); //记录日志
}
$insert=[];
$insert["id"] = $id;
$insert["longitude"] = $longitude;
$insert["latitude"] = $latitude;
$res = $model->updateBusinessDistrict($insert);//int(1)
$log_text = '商圈:'.$v['name'].' 城市: '.$v['city'].' 经度: '.$longitude.' 纬度: '.$latitude.' 数据库写入返回值: '.$res;
Log::write($log_text, '获取商圈经纬度'); //记录日志
$log_text = '办公楼名:'.$v['title'].' 城市: '.$v['city'].' 纬度,经度: ['.$latitude.','.$longitude.'] 数据库写入返回值: '.$res;
big_log($log_text,'getBuildingLatAadLng'); //记录日志
}
return $this->response("200", "处理完成",['成功数'=>$success_num,'失败数'=>$fail]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment