From 7ba66f3d2b7b90ef59dcf4acdb41921767ffdfb9 Mon Sep 17 00:00:00 2001 From: long <18782126717@163.com> Date: Mon, 1 Aug 2022 17:40:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=A5=E5=8F=A3=E6=96=87?= =?UTF-8?q?=E6=A1=A3=EF=BC=8C=E4=BF=AE=E6=94=B9=E6=89=B9=E9=87=8F=E7=A9=BA?= =?UTF-8?q?=E6=8A=95=EF=BC=88=E8=BD=AC=E8=B5=A0=E6=96=B9=E5=BC=8F=EF=BC=89?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/nft/service/impl/ConfluxServiceImpl.java | 9 ++++----- .../java/com/conflux/web/controller/util/AESUtil.java | 2 +- doc/conflux上链.html | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/conflux-admin/src/main/java/com/conflux/web/controller/nft/service/impl/ConfluxServiceImpl.java b/conflux-admin/src/main/java/com/conflux/web/controller/nft/service/impl/ConfluxServiceImpl.java index f7251c7..d52a26d 100644 --- a/conflux-admin/src/main/java/com/conflux/web/controller/nft/service/impl/ConfluxServiceImpl.java +++ b/conflux-admin/src/main/java/com/conflux/web/controller/nft/service/impl/ConfluxServiceImpl.java @@ -450,11 +450,11 @@ public class ConfluxServiceImpl implements ConfluxService { //保存日志记录 nftLog.setMethod(metod); nftLog.setHashCode(hash); - nftLog.setNftIds(checkArgs.getId()); + nftLog.setNftIds(new Gson().toJson(checkArgs.getNftIds())); nftLog.setGasUsed(est.getGasUsed()); NftBurn batchBurn = new NftBurn(); batchBurn.setContract(contract); - batchBurn.setNftId(new Gson().toJson(checkArgs.getNftId())); + batchBurn.setNftId(new Gson().toJson(checkArgs.getNftIds())); batchBurn.setCretaeTime(new Date()); batchBurn.setInformationTableId(checkArgs.getId()); asyncExecutorNftSaveData.execute(() -> { @@ -471,7 +471,7 @@ public class ConfluxServiceImpl implements ConfluxService { BigInteger[] bigIntegers = Arrays.stream(checkArgs.getNftIds()).map(BigInteger::new).toArray(BigInteger[]::new); List tokenids = Arrays.asList(bigIntegers); est = confluxExecutor.getEstimateAirdrop(cfx, new Address(owner), - new Address(contract), AddressUtil.getHexAddress(owner), Arrays.asList(checkArgs.getAddress()), tokenids); + new Address(contract), AddressUtil.getHexAddress(owner), Arrays.asList(AddressUtil.getHexAddressToArry(checkArgs.getAddress())), tokenids); //判断所需要的费用 if (sponsoredBalanceForGas.compareTo(est.getGasUsed()) < 0) { return AjaxResult.error("代付余额不足"); @@ -481,7 +481,7 @@ public class ConfluxServiceImpl implements ConfluxService { opt.withGasLimit(est.getGasUsed()); opt.withStorageLimit(est.getStorageCollateralized()); hash = confluxExecutor.airdrop(opt, - AddressUtil.getHexAddress(owner), Arrays.asList(checkArgs.getAddress()), tokenids + AddressUtil.getHexAddress(owner), Arrays.asList(AddressUtil.getHexAddressToArry(checkArgs.getAddress())), tokenids ); log.info("[--------------------->mintNft][hash],{}", hash); log.info("[--------------------->mintNft][time end]{}", +(DateUtil.currentSeconds() - start)); @@ -489,7 +489,6 @@ public class ConfluxServiceImpl implements ConfluxService { metod = ConfluxExecutor.AIRDROP; //保存日志记录 nftLog.setMethod(metod); - nftLog.setNftNum(checkArgs.getIds().length); nftLog.setHashCode(hash); nftLog.setNftIds(Arrays.toString(tokenids.toArray())); nftLog.setGasUsed(est.getGasUsed()); diff --git a/conflux-admin/src/main/java/com/conflux/web/controller/util/AESUtil.java b/conflux-admin/src/main/java/com/conflux/web/controller/util/AESUtil.java index d1c0822..d081a51 100644 --- a/conflux-admin/src/main/java/com/conflux/web/controller/util/AESUtil.java +++ b/conflux-admin/src/main/java/com/conflux/web/controller/util/AESUtil.java @@ -219,7 +219,7 @@ public final class AESUtil { try { //System.err.println(Integer.valueOf("00000000000000000000000000000017")); //AES - String encrypt = Encrypt("4e45e5bc29d144a08f7eb6b043cc1e40","CONFLUX@12345678"); + String encrypt = Encrypt("bd7f631d597b4603a8c7b672d0898f5d","CONFLUX@12345678"); System.err.println(encrypt); //md5 // String hash = Md5Utils.md5Salt("0efc989dea214ed8bff99b0d14714481d660a7e7137c3ef0fc093efad244ee171f4308d9ccda9359add79e029bd169c9"); diff --git a/doc/conflux上链.html b/doc/conflux上链.html index 1229137..7dd8d94 100644 --- a/doc/conflux上链.html +++ b/doc/conflux上链.html @@ -203,7 +203,7 @@ var r=n(237),i=n(238),o=n(135);function u(){return a.TYPED_ARRAY_SUPPORT?2147483 window.onload = function() { // Begin Swagger UI call region const ui = SwaggerUIBundle({ - spec:{"openapi":"3.0.1","info":{"title":"conflux上链","description":"","version":"1.0.0"},"tags":[{"name":"区块链本地测试"}],"paths":{"/localhost:8080/api/conflux/getToken":{"post":{"summary":"获取token","x-apifox-folder":"区块链本地测试","x-apifox-status":"released","deprecated":false,"description":"","tags":["区块链本地测试"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"example":{"appId":"202206231342070202031092","privateKey":"cc60e9f7e5cc032f7e42186261880ef9"}}}},"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"examples":{}}}}}}},"/localhost:8080/api/conflux/createAccount":{"post":{"summary":"创建钱包地址","x-apifox-folder":"区块链本地测试","x-apifox-status":"released","deprecated":false,"description":"","tags":["区块链本地测试"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"example":{"sign":"9jhf0BfCitAY/h6/N7/L7nmRlZC3Bs2BAPE45h1ZTvqe2mDvUFrJHlXIxBJhYFPRD1kYgUeJdsK+DOHWQE2HTk6he9c1rXf/zfZriNczdkGtYQFq8iCuCkV+fe2/fCiPTcGtmbsQPTGZJYHnOL0+bZ2E2k41li5adD2AauvPN3oCuc5Yn3+PPaybMruTwjhVDnVAznSIFoUu9OHZxHe+7LxBPx8Oh6gbtFRgO8AAeE8=","token":"NNg4V5fk/HzlzHqmKBtlnQUhDrhjP0pkBV1/RLmzoU28QT8fDoeoG7RUYDvAAHhP","appId":"202206231342070202031092","privateKey":"cc60e9f7e5cc032f7e42186261880ef9","userId":"916b44b6c63ce71b735f2951db3","password":"123456"}}}},"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"examples":{}}}}}}},"/localhost:8080/api/conflux/createData":{"post":{"summary":"创建元数据","x-apifox-folder":"区块链本地测试","x-apifox-status":"released","deprecated":false,"description":"","tags":["区块链本地测试"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"example":{"appId":"202206231342070202031092","privateKey":"cc60e9f7e5cc032f7e42186261880ef9","strName":"测试","strDescription":"测试","strUri":"https://io.szcp.pub/1657073498682.jpg"}}}},"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"examples":{}}}}}}},"/localhost:8080/api/conflux/getNftStatus":{"post":{"summary":"查询上链的id","x-apifox-folder":"区块链本地测试","x-apifox-status":"released","deprecated":false,"description":"","tags":["区块链本地测试"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"example":{"ids":["fe0b6b55c5af499eaabbc5d65939c0d1","fe0b6b55c5af499eaabbc5d65939c0d4"],"appId":"202206080925220202021928","privateKey":"fdd88ad80b1ae29b4c0714a168996f9b"}}}},"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"examples":{}}}}}}},"/localhost:8080/api/conflux/batchBurn":{"post":{"summary":"批量销毁nft","x-apifox-folder":"区块链本地测试","x-apifox-status":"released","deprecated":false,"description":"","tags":["区块链本地测试"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"example":"{\r\n \"sign\":\"9jhf0BfCitAY/h6/N7/L7nmRlZC3Bs2BAPE45h1ZTvqe2mDvUFrJHlXIxBJhYFPRD1kYgUeJdsK+DOHWQE2HTk6he9c1rXf/zfZriNczdkGtYQFq8iCuCkV+fe2/fCiPTcGtmbsQPTGZJYHnOL0+bZ2E2k41li5adD2AauvPN3olGB7xk0B4fhMSezZnSfC8/3ZiWRe4Z9U7Dt3Dz3sp7bxBPx8Oh6gbtFRgO8AAeE8=\",\r\n \"token\":\"o2M6g10trM88JG7R0+BBlYUOH6TDrs65+kF842lrk0C8QT8fDoeoG7RUYDvAAHhP\",\r\n \"timesTamp\":{{timestamp}},\r\n \"nftId\":[\"fe0b6455c5af499eaabbc5d35939c5d5\"],\r\n \"unitName\":\"奇点艺术\",\r\n \"appId\":\"202206231342070202031092\",\r\n \"privateKey\":\"cc60e9f7e5cc032f7e42186261880ef9\"\r\n}"}}},"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"examples":{}}}}}}},"/localhost:8080/api/conflux/upload":{"post":{"summary":"上传区块链图片","x-apifox-folder":"区块链本地测试","x-apifox-status":"released","deprecated":false,"description":"","tags":["区块链本地测试"],"parameters":[],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"appId":{"type":"string","example":"202206231342070202031092"},"privateKey":{"type":"string","example":"cc60e9f7e5cc032f7e42186261880ef9"},"file":{"type":"string","example":"file://C:\\Users\\long\\Pictures\\nft\\nft.png","format":"binary"}},"required":["appId","privateKey","file"]}}}},"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"examples":{}}}}}}},"/localhost:8080/api/conflux/safeTransferFrom":{"post":{"summary":"转赠","x-apifox-folder":"区块链本地测试","x-apifox-status":"released","deprecated":false,"description":"","tags":["区块链本地测试"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"example":"{\r\n \"sign\":\"9jhf0BfCitAY/h6/N7/L7nmRlZC3Bs2BAPE45h1ZTvqe2mDvUFrJHlXIxBJhYFPRD1kYgUeJdsK+DOHWQE2HTk6he9c1rXf/zfZriNczdkGtYQFq8iCuCkV+fe2/fCiPTcGtmbsQPTGZJYHnOL0+bZ2E2k41li5adD2AauvPN3qawxQKdXMJXaQ9ctcaL7f7iaX/bkVT3UalxspP4nLz4LxBPx8Oh6gbtFRgO8AAeE8=\",\r\n \"token\":\"yP/vpaufNnZ3GoeoXQv3a9CNOQOJukJdzcQzseGHbHG8QT8fDoeoG7RUYDvAAHhP\",\r\n \"timesTamp\":{{timestamp}},\r\n \"ids\":[\"fe0b6b55c5af499eaabbc5d65939c0d7\"],\r\n \"unitName\":\"奇点艺术\",\r\n \"appId\":\"202206231342070202031092\",\r\n \"privateKey\":\"cc60e9f7e5cc032f7e42186261880ef9\",\r\n \"toUser\":\"cfxtest:aapbpby90h5m20t2mmv78rzgyuddzyceje6dtne43g\"\r\n}"}}},"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"examples":{}}}}}}},"/localhost:8080/api/conflux/burn":{"post":{"summary":"单个销毁nft","x-apifox-folder":"区块链本地测试","x-apifox-status":"released","deprecated":false,"description":"","tags":["区块链本地测试"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"example":"{\r\n \"sign\":\"9jhf0BfCitAY/h6/N7/L7nmRlZC3Bs2BAPE45h1ZTvqe2mDvUFrJHlXIxBJhYFPRD1kYgUeJdsK+DOHWQE2HTk6he9c1rXf/zfZriNczdkGtYQFq8iCuCkV+fe2/fCiPTcGtmbsQPTGZJYHnOL0+bZ2E2k41li5adD2AauvPN3qi7Vpk7rKSoVmVdBCP5goSE6+wYdMqEV5bbsj04GYO1LxBPx8Oh6gbtFRgO8AAeE8=\",\r\n \"token\":\"YbL5TNUh83xHc8Gt3zA/Sbg32/S1HNbTUpQJd17FoU68QT8fDoeoG7RUYDvAAHhP\",\r\n \"timesTamp\":{{timestamp}},\r\n \"id\":\"fe0b6455c5af499eaabbc5d35939c5d5\"\r\n \"unitName\":\"奇点艺术\",\r\n \"appId\":\"202206231342070202031092\",\r\n \"privateKey\":\"cc60e9f7e5cc032f7e42186261880ef9\",\r\n}"}}},"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"examples":{}}}}}}},"/localhost:8080/api/conflux/batchCasting":{"post":{"summary":"上链同一张图片nft","x-apifox-folder":"区块链本地测试","x-apifox-status":"released","deprecated":false,"description":"","tags":["区块链本地测试"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"example":"{\r\n \"sign\": \"9jhf0BfCitAY/h6/N7/L7nmRlZC3Bs2BAPE45h1ZTvqe2mDvUFrJHlXIxBJhYFPRD1kYgUeJdsK+DOHWQE2HTk6he9c1rXf/zfZriNczdkGtYQFq8iCuCkV+fe2/fCiPTcGtmbsQPTGZJYHnOL0+bZ2E2k41li5adD2AauvPN3pkuPZYcPcgwMxCmFyoogE+Io05pazFwdihRnSEWrbK7rxBPx8Oh6gbtFRgO8AAeE8=\",\r\n \"token\": \"nin96SmAzE7fwunpjwecTr68yS9hRXki6ApUbRErjNq8QT8fDoeoG7RUYDvAAHhP\",\r\n \"timesTamp\": {{timestamp}},\r\n \"ids\": [\r\n \"fe0b6b55c5af499eaabbc5d65939c0d8\"\r\n ],\r\n \"unitName\": \"奇点艺术\",\r\n \"appId\": \"202206231342070202031092\",\r\n \"privateKey\": \"cc60e9f7e5cc032f7e42186261880ef9\",\r\n \"strUri\": \"ipfs://bafkreibab4rjsy57ti3in5hcrvv5jv2lsxgt2n5rdjpujpyxsil723mfua\"\r\n}"}}},"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"examples":{}}}}}}},"/localhost:8080/api/conflux/airdropCasting":{"post":{"summary":"批量空投","x-apifox-folder":"区块链本地测试","x-apifox-status":"released","deprecated":false,"description":"","tags":["区块链本地测试"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"example":"{\r\n \"sign\":\"9jhf0BfCitAY/h6/N7/L7nmRlZC3Bs2BAPE45h1ZTvqe2mDvUFrJHlXIxBJhYFPRD1kYgUeJdsK+DOHWQE2HTk6he9c1rXf/zfZriNczdkGtYQFq8iCuCkV+fe2/fCiPTcGtmbsQPTGZJYHnOL0+bZ2E2k41li5adD2AauvPN3qi7Vpk7rKSoVmVdBCP5goSE6+wYdMqEV5bbsj04GYO1LxBPx8Oh6gbtFRgO8AAeE8=\",\r\n \"token\":\"YbL5TNUh83xHc8Gt3zA/Sbg32/S1HNbTUpQJd17FoU68QT8fDoeoG7RUYDvAAHhP\",\r\n \"timesTamp\":{{timestamp}},\r\n \"ids\":[\"fe0b6455c5af499eaabbc5d35939c5d5\",\"fe1b6655c5af499eaabbc5d35939c5d5\"],\r\n \"address\":[\"cfxtest:aajrvs6gcb3z9gsb6ss3vsp8rmbhnyffha6tmw502c\",\"cfxtest:aamg1zunhm3k430a1h6dasu1tuxm1t2ck21971b020\"],\r\n \"unitName\":\"奇点艺术\",\r\n \"appId\":\"202206231342070202031092\",\r\n \"privateKey\":\"cc60e9f7e5cc032f7e42186261880ef9\",\r\n \"strUri\": \"http://m.scyp.ink/m/api/202207/1658905744344.json\"\r\n}"}}},"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"examples":{}}}}}}}},"components":{"schemas":{}}}, + spec:{"openapi":"3.0.1","info":{"title":"conflux上链","description":"","version":"1.0.0"},"tags":[{"name":"区块链测试环境测试"}],"paths":{"/m/api/conflux/createAccount":{"post":{"summary":"创建钱包地址","x-apifox-folder":"区块链测试环境测试","x-apifox-status":"released","deprecated":false,"description":"","tags":["区块链测试环境测试"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"example":{"sign":"9jhf0BfCitAY/h6/N7/L7nmRlZC3Bs2BAPE45h1ZTvqe2mDvUFrJHlXIxBJhYFPRD1kYgUeJdsK+DOHWQE2HTk6he9c1rXf/zfZriNczdkGtYQFq8iCuCkV+fe2/fCiPTcGtmbsQPTGZJYHnOL0+bZ2E2k41li5adD2AauvPN3oCuc5Yn3+PPaybMruTwjhVDnVAznSIFoUu9OHZxHe+7LxBPx8Oh6gbtFRgO8AAeE8=","token":"NNg4V5fk/HzlzHqmKBtlnQUhDrhjP0pkBV1/RLmzoU28QT8fDoeoG7RUYDvAAHhP","appId":"202206231342070202031092","privateKey":"cc60e9f7e5cc032f7e42186261880ef9","userId":"916b44b6c63ce71b735f2951db3","password":"123456"}}}},"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"examples":{}}}}}}},"/m/api/conflux/createData":{"post":{"summary":"创建元数据","x-apifox-folder":"区块链测试环境测试","x-apifox-status":"released","deprecated":false,"description":"","tags":["区块链测试环境测试"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"example":{"appId":"202206231342070202031092","privateKey":"cc60e9f7e5cc032f7e42186261880ef9","strName":"测试","strDescription":"测试","strUri":"https://io.szcp.pub/1657073498682.jpg"}}}},"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"examples":{}}}}}}},"/m/api/conflux/batchBurn":{"post":{"summary":"批量销毁nft","x-apifox-folder":"区块链测试环境测试","x-apifox-status":"released","deprecated":false,"description":"","tags":["区块链测试环境测试"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"example":"{\r\n \"sign\":\"9jhf0BfCitAY/h6/N7/L7nmRlZC3Bs2BAPE45h1ZTvqe2mDvUFrJHlXIxBJhYFPRD1kYgUeJdsK+DOHWQE2HTk6he9c1rXf/zfZriNczdkGtYQFq8iCuCkV+fe2/fCiPTcGtmbsQPTGZJYHnOL0+bZ2E2k41li5adD2AauvPN3rKA6zScEu9gznRCs4QliJHZGQdUAHVZ7gEhMOXMJ8Wo7xBPx8Oh6gbtFRgO8AAeE8=\",\r\n \"token\":\"Xil0/f1aB5DNqU09WQZA257e2SUHIw8oCVB7SPPMm1q8QT8fDoeoG7RUYDvAAHhP\",\r\n \"timesTamp\":{{timestamp}},\r\n \"nftId\":[\"4\",\"5\"],\r\n \"unitName\":\"奇点艺术\",\r\n \"appId\":\"202206231342070202031092\",\r\n \"privateKey\":\"cc60e9f7e5cc032f7e42186261880ef9\"\r\n}"}}},"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"examples":{}}}}}}},"/m/api/conflux/getToken":{"post":{"summary":"获取token","x-apifox-folder":"区块链测试环境测试","x-apifox-status":"released","deprecated":false,"description":"","tags":["区块链测试环境测试"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"example":{"appId":"202206231342070202031092","privateKey":"cc60e9f7e5cc032f7e42186261880ef9"}}}},"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"examples":{}}}}}}},"/m/api/conflux/airdrop":{"post":{"summary":"批量空投(转赠方式)","x-apifox-folder":"区块链测试环境测试","x-apifox-status":"released","deprecated":false,"description":"","tags":["区块链测试环境测试"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"example":"{\r\n \"sign\":\"9jhf0BfCitAY/h6/N7/L7nmRlZC3Bs2BAPE45h1ZTvqe2mDvUFrJHlXIxBJhYFPRD1kYgUeJdsK+DOHWQE2HTk6he9c1rXf/zfZriNczdkGtYQFq8iCuCkV+fe2/fCiPTcGtmbsQPTGZJYHnOL0+bZ2E2k41li5adD2AauvPN3rKA6zScEu9gznRCs4QliJHZGQdUAHVZ7gEhMOXMJ8Wo7xBPx8Oh6gbtFRgO8AAeE8=\",\r\n \"token\":\"Xil0/f1aB5DNqU09WQZA257e2SUHIw8oCVB7SPPMm1q8QT8fDoeoG7RUYDvAAHhP\",\r\n \"timesTamp\":{{timestamp}},\r\n \"nftIds\":[\"6\",\"7\"],\r\n \"address\":[\"cfxtest:aajrvs6gcb3z9gsb6ss3vsp8rmbhnyffha6tmw502c\",\"cfxtest:aamg1zunhm3k430a1h6dasu1tuxm1t2ck21971b020\"],\r\n \"unitName\":\"奇点艺术\",\r\n \"appId\":\"202206231342070202031092\",\r\n \"privateKey\":\"cc60e9f7e5cc032f7e42186261880ef9\",\r\n}"}}},"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"examples":{}}}}}}},"/m/api/conflux/getNftStatus":{"post":{"summary":"查询上链的id","x-apifox-folder":"区块链测试环境测试","x-apifox-status":"released","deprecated":false,"description":"","tags":["区块链测试环境测试"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"example":{"ids":["fe0b6b55c5af499eaabbc5d65939c0d1","fe0b6b55c5af499eaabbc5d65939c0d4"],"appId":"202206080925220202021928","privateKey":"fdd88ad80b1ae29b4c0714a168996f9b"}}}},"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"examples":{}}}}}}},"/m/api/conflux/airdropCasting":{"post":{"summary":"批量空投(铸造方式)","x-apifox-folder":"区块链测试环境测试","x-apifox-status":"released","deprecated":false,"description":"","tags":["区块链测试环境测试"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"example":"{\r\n \"sign\":\"9jhf0BfCitAY/h6/N7/L7nmRlZC3Bs2BAPE45h1ZTvqe2mDvUFrJHlXIxBJhYFPRD1kYgUeJdsK+DOHWQE2HTk6he9c1rXf/zfZriNczdkGtYQFq8iCuCkV+fe2/fCiPTcGtmbsQPTGZJYHnOL0+bZ2E2k41li5adD2AauvPN3qi7Vpk7rKSoVmVdBCP5goSE6+wYdMqEV5bbsj04GYO1LxBPx8Oh6gbtFRgO8AAeE8=\",\r\n \"token\":\"YbL5TNUh83xHc8Gt3zA/Sbg32/S1HNbTUpQJd17FoU68QT8fDoeoG7RUYDvAAHhP\",\r\n \"timesTamp\":{{timestamp}},\r\n \"ids\":[\"fe0b6455c5af499eaabbc5d35939c5d5\",\"fe1b6655c5af499eaabbc5d35939c5d5\"],\r\n \"address\":[\"cfxtest:aajrvs6gcb3z9gsb6ss3vsp8rmbhnyffha6tmw502c\",\"cfxtest:aamg1zunhm3k430a1h6dasu1tuxm1t2ck21971b020\"],\r\n \"unitName\":\"奇点艺术\",\r\n \"appId\":\"202206231342070202031092\",\r\n \"privateKey\":\"cc60e9f7e5cc032f7e42186261880ef9\",\r\n \"strUri\": \"http://m.scyp.ink/m/api/202207/1658905744344.json\"\r\n}"}}},"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"examples":{}}}}}}},"/m/api/conflux/safeTransferFrom":{"post":{"summary":"转赠","x-apifox-folder":"区块链测试环境测试","x-apifox-status":"released","deprecated":false,"description":"","tags":["区块链测试环境测试"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"example":"{\r\n \"sign\":\"9jhf0BfCitAY/h6/N7/L7nmRlZC3Bs2BAPE45h1ZTvqe2mDvUFrJHlXIxBJhYFPRD1kYgUeJdsK+DOHWQE2HTk6he9c1rXf/zfZriNczdkGtYQFq8iCuCkV+fe2/fCiPTcGtmbsQPTGZJYHnOL0+bZ2E2k41li5adD2AauvPN3qawxQKdXMJXaQ9ctcaL7f7iaX/bkVT3UalxspP4nLz4LxBPx8Oh6gbtFRgO8AAeE8=\",\r\n \"token\":\"yP/vpaufNnZ3GoeoXQv3a9CNOQOJukJdzcQzseGHbHG8QT8fDoeoG7RUYDvAAHhP\",\r\n \"timesTamp\":{{timestamp}},\r\n \"ids\":[\"fe0b6b55c5af499eaabbc5d65939c0d7\"],\r\n \"unitName\":\"奇点艺术\",\r\n \"appId\":\"202206231342070202031092\",\r\n \"privateKey\":\"cc60e9f7e5cc032f7e42186261880ef9\",\r\n \"toUser\":\"cfxtest:aapbpby90h5m20t2mmv78rzgyuddzyceje6dtne43g\"\r\n}"}}},"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"examples":{}}}}}}},"/m/api/conflux/upload":{"post":{"summary":"创建区块链图片","x-apifox-folder":"区块链测试环境测试","x-apifox-status":"released","deprecated":false,"description":"","tags":["区块链测试环境测试"],"parameters":[],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"appId":{"type":"string","example":"202206231342070202031092"},"privateKey":{"type":"string","example":"cc60e9f7e5cc032f7e42186261880ef9"},"file":{"type":"string","example":"file://C:\\Users\\long\\Pictures\\nft\\xiaowu.jpg","format":"binary"}}}}}},"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"examples":{}}}}}}},"/m/api/conflux/burn":{"post":{"summary":"单个销毁nft","x-apifox-folder":"区块链测试环境测试","x-apifox-status":"released","deprecated":false,"description":"","tags":["区块链测试环境测试"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"example":"{\r\n \"sign\":\"9jhf0BfCitAY/h6/N7/L7nmRlZC3Bs2BAPE45h1ZTvqe2mDvUFrJHlXIxBJhYFPRD1kYgUeJdsK+DOHWQE2HTk6he9c1rXf/zfZriNczdkGtYQFq8iCuCkV+fe2/fCiPTcGtmbsQPTGZJYHnOL0+bZ2E2k41li5adD2AauvPN3rKA6zScEu9gznRCs4QliJHZGQdUAHVZ7gEhMOXMJ8Wo7xBPx8Oh6gbtFRgO8AAeE8=\",\r\n \"token\":\"Xil0/f1aB5DNqU09WQZA257e2SUHIw8oCVB7SPPMm1q8QT8fDoeoG7RUYDvAAHhP\",\r\n \"timesTamp\":{{timestamp}},\r\n \"nftId\":\"3\",\r\n \"unitName\":\"奇点艺术\",\r\n \"appId\":\"202206231342070202031092\",\r\n \"privateKey\":\"cc60e9f7e5cc032f7e42186261880ef9\"\r\n}"}}},"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"examples":{}}}}}}},"/m/api/conflux/batchCasting":{"post":{"summary":"上链同一张图片的nft(批量)","x-apifox-folder":"区块链测试环境测试","x-apifox-status":"released","deprecated":false,"description":"","tags":["区块链测试环境测试"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"example":"{\r\n \"sign\": \"9jhf0BfCitAY/h6/N7/L7nmRlZC3Bs2BAPE45h1ZTvqe2mDvUFrJHlXIxBJhYFPRD1kYgUeJdsK+DOHWQE2HTk6he9c1rXf/zfZriNczdkGtYQFq8iCuCkV+fe2/fCiPTcGtmbsQPTGZJYHnOL0+bZ2E2k41li5adD2AauvPN3pkuPZYcPcgwMxCmFyoogE+Io05pazFwdihRnSEWrbK7rxBPx8Oh6gbtFRgO8AAeE8=\",\r\n \"token\": \"nin96SmAzE7fwunpjwecTr68yS9hRXki6ApUbRErjNq8QT8fDoeoG7RUYDvAAHhP\",\r\n \"timesTamp\": {{timestamp}},\r\n \"ids\": [\r\n \"fe0b6b55c5af499eaabbc5d65939c0d8\"\r\n ],\r\n \"unitName\": \"奇点艺术\",\r\n \"appId\": \"202206231342070202031092\",\r\n \"privateKey\": \"cc60e9f7e5cc032f7e42186261880ef9\",\r\n \"strUri\": \"ipfs://bafkreibab4rjsy57ti3in5hcrvv5jv2lsxgt2n5rdjpujpyxsil723mfua\"\r\n}"}}},"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object","properties":{},"x-apifox-ignore-properties":[],"x-apifox-orders":[]},"examples":{}}}}}}}},"components":{"schemas":{}}}, dom_id: '#swagger-ui', deepLinking: true, presets: [