This commit is contained in:
aozhiwei 2021-08-12 13:46:22 +08:00
parent fabaaa22ce
commit 2365e61a4b

View File

@ -337,7 +337,7 @@ func (this* RiskMgr) GetIpInfoByTx(
Status *int32 `json:"status"` Status *int32 `json:"status"`
Result *struct { Result *struct {
AdInfo *struct { AdInfo *struct {
Country string `json:"country"` Nation string `json:"nation"`
Province string `json:"province"` Province string `json:"province"`
City string `json:"city"` City string `json:"city"`
} `json:"ad_info"` } `json:"ad_info"`
@ -355,7 +355,7 @@ func (this* RiskMgr) GetIpInfoByTx(
f5.SysLog().Warning("GetIpInfoByTx response3 %s", respStr) f5.SysLog().Warning("GetIpInfoByTx response3 %s", respStr)
return false return false
} }
*country = respObj.Result.AdInfo.Country *country = respObj.Result.AdInfo.Nation
*province = respObj.Result.AdInfo.Province *province = respObj.Result.AdInfo.Province
*city = respObj.Result.AdInfo.City *city = respObj.Result.AdInfo.City
return true return true