0
我試圖在params中使用int參數(matchID,typeID和live),但它們似乎是從使用params.toString()獲取的最終查詢字符串中丟失的。我在這裏錯過了什麼?如何在RequestParams中傳遞int參數?
RequestParams params = new RequestParams();
String email = user.getEmail();
params.put("email", email);
params.put("password", user.getPassword());
params.put("token", TextUtil.getToken(email));
params.put("live", live);
params.put("matchID", matchID);
params.put("typeID", typeID);
params.put("quote", quote);
params.put("comment", comment);
System.out.println("matchID: " + matchID); // matchID: 1
System.out.println("typeID: " + typeID); // typeID : 2
System.out.println("params: " + params.toString()); // params: quote=2&token=XXX&comment=&[email protected]&password=mypw
您是否嘗試過使用Integer? – broncoAbierto
是的,沒有工作。 – Chris