Ejemplo n.º 1
0
 /** @Description 修改性别 请求后台数据 */
 private void sexRequest(String type) {
   HashMap<String, String> param = new HashMap<String, String>();
   param.put(
       "userId", String.valueOf(SharedPreferencesUtils.getInstance().getInt(Constant.USER_ID)));
   param.put("sex", type);
   HttpVolleyRequest<BaseData> request = new HttpVolleyRequest<BaseData>(this);
   request.HttpVolleyRequestPost(
       Urls.UPDATE_USERINFO, param, BaseData.class, User.class, modifySexSuccessListener(), null);
 }
Ejemplo n.º 2
0
 private void recharge() {
   HashMap<String, String> param = new HashMap<String, String>();
   param.put(
       "userId", Integer.toString(SharedPreferencesUtils.getInstance().getInt(Constant.USER_ID)));
   param.put("number", et_card_number.getText().toString().trim());
   param.put("password", et_card_password.getText().toString().trim());
   HttpVolleyRequest<BaseData> request = new HttpVolleyRequest<BaseData>(this);
   request.HttpVolleyRequestPost(
       Urls.CARD_RECHARGE, param, BaseData.class, null, rechargeSuccessListener(), null, 1);
 }