admin
2021-06-07 01e23be6118d68d38a71d186296d440eadcaa197
app/src/main/java/com/tejia/lijin/app/ui/mine/OrderAppealHistoryActivity.java
@@ -20,6 +20,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;
@@ -73,8 +75,6 @@
        ll_request_failture = findViewById(R.id.ll_request_failture);
        tv_no_data_hint = findViewById(R.id.tv_no_data_hint);
        iv_no_data = findViewById(R.id.iv_no_data);
        tv_no_data_hint.setText("没有订单找回记录哟~");
        iv_no_data.setImageDrawable(getResources().getDrawable(R.drawable.ic_msg_order_null));
        findViewById(R.id.tv_net_setting).setOnClickListener(this);
        findViewById(R.id.tv_refresh).setOnClickListener(this);
@@ -141,7 +141,7 @@
                    if (last == total - 1 && mList.size() < count) {
                        page++;
                        iv_loading.setVisibility(View.VISIBLE);
                        tv_loading.setText("正在加载更多数据");
                        tv_loading.setText(getResources().getString(R.string.loading_more_text));
                        getLostOrderList();
                    }
                }
@@ -171,9 +171,8 @@
     */
    private void getLostOrderList() {
        SharedPreferences sp = getSharedPreferences("user", Context.MODE_PRIVATE);
        String uid = sp.getString("uid", "");
//        String uid = "323922";
        ShoppingApi.getLostOrderList(this, uid, page + "", new BasicTextHttpResponseHandler() {
        ShoppingApi.getLostOrderList(this, UserUtil.getUid(ShoppingApplication.application), page + "", new BasicTextHttpResponseHandler() {
            @Override
            public void onStart() {
                super.onStart();
@@ -249,9 +248,8 @@
     */
    private void deleteAllLostOrder() {
        SharedPreferences sp = getSharedPreferences("user", Context.MODE_PRIVATE);
        String uid = sp.getString("uid", "");
//        String uid = "323922";
        ShoppingApi.deleteAllLostOrder(this, uid, new BasicTextHttpResponseHandler() {
        ShoppingApi.deleteAllLostOrder(this, UserUtil.getUid(ShoppingApplication.application), new BasicTextHttpResponseHandler() {
            @Override
            public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws Exception {
                if (jsonObject.optInt("code") == 0) {