登录返回店铺授权过期日期
This commit is contained in:
@@ -166,7 +166,7 @@ public class AuthorizationController {
|
||||
authInfo.put("expireDate", null);
|
||||
if (tbPlussShopStaff != null) {
|
||||
TbShopInfo shopInfo = shopInfoMapper.selectById(tbPlussShopStaff.getShopId());
|
||||
if (shopInfo != null) {
|
||||
if (shopInfo != null && shopInfo.getExpireAt() != null) {
|
||||
Long expireAt = shopInfo.getExpireAt();
|
||||
Date time = DateUtil.calendar(expireAt).getTime();
|
||||
authInfo.put("expireDate", DateUtil.formatDate(time));
|
||||
@@ -245,7 +245,7 @@ public class AuthorizationController {
|
||||
authInfo.put("expireDate", null);
|
||||
if (byAccount != null) {
|
||||
TbShopInfo shopInfo = shopInfoMapper.selectById(byAccount.getId());
|
||||
if (shopInfo != null) {
|
||||
if (shopInfo != null && shopInfo.getExpireAt() != null) {
|
||||
Long expireAt = shopInfo.getExpireAt();
|
||||
Date time = DateUtil.calendar(expireAt).getTime();
|
||||
authInfo.put("expireDate", DateUtil.formatDate(time));
|
||||
|
||||
Reference in New Issue
Block a user