平台内部配送费的逻辑新增。细节调整默认值
This commit is contained in:
parent
09154bcdb4
commit
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