From 2365e61a4b1d2730e7175adde18aaf8f6a0532a2 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 12 Aug 2021 13:46:22 +0800 Subject: [PATCH] 1 --- server/analyseapi/riskmgr.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/analyseapi/riskmgr.go b/server/analyseapi/riskmgr.go index d91df59..284780c 100644 --- a/server/analyseapi/riskmgr.go +++ b/server/analyseapi/riskmgr.go @@ -337,7 +337,7 @@ func (this* RiskMgr) GetIpInfoByTx( Status *int32 `json:"status"` Result *struct { AdInfo *struct { - Country string `json:"country"` + Nation string `json:"nation"` Province string `json:"province"` City string `json:"city"` } `json:"ad_info"` @@ -355,7 +355,7 @@ func (this* RiskMgr) GetIpInfoByTx( f5.SysLog().Warning("GetIpInfoByTx response3 %s", respStr) return false } - *country = respObj.Result.AdInfo.Country + *country = respObj.Result.AdInfo.Nation *province = respObj.Result.AdInfo.Province *city = respObj.Result.AdInfo.City return true