diff --git a/swa/cpe/active.epc.min.js b/swa/cpe/active.epc.min.js index 0982700..819cbb0 100644 --- a/swa/cpe/active.epc.min.js +++ b/swa/cpe/active.epc.min.js @@ -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 diff --git a/swa/cpe/active_cpe_setup.exe b/swa/cpe/active_cpe_setup.exe index bcc5a1d..b0dcbc0 100644 Binary files a/swa/cpe/active_cpe_setup.exe and b/swa/cpe/active_cpe_setup.exe differ