|
|
@@ -2,6 +2,8 @@ package com.yihucha.hbyhc.presentation.order.repository;
|
|
2
|
2
|
|
|
3
|
3
|
import android.annotation.SuppressLint;
|
|
4
|
4
|
|
|
|
5
|
+import com.alibaba.fastjson.JSON;
|
|
|
6
|
+import com.alipay.android.phone.mrpc.core.HttpException;
|
|
5
|
7
|
import com.yihucha.hbyhc.callback.NormalListener;
|
|
6
|
8
|
import com.yihucha.hbyhc.network.BaseObserver;
|
|
7
|
9
|
import com.yihucha.hbyhc.network.DataResponse;
|
|
|
@@ -14,6 +16,8 @@ import com.yihucha.hbyhc.presentation.order.model.OrderCreateBean;
|
|
14
|
16
|
import com.yihucha.hbyhc.presentation.order.model.OrderCreateShoppingBean;
|
|
15
|
17
|
import com.yihucha.hbyhc.utils.LogUtil;
|
|
16
|
18
|
|
|
|
19
|
+import java.io.IOException;
|
|
|
20
|
+import java.net.SocketTimeoutException;
|
|
17
|
21
|
import java.util.HashMap;
|
|
18
|
22
|
import java.util.Map;
|
|
19
|
23
|
|
|
|
@@ -63,6 +67,7 @@ public class OrderRepository {
|
|
63
|
67
|
orderService.orderCheck(cartIdRequest).compose(NetworkApi.applySchedulers(new BaseObserver<OrderCheckBean>() {
|
|
64
|
68
|
@Override
|
|
65
|
69
|
public void onSuccess(OrderCheckBean orderCheckBeanDataResponse) {
|
|
|
70
|
+ LogUtil.LogInfo("orderCheckBean----", JSON.toJSONString(orderCheckBeanDataResponse));
|
|
66
|
71
|
if (orderCheckBeanDataResponse.getStatus()==200){
|
|
67
|
72
|
listener.success(orderCheckBeanDataResponse);
|
|
68
|
73
|
}else {
|