chore: #253
This commit is contained in:
@@ -134,7 +134,7 @@ public class WxAddressController extends GetRegionService {
|
||||
}
|
||||
|
||||
if (address.getIsDefault()) {
|
||||
// 重置其他收获地址的默认选项
|
||||
// 重置其他收货地址的默认选项
|
||||
addressService.resetDefault(userId);
|
||||
}
|
||||
|
||||
|
||||
@@ -395,7 +395,7 @@ public class WxCartController {
|
||||
LitemallAddress checkedAddress = null;
|
||||
if (addressId == null || addressId.equals(0)) {
|
||||
checkedAddress = addressService.findDefault(userId);
|
||||
// 如果仍然没有地址,则是没有收获地址
|
||||
// 如果仍然没有地址,则是没有收货地址
|
||||
// 返回一个空的地址id=0,这样前端则会提醒添加地址
|
||||
if (checkedAddress == null) {
|
||||
checkedAddress = new LitemallAddress();
|
||||
|
||||
Reference in New Issue
Block a user