This commit is contained in:
Fam Zheng 2025-09-18 11:40:36 +01:00
parent dc01b38085
commit fffc50372e

View File

@ -98,9 +98,9 @@ function make_query(zoom, return_page, real_ip, tenant_id) {
*/
function fetch_real_ip(callback) {
wx.request({
url: 'https://whatsmyip.themblem.com',
url: 'https://themblem.com/api/v1/my-location/',
success: (res) => {
const ip = res.data || '';
const ip = res.data.ip || '';
console.log('Real IP fetched:', ip);
callback(null, ip);
},