Commit efb28bd00ddd2a639fe41c97dd263895a347c515
1 parent
98330c42
1、畅游通核销app:增加不同查询上传数据的判断
Showing
1 changed file
with
2 additions
and
1 deletions
src/com/ectrip/trips/net/HttpHelper.java
| @@ -4,6 +4,7 @@ import java.util.HashMap; | @@ -4,6 +4,7 @@ import java.util.HashMap; | ||
| 4 | import java.util.List; | 4 | import java.util.List; |
| 5 | 5 | ||
| 6 | import android.content.Context; | 6 | import android.content.Context; |
| 7 | +import android.text.TextUtils; | ||
| 7 | import android.widget.Toast; | 8 | import android.widget.Toast; |
| 8 | 9 | ||
| 9 | import com.ectrip.cyt.base.DataTrans; | 10 | import com.ectrip.cyt.base.DataTrans; |
| @@ -67,7 +68,7 @@ public class HttpHelper extends HttpHelperCore { | @@ -67,7 +68,7 @@ public class HttpHelper extends HttpHelperCore { | ||
| 67 | public void queryOrder(String method, String code, String phone, | 68 | public void queryOrder(String method, String code, String phone, |
| 68 | String credentials, String orderId, String startDate, | 69 | String credentials, String orderId, String startDate, |
| 69 | String endDate, String pageSize, String count, HttpCallback<DataTrans> httpCallback) { | 70 | String endDate, String pageSize, String count, HttpCallback<DataTrans> httpCallback) { |
| 70 | - if ((orderId.startsWith("TY_") || (orderId.startsWith("PMS_")))) { | 71 | + if (!TextUtils.isEmpty(orderId) && (orderId.startsWith("TY_") || (orderId.startsWith("PMS_")))) { |
| 71 | String voucher = orderId; | 72 | String voucher = orderId; |
| 72 | orderRequest = new QueryOrderRequest(method, code, | 73 | orderRequest = new QueryOrderRequest(method, code, |
| 73 | phone, credentials, "", startDate, endDate, pageSize, count, voucher); | 74 | phone, credentials, "", startDate, endDate, pageSize, count, voucher); |