fix: randomAuth only returns encryptedAuth

This commit is contained in:
rensumo
2026-02-22 20:49:24 +08:00
parent 9d558bf4e2
commit cbf2294a8e

View File

@@ -513,7 +513,9 @@ public class ParserApi {
if (Integer.valueOf(200).equals(res.getInteger("code")) && res.getJsonObject("data") != null) { if (Integer.valueOf(200).equals(res.getInteger("code")) && res.getJsonObject("data") != null) {
JsonObject data = res.getJsonObject("data"); JsonObject data = res.getJsonObject("data");
String encryptedAuth = AuthParamCodec.encode(data); String encryptedAuth = AuthParamCodec.encode(data);
data.put("encryptedAuth", encryptedAuth); JsonObject safeData = new JsonObject();
safeData.put("encryptedAuth", encryptedAuth);
res.put("data", safeData);
} }
return res; return res;
}); });