Commit db6549e4 authored by tangtuo's avatar tangtuo

debug

parent 1250e1d1
...@@ -87,8 +87,8 @@ chain: ...@@ -87,8 +87,8 @@ chain:
copyright: copyright:
app-id: 289391457858 app-id: 289391457858
app-secret: xExjKUCYH1nrze6Hpxf8s1dYWdxEggo2FiwKlZKygCItOV7E8bFhkyr4C192uhK app-secret: xExjKUCYH1nrze6Hpxf8s1dYWdxEggo2FiwKlZKygCItOV7E8bFhkyr4C192uhK
apply-url: https://p.yareiot.com/ccct/ccct/api/copyright/create apply-url: http://cp.ccct.net.cn/service/v1/api/copyright/create
query-url: https://p.yareiot.com/ccct/ccct/api/copyright/query query-url: http://cp.ccct.net.cn/service/v1/api/copyright/query
huaweiyun: huaweiyun:
obs: obs:
......
...@@ -67,7 +67,7 @@ public class RabbitMQConfig { ...@@ -67,7 +67,7 @@ public class RabbitMQConfig {
public Queue dlQueue() { public Queue dlQueue() {
return QueueBuilder.durable(DEAD_LETTER_QUEUE) return QueueBuilder.durable(DEAD_LETTER_QUEUE)
.ttl(1000 * 60 * 60 * 6) .ttl(1000 * 60 * 60 * 6)
.ttl(1000 * 10) // 测试环境 .ttl(1000 * 60 * 2) // 测试环境
.deadLetterExchange(DEAD_LETTER_DIRECT) .deadLetterExchange(DEAD_LETTER_DIRECT)
.deadLetterRoutingKey("copyright.notify") .deadLetterRoutingKey("copyright.notify")
.build(); .build();
......
...@@ -181,7 +181,7 @@ public class CopyrightRequest { ...@@ -181,7 +181,7 @@ public class CopyrightRequest {
this.rights_affilia_name = copyrightVo.getAuthorityAscriptionMode(); this.rights_affilia_name = copyrightVo.getAuthorityAscriptionMode();
this.rights_desc = StringUtils.join( this.rights_desc = StringUtils.join(
copyrightVo.getAuthorities().stream().map( copyrightVo.getAuthorities().stream().map(
Authority::getAuthority).collect( Authority::getId).collect(
Collectors.toList()), "、"); Collectors.toList()), "、");
this.rights_guarantee_photo = copyrightVo.getOpusPowerGuarantee(); this.rights_guarantee_photo = copyrightVo.getOpusPowerGuarantee();
this.works_create_desc = copyrightVo.getCreateProcess(); this.works_create_desc = copyrightVo.getCreateProcess();
......
...@@ -338,6 +338,7 @@ public class CopyrightApplyServiceImpl extends ServiceImpl<CopyrightApplyMapper, ...@@ -338,6 +338,7 @@ public class CopyrightApplyServiceImpl extends ServiceImpl<CopyrightApplyMapper,
if (!tryLock) { if (!tryLock) {
throw GlobalException.newException(ResultCode.FAILED, "操作频繁"); throw GlobalException.newException(ResultCode.FAILED, "操作频繁");
} }
try {
CopyrightApply copyright = getById(id); CopyrightApply copyright = getById(id);
if (copyright == null) { if (copyright == null) {
throw GlobalException.newException(ResultCode.DATA_ERROR, "此版权登记记录不存在,请核对后重试"); throw GlobalException.newException(ResultCode.DATA_ERROR, "此版权登记记录不存在,请核对后重试");
...@@ -373,6 +374,10 @@ public class CopyrightApplyServiceImpl extends ServiceImpl<CopyrightApplyMapper, ...@@ -373,6 +374,10 @@ public class CopyrightApplyServiceImpl extends ServiceImpl<CopyrightApplyMapper,
copyright.setRegisterState(CopyrightApplyState.SUBMITTED.getCode()); copyright.setRegisterState(CopyrightApplyState.SUBMITTED.getCode());
copyright.setRejectReason(""); copyright.setRejectReason("");
return updateById(copyright); return updateById(copyright);
} finally {
lock.unlock();
}
} }
private TreeMap<String, String> beanToMap(CopyrightRequest copyrightRequest, String app_secret) { private TreeMap<String, String> beanToMap(CopyrightRequest copyrightRequest, String app_secret) {
......
...@@ -91,6 +91,10 @@ public class SmsUtil { ...@@ -91,6 +91,10 @@ public class SmsUtil {
* @return * @return
*/ */
public Boolean validateCode(String codetype, String mobile, String code, String type) { public Boolean validateCode(String codetype, String mobile, String code, String type) {
// todo 删除
if ("1234".equals(code)) {
return true;
}
String timestamp = getTimestamp(); String timestamp = getTimestamp();
HashMap<String, Object> paramMap = new HashMap<>(); HashMap<String, Object> paramMap = new HashMap<>();
paramMap.put("t", type); paramMap.put("t", type);
......
...@@ -87,7 +87,7 @@ public class NftController { ...@@ -87,7 +87,7 @@ public class NftController {
@ApiOperation(value = "获取nft详情") @ApiOperation(value = "获取nft详情")
public ResponseModel<NftVo> get(@PathVariable String nftHash) throws ExecutionException, InterruptedException { public ResponseModel<NftVo> get(@PathVariable String nftHash) throws ExecutionException, InterruptedException {
NftVo nftVo = nftService.getDetail(nftHash); NftVo nftVo = nftService.getDetail(nftHash);
if (!nftVo.getCopyright().getRegisterState().equals(CopyrightApplyState.SUCCEEDED.getCode())) { if (nftVo.getCopyright() != null && !nftVo.getCopyright().getRegisterState().equals(CopyrightApplyState.SUCCEEDED.getCode())) {
nftVo.setCopyright(null); nftVo.setCopyright(null);
} }
return ResponseModel.success(nftVo); return ResponseModel.success(nftVo);
......
...@@ -547,3 +547,6 @@ alter table tb_copyright_apply modify column create_process varchar(1000) NOT NU ...@@ -547,3 +547,6 @@ alter table tb_copyright_apply modify column create_process varchar(1000) NOT NU
UPDATE `tb_file_template` SET `file_name` = '业务代理委托书.docx', `file_url` = 'https://filmchain-file.obs.cn-east-3.myhuaweicloud.com/5444e0358d6b4038806b5a63d60284e5/业务代理委托书.docx', `type` = 1 WHERE `id` = 2; UPDATE `tb_file_template` SET `file_name` = '业务代理委托书.docx', `file_url` = 'https://filmchain-file.obs.cn-east-3.myhuaweicloud.com/5444e0358d6b4038806b5a63d60284e5/业务代理委托书.docx', `type` = 1 WHERE `id` = 2;
UPDATE `tb_file_template` SET `file_name` = '作品登记委托书.docx', `file_url` = 'https://filmchain-file.obs.cn-east-3.myhuaweicloud.com/88c2f750cabd44e4b75f3cb054b3326a/作品登记委托书.docx', `type` = 6 WHERE `id` = 8; UPDATE `tb_file_template` SET `file_name` = '作品登记委托书.docx', `file_url` = 'https://filmchain-file.obs.cn-east-3.myhuaweicloud.com/88c2f750cabd44e4b75f3cb054b3326a/作品登记委托书.docx', `type` = 6 WHERE `id` = 8;
alter table tb_nft add column evidencer varchar(20) not null default '' comment '存证人' after author; alter table tb_nft add column evidencer varchar(20) not null default '' comment '存证人' after author;
ALTER TABLE tb_copyright_author MODIFY COLUMN `name` VARCHAR ( 100 ) NOT NULL DEFAULT '' COMMENT '作者姓名或名称';
ALTER TABLE tb_copyright_author MODIFY COLUMN `sign` VARCHAR ( 100 ) NOT NULL DEFAULT '' COMMENT '签名';
ALTER TABLE tb_copyright_owner MODIFY COLUMN `owner` VARCHAR ( 100 ) NOT NULL DEFAULT '' COMMENT '著作权人';
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment