fix配置pad端菜品bug
This commit is contained in:
@@ -170,6 +170,9 @@ public class AuthorizationController {
|
||||
Long expireAt = shopInfo.getExpireAt();
|
||||
Date time = DateUtil.calendar(expireAt).getTime();
|
||||
authInfo.put("expireDate", DateUtil.formatDate(time));
|
||||
if (DateUtil.compare(new Date(), time) > 0) {
|
||||
throw new BadRequestException("店铺已到期,请联系区域经理续费");
|
||||
}
|
||||
}
|
||||
}
|
||||
return ResponseEntity.ok(authInfo);
|
||||
@@ -246,6 +249,9 @@ public class AuthorizationController {
|
||||
Long expireAt = shopInfo.getExpireAt();
|
||||
Date time = DateUtil.calendar(expireAt).getTime();
|
||||
authInfo.put("expireDate", DateUtil.formatDate(time));
|
||||
if (DateUtil.compare(new Date(), time) > 0) {
|
||||
throw new BadRequestException("店铺已到期,请联系区域经理续费");
|
||||
}
|
||||
}
|
||||
}
|
||||
return ResponseEntity.ok(authInfo);
|
||||
|
||||
Reference in New Issue
Block a user