From ddff7888bf7e754d12fb5fc85a58f3012f456490 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 05 六月 2021 17:26:03 +0800 Subject: [PATCH] 特价完善 --- app/src/main/java/com/tejia/lijin/app/ui/mine/CapitalActivity.java | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/tejia/lijin/app/ui/mine/CapitalActivity.java b/app/src/main/java/com/tejia/lijin/app/ui/mine/CapitalActivity.java index 6b7ebed..b2efda4 100644 --- a/app/src/main/java/com/tejia/lijin/app/ui/mine/CapitalActivity.java +++ b/app/src/main/java/com/tejia/lijin/app/ui/mine/CapitalActivity.java @@ -12,6 +12,8 @@ import android.widget.TextView; import com.google.gson.Gson; +import com.tejia.lijin.app.ShoppingApplication; +import com.tejia.lijin.app.util.user.UserUtil; import com.wpc.library.util.common.StringUtils; import com.tejia.lijin.app.BasicTextHttpResponseHandler; import com.tejia.lijin.app.R; @@ -122,7 +124,6 @@ } getUserMoneyStatistic(); SharedPreferences sp = getSharedPreferences("user", MODE_PRIVATE); - boolean isLogin = sp.getBoolean("isLogin", false); } private void getAppPageNotification() { @@ -176,8 +177,7 @@ * 鐢ㄦ埛璧勯噾缁熻 */ private void getUserMoneyStatistic() { - String uid = this.getSharedPreferences("user", MODE_PRIVATE).getString("uid", "0"); - ShoppingApi.getMoneyStatistic(this, uid, new BasicTextHttpResponseHandler() { + ShoppingApi.getMoneyStatistic(this, UserUtil.getUid(ShoppingApplication.application), new BasicTextHttpResponseHandler() { @Override public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws Exception { super.onSuccessPerfect(statusCode, headers, jsonObject); @@ -193,8 +193,7 @@ } private void getUserMoney() { - String uid = this.getSharedPreferences("user", MODE_PRIVATE).getString("uid", "0"); - ShoppingApi.getUserMoneyInfo(this, uid, new BasicTextHttpResponseHandler() { + ShoppingApi.getUserMoneyInfo(this, UserUtil.getUid(ShoppingApplication.application), new BasicTextHttpResponseHandler() { @Override public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws Exception { super.onSuccessPerfect(statusCode, headers, jsonObject); -- Gitblit v1.8.0