网约车 未出车状态下 不处理订单
This commit is contained in:
@@ -104,7 +104,7 @@ class MogoOCHTaxiModel {
|
||||
*/
|
||||
private int mRetryCounter = 0;
|
||||
|
||||
private int mOCHRHCarstatus = -1;
|
||||
private int mOCHRHCarstatus = -1; // 1 已出车
|
||||
|
||||
private Object readResolve() {
|
||||
// 阻止反序列化,必须实现 Serializable 接口
|
||||
@@ -547,6 +547,9 @@ class MogoOCHTaxiModel {
|
||||
if ( obj == null ) {
|
||||
return;
|
||||
}
|
||||
if (mOCHRHCarstatus != 1){
|
||||
return;
|
||||
}
|
||||
Logger.d( TAG, "收到新订单" + GsonUtil.jsonFromObject(obj));
|
||||
mCurrentOCHOrder = obj;
|
||||
cacheOrderInfo2Native( mCurrentOCHOrder );
|
||||
@@ -615,6 +618,9 @@ class MogoOCHTaxiModel {
|
||||
if ( obj == null ) {
|
||||
return;
|
||||
}
|
||||
if (mOCHRHCarstatus != 1){
|
||||
return;
|
||||
}
|
||||
Logger.d(TAG, "订单状态被改变:" + GsonUtil.jsonFromObject(obj));
|
||||
OCHOrderStatus status = OCHOrderStatus.valueOf( obj.orderDispatchType );
|
||||
switch ( status ) {
|
||||
|
||||
Reference in New Issue
Block a user