admin
2021-06-07 01e23be6118d68d38a71d186296d440eadcaa197
app/src/main/java/com/tejia/lijin/app/ui/mine/MyFootmarkActivity.java
@@ -27,6 +27,8 @@
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.reflect.TypeToken;
import com.tejia.lijin.app.ShoppingApplication;
import com.tejia.lijin.app.util.user.UserUtil;
import com.wpc.library.content.ConnectivityChangeHelper;
import com.wpc.library.recyclerviewhelper.DividerItemDecoration;
import com.wpc.library.util.NetUtils;
@@ -110,14 +112,11 @@
        tv_top_bar_right.setChecked(false);
        tv_delete.setOnClickListener(this);
//        tv_delete_all.setOnClickListener(this);
        findViewById(R.id.tv_go_scan).setOnClickListener(this);
        ll_content = findViewById(R.id.ll_content);
        ll_no_net = findViewById(R.id.ll_no_net);
        ll_request_failture = findViewById(R.id.ll_request_failture);
        findViewById(R.id.tv_net_setting).setOnClickListener(this);
        findViewById(R.id.tv_refresh).setOnClickListener(this);
        tv_no_data_hint.setText("快去浏览喜欢的商品吧~");
        iv_no_data.setImageResource(R.drawable.ic_footmark_null);
        float hRatio = 260 / 720f;
        float wRatio = 23 / 720f;
@@ -317,7 +316,7 @@
    private void setData() {
        ShoppingApi.getFootmark(this, page + "", getSharedPreferences("user", MODE_PRIVATE).getString("uid", ""), new BasicTextHttpResponseHandler() {
        ShoppingApi.getFootmark(this, page + "", UserUtil.getUid(ShoppingApplication.application), new BasicTextHttpResponseHandler() {
            @Override
            public void onStart() {
                super.onStart();
@@ -448,9 +447,8 @@
    private void delete() {
        if ((!StringUtils.isEmpty(adapter.getSelectedIds()) && type.equalsIgnoreCase("0")) || type.equalsIgnoreCase("1")) {
            String uid = getSharedPreferences("user", MODE_PRIVATE).getString("uid", "");
//            String uid = "323922";
            ShoppingApi.deleteFootmark(MyFootmarkActivity.this, adapter.getSelectedIds(), type, uid, new BasicTextHttpResponseHandler() {
            ShoppingApi.deleteFootmark(MyFootmarkActivity.this, adapter.getSelectedIds(), type, UserUtil.getUid(ShoppingApplication.application), new BasicTextHttpResponseHandler() {
                @Override
                public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws Exception {
                    if (jsonObject.optString("code").equalsIgnoreCase("0")) {