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
3f6f91fb
Commit
3f6f91fb
authored
Sep 29, 2019
by
Hsinli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dele the code limie
parent
3b874974
Pipeline
#14412
passed with stage
in 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
apply.js
app/service/credit/apply.js
+3
-2
No files found.
app/service/credit/apply.js
View file @
3f6f91fb
...
...
@@ -159,7 +159,7 @@ class ApplyService extends Service {
}
times
++
;
if
(
times
>=
11
)
{
ctx
.
failed
(
'今日获取验证码次数过多,请明日再试'
);
//
ctx.failed('今日获取验证码次数过多,请明日再试');
}
let
pexpire
=
new
Date
(
moment
().
add
(
1
,
'days'
).
format
(
'YYYY-MM-DD 00:00:00'
)).
getTime
();
let
validTime
=
Number
(
pexpire
)
-
Number
(
moment
().
format
(
'x'
));
...
...
@@ -171,6 +171,7 @@ class ApplyService extends Service {
code
=
Math
.
round
(
Math
.
random
()
*
9999
).
toString
();
let
len
=
code
.
length
;
if
((
4
-
len
)
>
0
)
{
ß
for
(
var
i
=
0
;
i
<
4
-
len
;
i
++
)
{
code
=
'0'
+
code
;
}
...
...
@@ -360,7 +361,7 @@ class ApplyService extends Service {
//第一次调用运营商获取验证码接口
const
input_params
=
{
phone
,
name
,
phone
,
name
,
ID
:
id_card
,
password
:
apply
.
service_code
,
};
...
...
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