Authored by Rock Zhang

修复选中顺丰快递时,再切换到不支持顺丰快递的地址时不能正确显示的bug

Code Review By Rock Zhang
@@ -418,7 +418,7 @@ class CartModel @@ -418,7 +418,7 @@ class CartModel
418 $result['dispatchMode'][$key] = $oneDeliv; 418 $result['dispatchMode'][$key] = $oneDeliv;
419 } 419 }
420 420
421 - if (isset($orderInfo['deliveryId'])) { 421 + if (isset($orderInfo['deliveryId']) && isset($idArr[$orderInfo['deliveryId']])) {
422 $flag = array_search($orderInfo['deliveryId'], $idArr); 422 $flag = array_search($orderInfo['deliveryId'], $idArr);
423 $flag !== false && $result['dispatchMode'][$flag]['isSelected'] = true; 423 $flag !== false && $result['dispatchMode'][$flag]['isSelected'] = true;
424 } else { 424 } else {