Compare commits
2 Commits
4c4f6db86c
...
7d2330f18f
| Author | SHA1 | Date | |
|---|---|---|---|
| 7d2330f18f | |||
| 542ce3cf16 |
@ -1564,7 +1564,15 @@ public class ShopStoreBaseServiceImpl extends BaseServiceImpl<ShopStoreBaseMappe
|
||||
public Map getBase(Integer store_id) {
|
||||
|
||||
UserDto user = getCurrentUser();
|
||||
if (store_id == null) {
|
||||
if (user == null) {
|
||||
throw new ApiException(ResultCode.NEED_LOGIN);
|
||||
}
|
||||
|
||||
if (user.isPlatform()) {
|
||||
if (CheckUtil.isEmpty(store_id)) {
|
||||
throw new ApiException("平台操作,请传入店铺 Id");
|
||||
}
|
||||
} else {
|
||||
store_id = Convert.toInt(user.getStore_id());
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user