Commit c0199623 authored by JingChao's avatar JingChao

Update hlsUtil.js

parent e80a6b5d
...@@ -181,7 +181,7 @@ export default { ...@@ -181,7 +181,7 @@ export default {
}, },
luhnCheck: function (bankno) { 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 first15Num = bankno.substr(0, bankno.length - 1)// 前15或18位
let newArr = [] let newArr = []
for (let i = first15Num.length - 1; i > -1; i--) { // 前15或18位倒序存进数组 for (let i = first15Num.length - 1; i > -1; i--) { // 前15或18位倒序存进数组
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment