MaiXinRong 5 years ago
parent
commit
b9de59f1c7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/public/js/stage_pay.js

+ 1 - 1
app/public/js/stage_pay.js

@@ -400,7 +400,7 @@ $(document).ready(() => {
 
 
             const num = text ? _.toNumber(text) : null;
             const num = text ? _.toNumber(text) : null;
             let expr = text ? (num ? null : text) : null;
             let expr = text ? (num ? null : text) : null;
-            expr = expr.replace('=', '').toLowerCase();
+            expr = expr ? expr.replace('=', '').toLowerCase(): null;
             const [valid, msg] = this._checkExprValid(expr, ['bqwc', 'ybbqwc']);
             const [valid, msg] = this._checkExprValid(expr, ['bqwc', 'ybbqwc']);
             if (!valid) return [valid, msg];
             if (!valid) return [valid, msg];