Commit f1c433de authored by tangtuo's avatar tangtuo

debug

parent 9da074e7
...@@ -50,7 +50,7 @@ public class User extends AbstractUser { ...@@ -50,7 +50,7 @@ public class User extends AbstractUser {
@ApiModelProperty("认证类型 0-个人认证 1-企业认证") @ApiModelProperty("认证类型 0-个人认证 1-企业认证")
private Integer authType; private Integer authType;
@ApiModelProperty("实名认证状态 0-未认证 1-认证成功 2-认证失败 3-认证中") @ApiModelProperty("实名认证状态 0-未认证 1-认证成功 2-认证失败")
private Integer authStatus; private Integer authStatus;
@ApiModelProperty("是否发行过nft作品 0-否 1-是") @ApiModelProperty("是否发行过nft作品 0-否 1-是")
......
...@@ -46,7 +46,7 @@ public class LogAop { ...@@ -46,7 +46,7 @@ public class LogAop {
private static ThreadLocal<Long> threadLocal = new ThreadLocal<>(); private static ThreadLocal<Long> threadLocal = new ThreadLocal<>();
@Pointcut(value = "execution(public * com.fzm.portal.controller.*.*(..))") @Pointcut(value = "execution(public * com.fzm.portal.controller..*.*(..))")
public void pointCut() { public void pointCut() {
} }
...@@ -127,32 +127,4 @@ public class LogAop { ...@@ -127,32 +127,4 @@ public class LogAop {
return argList; return argList;
} }
public static void main(String[]args){
try {
// 实例化一个认证对象,入参需要传入腾讯云账户secretId,secretKey,此处还需注意密钥对的保密
// 密钥可前往https://console.cloud.tencent.com/cam/capi网站进行获取
Credential cred = new Credential("AKIDlMm3EC2dxXw50f4C4f092ey2pLaaKnyt", "g5D4ey1nJZXEhtoSovkIZYGhqjLgkgNo");
// 实例化一个http选项,可选的,没有特殊需求可以跳过
HttpProfile httpProfile = new HttpProfile();
httpProfile.setEndpoint("faceid.tencentcloudapi.com");
// 实例化一个client选项,可选的,没有特殊需求可以跳过
ClientProfile clientProfile = new ClientProfile();
clientProfile.setHttpProfile(httpProfile);
// 实例化要请求产品的client对象,clientProfile是可选的
FaceidClient client = new FaceidClient(cred, "ap-shanghai", clientProfile);
// 实例化一个请求对象,每个接口都会对应一个request对象
IdCardOCRVerificationRequest req = new IdCardOCRVerificationRequest();
String url = "https://test-nft.oss-cn-hangzhou.aliyuncs.com/20210913/ff8e541497d1482895be1f038bb0430e/微信图片_20210913144401.jpg";
req.setImageUrl(url);
// 返回的resp是一个IdCardOCRVerificationResponse的实例,与请求对象对应
IdCardOCRVerificationResponse resp = client.IdCardOCRVerification(req);
// 输出json格式的字符串回包
System.out.println(IdCardOCRVerificationResponse.toJsonString(resp));
} catch (TencentCloudSDKException e) {
System.out.println(e.toString());
}
}
} }
...@@ -24,10 +24,11 @@ public class CollectionController { ...@@ -24,10 +24,11 @@ public class CollectionController {
@Resource @Resource
private NftService nftService; private NftService nftService;
@Authentication @Authentication
@PostMapping("/add") @PostMapping("/add")
@ApiOperation(value = "收藏 | 取消收藏", notes = "用户如果已经收藏了当前作品的话就是取消收藏,反之就是收藏") @ApiOperation(value = "添加收藏 | 取消收藏", notes = "用户如果已经收藏了当前作品的话就是取消收藏,反之就是收藏")
public ResponseModel add(@ApiParam(value = "nft的主键") @RequestParam Integer id) { public ResponseModel<Boolean> add(@ApiParam(value = "nft的主键") @RequestParam Integer id) {
Boolean result = nftService.collection(id); Boolean result = nftService.collection(id);
return ResponseModel.success(result); return ResponseModel.success(result);
} }
...@@ -35,7 +36,7 @@ public class CollectionController { ...@@ -35,7 +36,7 @@ public class CollectionController {
@Authentication @Authentication
@GetMapping("/list") @GetMapping("/list")
@ApiOperation(value = "获取用户的收藏列表") @ApiOperation(value = "获取用户的收藏列表")
private ResponseModel<List<CollectionNftVo>> list(@RequestHeader(value = "Authorization") String token) { public ResponseModel<List<CollectionNftVo>> list() {
List<CollectionNftVo> list = nftService.getCollectionList(); List<CollectionNftVo> list = nftService.getCollectionList();
return ResponseModel.success(list); return ResponseModel.success(list);
} }
......
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