|
@@ -40,6 +40,7 @@ import com.zanxiang.game.module.mybatis.mapper.AgentMapper;
|
|
|
import com.zanxiang.module.util.JsonUtil;
|
|
|
import com.zanxiang.module.util.bean.BeanUtil;
|
|
|
import com.zanxiang.module.util.exception.BaseException;
|
|
|
+import com.zanxiang.module.util.pojo.ResultVO;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
@@ -115,14 +116,18 @@ public class AgentServiceImpl extends ServiceImpl<AgentMapper, Agent> implements
|
|
|
|
|
|
@Override
|
|
|
public Boolean newWebUserActionSet(TencentNewWebUserActionSetDTO dto) {
|
|
|
- return userActionSetV3Rpc.create(CreateUserActionSetV3RpcDTO.builder()
|
|
|
- .accountId(dto.getAdAccountId())
|
|
|
- .type("WEB")
|
|
|
- .name(dto.getName())
|
|
|
- .description(dto.getDescription())
|
|
|
- .enableConversionClaim(true)
|
|
|
- .unique(true)
|
|
|
- .build()).getData() != null;
|
|
|
+ ResultVO<Long> result = userActionSetV3Rpc.create(CreateUserActionSetV3RpcDTO.builder()
|
|
|
+ .accountId(dto.getAdAccountId())
|
|
|
+ .type("WEB")
|
|
|
+ .name(dto.getName())
|
|
|
+ .description(dto.getDescription())
|
|
|
+ .enableConversionClaim(true)
|
|
|
+ .unique(true)
|
|
|
+ .build());
|
|
|
+ if(result.isSuccess()) {
|
|
|
+ return result.getData() != null;
|
|
|
+ }
|
|
|
+ throw new BaseException(result.getMsg());
|
|
|
}
|
|
|
|
|
|
@Override
|