admin
2021-05-14 1b4b3fed2569ac21ad6feb0a3a2c051175e7c36e
app/src/main/java/com/tejia/lijin/app/ui/mine/PromotionRedenvelopeActivity.java
@@ -12,6 +12,8 @@
import android.widget.TextView;
import android.widget.Toast;
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;
@@ -204,8 +206,7 @@
                                        return;
                                    }
                                    ((Dialog) var1).dismiss();
                                    String uid = getSharedPreferences("user", MODE_PRIVATE).getString("uid", "");
                                    ShoppingApi.exchangeCash(PromotionRedenvelopeActivity.this, uid, var2.toString(), new BasicTextHttpResponseHandler() {
                                    ShoppingApi.exchangeCash(PromotionRedenvelopeActivity.this, UserUtil.getUid(ShoppingApplication.application), var2.toString(), new BasicTextHttpResponseHandler() {
                                        @Override
                                        public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws Exception {
                                            super.onSuccessPerfect(statusCode, headers, jsonObject);
@@ -253,8 +254,7 @@
                                    return;
                                }
                                ((Dialog) var1).dismiss();
                                String uid = getSharedPreferences("user", MODE_PRIVATE).getString("uid", "");
                                ShoppingApi.giveTLJ(PromotionRedenvelopeActivity.this, uid, var2.toString(), new BasicTextHttpResponseHandler() {
                                ShoppingApi.giveTLJ(PromotionRedenvelopeActivity.this, UserUtil.getUid(ShoppingApplication.application), var2.toString(), new BasicTextHttpResponseHandler() {
                                    @Override
                                    public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws Exception {
                                        super.onSuccessPerfect(statusCode, headers, jsonObject);
@@ -308,8 +308,7 @@
     * 统计红包获得及使用情况
     */
    private void getcountHongBao() {
        String uid = getSharedPreferences("user", MODE_PRIVATE).getString("uid", "0");
        ShoppingApi.getcountHongBao(this, uid, new BasicTextHttpResponseHandler() {
        ShoppingApi.getcountHongBao(this, UserUtil.getUid(ShoppingApplication.application), new BasicTextHttpResponseHandler() {
            @Override
            public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws Exception {
                if (jsonObject.optInt("code") == 0) {