Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
1f7f61fd
Commit
1f7f61fd
authored
Sep 03, 2020
by
王栋源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wdy
parent
326e9929
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
1 deletions
+39
-1
igirl-zcapi/app/base/api/impl/trademark/tmqueryApi.js
+2
-0
igirl-zcapi/app/base/api/impl/trademark/tmsearch.js
+37
-0
igirl-zcapi/app/base/service/impl/common/uploadSve.js
+0
-1
No files found.
igirl-zcapi/app/base/api/impl/trademark/tmqueryApi.js
View file @
1f7f61fd
...
...
@@ -152,10 +152,12 @@ class tmqueryApi extends ApiBase{
var
currentPage
=
obj
.
currentPage
;
var
ncl
=
obj
.
ncl
;
var
nclcode
=
[];
if
(
ncl
){
for
(
var
i
=
0
;
i
<
ncl
.
length
;
i
++
){
var
num
=
Number
(
ncl
[
i
].
slice
(
0
,
2
))
nclcode
.
push
(
num
);
};
}
var
nclNum
=
obj
.
nclNum
;
var
nclNumcode
=
[];
for
(
var
i
=
0
;
i
<
nclNum
.
length
;
i
++
){
...
...
igirl-zcapi/app/base/api/impl/trademark/tmsearch.js
View file @
1f7f61fd
...
...
@@ -5079,5 +5079,42 @@ class ByTmSearchApi extends ApiBase {
return rtn = System.getResult2(null, null);
}
};
// async opEsQuery(codeList) {
// var params = {
// "
query
": {
// "
terms
": {
// "
tm_regist_num
": codeList
// }
// },
// "
from
": 0,
// "
size
": 500,
// "
_source
": [
// "
pic_url
",
// "
tm_name
",
// "
tm_name_en
",
// "
tm_regist_num
",
// "
ncl_one_codes
",
// "
applicant_cn
",
// "
original_regist_notice_day
",
// "
tm_end_day
",
// "
ncl_two_codes
",
// "
cn_count
",
// "
en_name_count
",
// "
regist_notice_day
"
// ]
// };
// logCtl.info({
// optitle: "
往
ES
中插入数据查询
ES
-
opEsQuery
-
info
",
// op: "
/
igirl
-
web
/
app
/
base
/
service
/
impl
/
utilstmtasktradeSve
.
js
/
opEsQuery
",
// content: JSON.stringify(params),
// clientIp: ""
// });
// var esData = await self.returnResult(params, this.tmSearchUrl, "
UtilsTmTaskTradeService
", "
opEsQuery
");
// if (esData.status == 0 && esData.data.length > 0) {
// await self.addEsData(auditData, esData.data, self, rc);
// }
// }
}
module.exports = ByTmSearchApi;
igirl-zcapi/app/base/service/impl/common/uploadSve.js
View file @
1f7f61fd
...
...
@@ -23,7 +23,6 @@ class UploadService extends ServiceBase{
var
b
=
new
Buffer
(
JSON
.
stringify
(
policyText
));
var
policyBase64
=
b
.
toString
(
'base64'
);
var
signature
=
crypto
.
createHmac
(
'sha1'
,
accesskey
).
update
(
policyBase64
).
digest
().
toString
(
'base64'
);
//base64
var
data
=
{
OSSAccessKeyId
:
accessKeyId
,
policy
:
policyBase64
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment