| | |
| | | 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; |
| | |
| | | */ |
| | | 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(); |
| | |
| | | */ |
| | | 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) { |