fix配置pad端菜品bug
This commit is contained in:
parent
4a755cfed5
commit
c5a7d86f0b
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue