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
47958582
Commit
47958582
authored
May 25, 2020
by
王栋源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wdy
parent
61578bff
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
fqboss/app/base/api/impl/tmInfoPusherApi.js
+8
-8
fqboss/app/base/utils/aliyunClient.js
+2
-2
No files found.
fqboss/app/base/api/impl/tmInfoPusherApi.js
View file @
47958582
...
@@ -3,8 +3,8 @@ const System = require("../../system");
...
@@ -3,8 +3,8 @@ const System = require("../../system");
const
request
=
require
(
'request'
);
const
request
=
require
(
'request'
);
const
fs
=
require
(
'fs'
);
const
fs
=
require
(
'fs'
);
// this.
fqReqUrl = "https://yunfuapi.gongsibao.com";//线上域名
let
fqReqUrl
=
"https://yunfuapi.gongsibao.com"
;
//线上域名
let
fqReqUrl
=
"https://yunfuapi-dev.gongsibao.com"
;
//dev域名
//
let fqReqUrl = "https://yunfuapi-dev.gongsibao.com";//dev域名
//推送tm等信息到指定接口(每回需要推送200条)
//推送tm等信息到指定接口(每回需要推送200条)
class
TmInfoPusherApi
{
class
TmInfoPusherApi
{
...
@@ -15,7 +15,7 @@ class TmInfoPusherApi {
...
@@ -15,7 +15,7 @@ class TmInfoPusherApi {
async
collectInfo
()
{
async
collectInfo
()
{
try
{
try
{
//根据状态判断获取商标数据、根据商标数据获取申请人信息、联系人信息、官文信息
//根据状态判断获取商标数据、根据商标数据获取申请人信息、联系人信息、官文信息
//获取商标数据
//获取商标数据
...
@@ -24,7 +24,7 @@ class TmInfoPusherApi {
...
@@ -24,7 +24,7 @@ class TmInfoPusherApi {
let
oneItem
=
{};
let
oneItem
=
{};
for
(
let
i
=
0
;
i
<
resultTm
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
resultTm
.
length
;
i
++
)
{
let
d
=
resultTm
[
i
];
let
d
=
resultTm
[
i
];
let
orderNum
=
d
.
orderNum
;
let
orderNum
=
d
.
orderNum
;
let
tmRegistNum
=
d
.
tmRegistNum
;
let
tmRegistNum
=
d
.
tmRegistNum
;
...
@@ -69,8 +69,8 @@ class TmInfoPusherApi {
...
@@ -69,8 +69,8 @@ class TmInfoPusherApi {
console
.
log
(
'更新isPushed字段完成--'
,
i
);
console
.
log
(
'更新isPushed字段完成--'
,
i
);
}
}
return
{
code
:
200
,
message
:
"调用推送接口成功"
};
return
{
code
:
200
,
message
:
"调用推送接口成功"
};
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
'collectInfo error: '
,
e
);
console
.
log
(
'collectInfo error: '
,
e
);
return
e
;
return
e
;
}
}
...
@@ -78,9 +78,9 @@ class TmInfoPusherApi {
...
@@ -78,9 +78,9 @@ class TmInfoPusherApi {
}
}
async
reqPost
(
options
)
{
async
reqPost
(
options
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
request
(
options
,
(
e
,
response
,
body
)
=>
{
request
(
options
,
(
e
,
response
,
body
)
=>
{
if
(
e
)
{
if
(
e
)
{
console
.
log
(
'请求igirl接口错误:'
,
e
);
console
.
log
(
'请求igirl接口错误:'
,
e
);
reject
(
e
);
reject
(
e
);
}
}
...
...
fqboss/app/base/utils/aliyunClient.js
View file @
47958582
...
@@ -2,8 +2,8 @@ const Client = require('aliyun-api-gateway').Client;
...
@@ -2,8 +2,8 @@ const Client = require('aliyun-api-gateway').Client;
// const client = new Client('203727307', 'b6za34qem6k9a3s3jguvh24nc3ridlnh');
// const client = new Client('203727307', 'b6za34qem6k9a3s3jguvh24nc3ridlnh');
const
client
=
new
Client
(
'203732072'
,
'3r0dn583041bco48lq0xgsw09r0hh6ew'
);
const
client
=
new
Client
(
'203732072'
,
'3r0dn583041bco48lq0xgsw09r0hh6ew'
);
//
const clientig = new Client('203756805', 'crkyej0xlmqa6bmvqijun6ltxparllyn');//开发
const
clientig
=
new
Client
(
'203756805'
,
'crkyej0xlmqa6bmvqijun6ltxparllyn'
);
//开发
const
clientig
=
new
Client
(
'203763771'
,
'e5e2ytnn6nrkr9qnqk4w5e6z0xlhkznu'
);
//线上
//
const clientig = new Client('203763771', 'e5e2ytnn6nrkr9qnqk4w5e6z0xlhkznu');//线上
class
aliyunClient
{
class
aliyunClient
{
constructor
()
{
constructor
()
{
this
.
aliReqUrl
=
"https://aliapi.gongsibao.com/tm/springboard"
;
this
.
aliReqUrl
=
"https://aliapi.gongsibao.com/tm/springboard"
;
...
...
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