Skip to content

Commit 20e88e1

Browse files
windshadow233codex
andcommitted
fix(location): update distance reference coordinates
Summary: - Update the fixed reference longitude and latitude used by distance calculation. Rationale: - Use the intended location as the distance origin for visitor information. Tests: - node --check source/js/custom.js - git diff --cached --check Co-authored-by: Codex <codex@openai.com>
1 parent a1b2e47 commit 20e88e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/js/custom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function getDistance(e, t, n, o) {
7474
success: function(res) {
7575
let { result = {} } = res
7676
if(result && result.location) {
77-
let distance = getDistance(117.22901, 31.82057, result.location.lng, result.location.lat);
77+
let distance = getDistance(120.267609, 30.204311, result.location.lng, result.location.lat);
7878
setInfo(result.ip, result.ad_info.province + result.ad_info.city + result.ad_info.district, distance, false);
7979
}
8080
}

0 commit comments

Comments
 (0)