...
|
...
|
@@ -49,11 +49,11 @@ class ActivityController extends HomeBaseController |
|
|
require_once EXTEND_PATH . '/WeChatCommon.php';
|
|
|
$wx = new \WeChatCommon();
|
|
|
$pos = Db:: name('user')->field('lat,lng')->where(['id'=>session('user.id')])->find();
|
|
|
print_r(anti_analysis($pos['lat'], $pos['lng']));
|
|
|
$return = json_decode(anti_analysis($pos['lat'], $pos['lng']), true);
|
|
|
return $this->fetch(':_list', [
|
|
|
'result' => $result,
|
|
|
'js_sdk' => $wx->js_sdk(),
|
|
|
'city' => anti_analysis($pos['lat'], $pos['lng'])
|
|
|
'city' => $return['result']['address_component']['city']
|
|
|
]);
|
|
|
}
|
|
|
}
|
...
|
...
|
|