diff --git a/framework/src/main/java/cn/lili/common/validation/Phone.java b/framework/src/main/java/cn/lili/common/validation/Phone.java index 9acdd3b9..4df00820 100644 --- a/framework/src/main/java/cn/lili/common/validation/Phone.java +++ b/framework/src/main/java/cn/lili/common/validation/Phone.java @@ -22,7 +22,7 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME; @Constraint(validatedBy = {PhoneValidator.class}) public @interface Phone { - String regexp() default "1[3|4|5|7|8]\\d{9}"; + String regexp() default "1[3|4|5|7|8|9]\\d{9}"; String message() default "手机号码格式不正确"; diff --git a/framework/src/main/java/cn/lili/modules/order/order/serviceimpl/OrderPackageServiceImpl.java b/framework/src/main/java/cn/lili/modules/order/order/serviceimpl/OrderPackageServiceImpl.java index 92319c07..d616813e 100644 --- a/framework/src/main/java/cn/lili/modules/order/order/serviceimpl/OrderPackageServiceImpl.java +++ b/framework/src/main/java/cn/lili/modules/order/order/serviceimpl/OrderPackageServiceImpl.java @@ -54,8 +54,8 @@ public class OrderPackageServiceImpl extends ServiceImpl implements orderPackage.setPackageNo(SnowFlake.createStr("OP")); orderPackage.setOrderSn(orderSn); orderPackage.setLogisticsNo(invoiceNumber); - orderPackage.setLogisticsCode(logistics.getCode()); + orderPackage.setLogisticsCode(logistics.getId()); orderPackage.setLogisticsName(logistics.getName()); orderPackage.setStatus("1"); orderPackage.setConsigneeMobile(order.getConsigneeMobile());