Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-webapp-cli
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
heasy
hls-webapp-cli
Commits
ec406bc7
Commit
ec406bc7
authored
Jul 24, 2019
by
JingChao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update hlsUtil.js
parent
58c0b9c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
hlsUtil.js
template/src/scripts/hlsUtil.js
+1
-1
No files found.
template/src/scripts/hlsUtil.js
View file @
ec406bc7
...
...
@@ -181,7 +181,7 @@ export default {
},
luhnCheck
:
function
(
bankno
)
{
let
lastNum
=
bankno
.
substr
(
bankno
.
length
-
1
,
1
)
// 取出最后一位(与luhn进行比较)
let
lastNum
=
Number
(
bankno
.
substr
(
bankno
.
length
-
1
,
1
)
)
// 取出最后一位(与luhn进行比较)
let
first15Num
=
bankno
.
substr
(
0
,
bankno
.
length
-
1
)
// 前15或18位
let
newArr
=
[]
for
(
let
i
=
first15Num
.
length
-
1
;
i
>
-
1
;
i
--
)
{
// 前15或18位倒序存进数组
...
...
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