From 6fc49ad77ca8ae1780795996695a9ecc9c5b4e94 Mon Sep 17 00:00:00 2001 From: CaiHQ Date: Fri, 17 Nov 2023 16:36:14 +0800 Subject: [PATCH] update old release --- backend/build.gradle | 2 +- backend/yjs/search.yjs | 35 ++++++++++++++++------------------- 2 files changed, 17 insertions(+), 20 deletions(-) diff --git a/backend/build.gradle b/backend/build.gradle index 9edffb3..79d5188 100644 --- a/backend/build.gradle +++ b/backend/build.gradle @@ -14,7 +14,7 @@ plugins { id 'java' id 'java-library' } -version = "1.4.1" +version = "1.4.2" group = 'org.bdware.sc.controlproxy' tasks.withType(JavaCompile) { diff --git a/backend/yjs/search.yjs b/backend/yjs/search.yjs index aff5b73..376a183 100755 --- a/backend/yjs/search.yjs +++ b/backend/yjs/search.yjs @@ -110,27 +110,24 @@ module SearchModule { ////{"params":[{"type":"owner","keyword":"说明"},{"type":"doid","keyword":"aibd"}],"count":"10","offset":"0"} //返回:{"data":[{},{},{}],"count":3} @ArgSchema({ - "!params" : [{ - "!type" : "string", "!keyword" : "string", "mode" : "string" - }], "count" : "integer", "offset" : "integer" }) export function search(arg) { - arg = convertArgToJson(arg); - var req = { - "searchMode" : [] - }; - for (var i = 0; i < arg.params.length; i ++){ - var mode = "MAY"; - if (arg.params[i].mode != null){ - mode = arg.params[i].mode; - } - req.searchMode.push({ - "key" : arg.params[i].type, "value" : arg.params[i].keyword, "type" : mode - }); - } - req.offset = arg.offset; - req.count = arg.count; - var res = executeContract("Registry", "searchDo", JSON.stringify(req)); +// arg = convertArgToJson(arg); +// var req = { +// "searchMode" : [] +// }; +// for (var i = 0; i < arg.params.length; i ++){ +// var mode = "MAY"; +// if (arg.params[i].mode != null){ +// mode = arg.params[i].mode; +// } +// req.searchMode.push({ +// "key" : arg.params[i].type, "value" : arg.params[i].keyword, "type" : mode +// }); +// } + // req.offset = arg.offset; + // req.count = arg.count; + var res = executeContract("Registry", "searchDo", JSON.stringify(arg)); return res.result; } } \ No newline at end of file