use https://themblem.com/api/v1/my-location/ to get ip
This commit is contained in:
parent
dc01b38085
commit
fffc50372e
@ -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);
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user