Authored by Rock Zhang

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

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