浏览代码

腾讯验证码

wangxin 5 年之前
父节点
当前提交
9107546501
共有 2 个文件被更改,包括 6 次插入7 次删除
  1. 5 6
      src/utils/util.js
  2. 1 1
      src/view/captcha/captcha.vue

+ 5 - 6
src/utils/util.js

@@ -309,10 +309,9 @@ export function cssExpand(css, id) {
     document.head.appendChild(style)
 }
 
-export function getAppId(env) {
-    const json = {
-        'pro': '2019232819',
-        'dev': '2078399419',
-    }
-    return json[env]
+export function getAppId() {
+    const captcha = '2019232819';
+    // cosnt captcha = '2078399419';
+
+    return captcha
 }

+ 1 - 1
src/view/captcha/captcha.vue

@@ -83,7 +83,7 @@
             this.phone = location.href.split('?')[1].split('&')[0].split('=')[1];
             this.number = this.phone.substring(0, 3) + ' ' + this.phone.substring(3, 7) + ' ' + this.phone.substring(7, 11);
             this.TencentCaptcha = new window.TencentCaptcha(
-                getAppId('pro'),
+                getAppId(),
                 function (res) {/* callback */
                     if (res.ret === 0) {
                         postAction(getCaptchaCode, {