This commit is contained in:
cheney 2023-01-12 15:36:30 +08:00
parent e5fee3ecfa
commit 300afb65e0
2 changed files with 11 additions and 11 deletions

View File

@ -137,19 +137,19 @@ class ActiveEpc {
})
}
var e = _this.__check(uid, /\d{1,2}/g, "用户编号填写错误!")
var e = _this.__check(uid, /^\d{1,2}$/g, "用户编号填写错误!")
if ( e ) {
reject && reject(e);
return
}
e = _this.__check(utype, /\d{1}/g, "用户类型填写错误!");
e = _this.__check(utype, /^\d{1}$/g, "用户类型填写错误!");
if ( e ) {
reject && reject(e);
return
}
e = _this.__check(pwd, /\d{6}/g, "密码填写错误!");
e = _this.__check(pwd, /^\d{6}$/g, "密码填写错误!");
if ( e ) {
reject && reject(e);
return
@ -213,7 +213,7 @@ class ActiveEpc {
var _this = this;
return new Promise(function (resolve, reject) {
var e = _this.__check(minutes, /\d{1,2}/g, "时间填写错误!");
var e = _this.__check(minutes, /^\d{1,2}$/g, "时间填写错误!");
if ( e ) {
reject && reject(e);
return
@ -257,17 +257,17 @@ class ActiveEpc {
})
}
var e = _this.__check(uid, /\d{1,2}/g, "用户编号填写错误!");
var e = _this.__check(uid, /^\d{1,2}$/g, "用户编号填写错误!");
if ( e ) {
reject && reject(e);
return
}
e = _this.__check(utype, /\d{1}/g, "用户类型填写错误!");
e = _this.__check(utype, /^\d{1}$/g, "用户类型填写错误!");
if ( e ) {
reject && reject(e);
return
}
e = _this.__check(pwd, /\d{6}/g, "密码填写错误!");
e = _this.__check(pwd, /^\d{6}$/g, "密码填写错误!");
if ( e ) {
reject && reject(e);
return
@ -306,17 +306,17 @@ class ActiveEpc {
var e = _this.__check(accu, /\d{1,32}/g, "收方账户填写错误!");
var e = _this.__check(accu, /^\d{1,32}$/g, "收方账户填写错误!");
if ( e ) {
reject && reject(e);
return
}
e = _this.__check(ticketType, /\d{1}/g, "票据类型填写错误!");
e = _this.__check(ticketType, /^\d{1}$/g, "票据类型填写错误!");
if ( e ) {
reject && reject(e);
return
}
e = _this.__check(ticketNo, /\d{1,8}/g, "票据编号填写错误!");
e = _this.__check(ticketNo, /^\d{1,8}$/g, "票据编号填写错误!");
if ( e ) {
reject && reject(e);
return
@ -326,7 +326,7 @@ class ActiveEpc {
reject && reject(e);
return
}
e = _this.__check(banlance, /\d{1,16}/g, "金额填写错误!");
e = _this.__check(banlance, /^\d{1,16}$/g, "金额填写错误!");
if ( e ) {
reject && reject(e);
return

Binary file not shown.