| | |
| | | commonPost(context, BASE_URL + "user", params, handler); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 电话号码登录 |
| | | * |
| | | * @param context |
| | | * @param phone |
| | | * @param code |
| | | * @param handler |
| | | */ |
| | | public static void phoneLogin(Context context, String phone, |
| | | String code, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | |
| | | params.put("phone", phone); |
| | | params.put("code", code); |
| | | params.put("Method", "phoneLogin"); |
| | | commonPost(context, BASE_URL + "user", params, handler); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取验证码 |
| | | * |
| | |
| | | commonPost(context, BASE_URL + "user", params, handler); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 发送短信验证码 |
| | | * @param context |
| | | * @param name |
| | | * @param handler |
| | | */ |
| | | public static void sendSMSCode(Context context, String name, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("phone", name); |
| | | params.put("Method", "sendSMSCode"); |
| | | commonPost(context, BASE_URL + "user", params, handler); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Email注册 |
| | | * |