see999 3 years ago
parent
commit
162b03c3d9
1 changed files with 4 additions and 4 deletions
  1. 4 4
      controllers/xcx_mobile_api_controller.go/xcx_api_controller.go

+ 4 - 4
controllers/xcx_mobile_api_controller.go/xcx_api_controller.go View File

@@ -209,10 +209,10 @@ func (this *XcxApiController) GetDataInfo() {
209 209
 		this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
210 210
 		return
211 211
 	}
212
-	appid := dataBody["appid"].(string)
213
-	key := dataBody["key"].(string)
214
-	iv := dataBody["iv"].(string)
215
-	encryptedData := dataBody["encryptedData"].(string)
212
+	appid, _ := dataBody["appid"].(string)
213
+	key, _ := dataBody["key"].(string)
214
+	iv, _ := dataBody["iv"].(string)
215
+	encryptedData, _ := dataBody["encryptedData"].(string)
216 216
 
217 217
 	list, err := service.DecryptData(appid, key, iv, encryptedData)
218 218
 	if err == nil {