fix(REQ-2774): 页面元素上报增加秘钥和上报人
This commit is contained in:
parent
8b5c575206
commit
a470a34edb
@ -5,6 +5,7 @@ import cn.axzo.basics.common.util.AssertUtil;
|
||||
import cn.axzo.basics.common.util.StopWatchUtil;
|
||||
import cn.axzo.basics.profiles.api.UserProfileServiceApi;
|
||||
import cn.axzo.basics.profiles.dto.basic.PersonProfileDto;
|
||||
import cn.axzo.foundation.exception.BusinessException;
|
||||
import cn.axzo.framework.domain.page.PageResp;
|
||||
import cn.axzo.pokonyan.config.mybatisplus.BaseEntity;
|
||||
import cn.axzo.tyr.client.common.enums.FeatureResourceType;
|
||||
@ -17,7 +18,6 @@ import cn.axzo.tyr.client.model.res.IdentityAuthRes;
|
||||
import cn.axzo.tyr.client.model.res.PageElementBasicDTO;
|
||||
import cn.axzo.tyr.client.model.res.PageElementResp;
|
||||
import cn.axzo.tyr.server.model.RelationOperateLogResourceBindElementDO;
|
||||
import cn.axzo.tyr.server.model.RelationOperateLogResourceBindRoleDO;
|
||||
import cn.axzo.tyr.server.repository.dao.SaasFeatureResourceDao;
|
||||
import cn.axzo.tyr.server.repository.dao.SaasPageElementDao;
|
||||
import cn.axzo.tyr.server.repository.dao.SaasPageElementFeatureResourceRelationDao;
|
||||
@ -82,7 +82,10 @@ public class SaasPageElementServiceImpl implements SaasPageElementService {
|
||||
public void report(PageElementReportReq request) {
|
||||
StopWatchUtil watch = StopWatchUtil.createStarted("saasPageElement-report");
|
||||
watch.start("report");
|
||||
AssertUtil.isTrue(reportSecretKeys.contains(request.getSecretKey()), "上报秘钥有误。");
|
||||
// AssertUtil.isTrue(reportSecretKeys.contains(request.getSecretKey()), "上报秘钥有误。");
|
||||
if (!reportSecretKeys.contains(request.getSecretKey())) {
|
||||
throw new BusinessException("403", "上报秘钥有误。");
|
||||
}
|
||||
// 根据端删除所有的元素
|
||||
saasPageElementDao.deleteAllByTerminal(request.getTerminal());
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user