From 47f5d71a81a528aff225805d28bf181ce4d6f55d Mon Sep 17 00:00:00 2001
From: 陈奇 <1650699704@qq.com>
Date: Thu, 15 Nov 2018 13:14:43 +0800
Subject: [PATCH] [*]1.0.3.2版本

---
 app/src/main/java/com/moral/yunfushao/activity/LoginActivity.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/app/src/main/java/com/moral/yunfushao/activity/LoginActivity.java b/app/src/main/java/com/moral/yunfushao/activity/LoginActivity.java
index 36b0007..291b3f3 100644
--- a/app/src/main/java/com/moral/yunfushao/activity/LoginActivity.java
+++ b/app/src/main/java/com/moral/yunfushao/activity/LoginActivity.java
@@ -55,8 +55,8 @@
         tv_register = findView(R.id.tv_register);
         et_phone = findView(R.id.et_phone);
         et_pwd = findView(R.id.et_pwd);
-        et_phone.setText("15950198162");
-        et_pwd.setText("888888");
+//        et_phone.setText("18362724160");
+//        et_pwd.setText("123456");
     }
 
     @Override
@@ -106,7 +106,7 @@
     private void login(String tel, final String pwd) {
         String url = API.LOGIN;
         Map<String, String> params = new HashMap<>();
-        params.put("username", tel);
+        params.put("phone", tel);
         params.put("password", pwd);
         HttpUtils.doPost(url, params, CacheMode.DEFAULT, true, new HttpCallBack() {
             @Override
@@ -118,7 +118,7 @@
                 User user = FastJsonTools.getJson(res,User.class);
                 if(user!=null){
                     MainApp.theApp.sharedPreferencesUtil.saveLoginInfo(user);
-//                    MainApp.theApp.userId = user.get_id();
+                    MainApp.theApp.userId = user.get_id();
                     Intent intent = new Intent(getApplicationContext(), MainActivity.class);
                     Bundle bundle = new Bundle();
                     bundle.putBoolean("islogin",true);

--
Gitblit v1.8.0