修复选中顺丰快递时,再切换到不支持顺丰快递的地址时不能正确显示的bug
Code Review By Rock Zhang
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -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 { |
-
Please register or login to post a comment