Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yysh5
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
data_server
yysh5
Commits
be647f85
Commit
be647f85
authored
May 30, 2019
by
姜登
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
yys
parent
e5c9ba36
Pipeline
#8355
passed with stage
in 9 minutes 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
scripts.js
app/service/scripts.js
+3
-3
No files found.
app/service/scripts.js
View file @
be647f85
...
...
@@ -36,7 +36,7 @@ class ScriptsService extends Service {
dataType
:
'json'
,
contentType
:
'json'
,
});
ctx
.
logger
.
info
(
`【Scripts】fetchScripts,
${
baseURL
+
fetchScriptsUrl
}
`
,
'result:'
,
result
.
data
);
ctx
.
logger
.
info
(
`【Scripts】fetchScripts,
${
baseURL
+
fetchScriptsUrl
}
`
,
'result:'
,
JSON
.
stringify
(
result
.
data
)
);
if
(
result
.
data
&&
result
.
data
.
length
>
0
)
{
await
this
.
app
.
redis
.
set
(
redisScriptsKey
,
JSON
.
stringify
(
result
.
data
),
'EX'
,
300
);
}
...
...
@@ -86,7 +86,7 @@ class ScriptsService extends Service {
dataType
:
'json'
,
contentType
:
'json'
,
});
ctx
.
logger
.
info
(
`【Scripts】fetchParams,
${
baseURL
+
fetchParamsInfoUrl
}
`
,
'result:'
,
result
.
data
);
ctx
.
logger
.
info
(
`【Scripts】fetchParams,
${
baseURL
+
fetchParamsInfoUrl
}
`
,
'result:'
,
JSON
.
stringify
(
result
.
data
)
);
if
(
result
.
data
&&
result
.
data
.
length
>
0
)
{
await
this
.
app
.
redis
.
set
(
redisParamsKey
,
JSON
.
stringify
(
result
.
data
),
'EX'
,
300
);
}
...
...
@@ -146,7 +146,7 @@ class ScriptsService extends Service {
contentType
:
'json'
,
});
ctx
.
logger
.
info
(
`fetchScriptByCityName,
${
baseURL
+
fetchScriptByCityNameUrl
+
'?name='
+
name
}
`
,
'result:'
,
JSON
.
stringify
(
result
.
data
));
if
(
result
.
sta
ut
s
===
200
)
{
if
(
result
.
sta
tu
s
===
200
)
{
return
result
.
data
.
scriptId
;
}
ctx
.
throw
(
400
,
'手机号码区域验证失败'
);
...
...
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