Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
5
51business
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
方斌
51business
Commits
f9f2e306
Commit
f9f2e306
authored
Sep 11, 2019
by
Hsinli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addd
parent
84dd47e4
Pipeline
#13666
passed with stage
in 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
common.js
app/service/credit/common.js
+5
-3
No files found.
app/service/credit/common.js
View file @
f9f2e306
...
@@ -296,6 +296,7 @@ class CommonService extends Service {
...
@@ -296,6 +296,7 @@ class CommonService extends Service {
sign
:
md5
(
this
.
config
.
SHUHEMOFANG_APP_KEY
+
this
.
config
.
SHUHEMOFANG_APP_SECRET
+
timestamp
),
sign
:
md5
(
this
.
config
.
SHUHEMOFANG_APP_KEY
+
this
.
config
.
SHUHEMOFANG_APP_SECRET
+
timestamp
),
}
}
let
resp
=
await
this
.
helper
.
send_request
(
this
.
config
.
SHUHEMOFANG_URL
,
params
,
{
method
:
'POST'
});
let
resp
=
await
this
.
helper
.
send_request
(
this
.
config
.
SHUHEMOFANG_URL
,
params
,
{
method
:
'POST'
});
ctx
.
logger
.
info
({
resp
:
JSON
.
stringify
(
resp
)
});
return
resp
.
data
;
return
resp
.
data
;
}
}
...
@@ -305,6 +306,7 @@ class CommonService extends Service {
...
@@ -305,6 +306,7 @@ class CommonService extends Service {
* @param {*} status 数盒魔方返回状态码
* @param {*} status 数盒魔方返回状态码
*/
*/
async
noticeShuhemofang
(
status
)
{
async
noticeShuhemofang
(
status
)
{
const
{
ctx
}
=
this
;
//异常情况
//异常情况
if
(
status
===
'2'
)
{
if
(
status
===
'2'
)
{
ctx
.
failed
(
'手机号已实名,身份证姓名均不匹配,请重新输入'
);
ctx
.
failed
(
'手机号已实名,身份证姓名均不匹配,请重新输入'
);
...
@@ -355,9 +357,9 @@ class CommonService extends Service {
...
@@ -355,9 +357,9 @@ class CommonService extends Service {
if
(
shmfList
.
length
>=
5
)
{
if
(
shmfList
.
length
>=
5
)
{
ctx
.
failed
(
'您输入的想要检测人数已超过最大限制,仅可检测输入过的检测信息'
);
ctx
.
failed
(
'您输入的想要检测人数已超过最大限制,仅可检测输入过的检测信息'
);
}
else
{
}
else
{
let
re
sp
=
this
.
queryShuhemofang
(
type
,
inputParams
);
let
re
t
=
this
.
queryShuhemofang
(
type
,
inputParams
);
ctx
.
logger
.
info
({
re
sp
:
JSON
.
stringify
(
resp
)
});
ctx
.
logger
.
info
({
re
t
:
JSON
.
stringify
(
ret
)
});
await
this
.
noticeShuhemofang
(
re
sp
.
status
);
await
this
.
noticeShuhemofang
(
re
t
.
status
);
}
}
}
}
}
}
...
...
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