[fix]
[基础数据未就绪]
This commit is contained in:
yangyakun
2024-05-08 12:26:36 +08:00
parent f0842ff71f
commit 3ed5fbf31c

View File

@@ -492,6 +492,10 @@ public class OrderModel {
*/
public void abortTask() {
CallerLogger.d(M_BUS + TAG, "结束当前路线abortTask");
if(busRoutesResult==null){
ToastUtils.showLong("数据异常、请稍后再试");
return;
}
OrderServiceManager.abortTask(mContext, busRoutesResult.getTaskId()
, new OchCommonServiceCallback<BaseData>() {
@Override
@@ -816,6 +820,10 @@ public class OrderModel {
*/
public void leaveStation() {
CallerLogger.d(M_BUS + TAG, "leaveStation-backgroundCurrentStationIndex = " + backgroundCurrentStationIndex);
if(busRoutesResult==null){
ToastUtils.showLong("数据异常、请稍后再试");
return;
}
String nextStationName = "";
String nextStationNameKr = "";
MogoLocation nextStationPoint = new MogoLocation();