panhui 3 years ago
parent
commit
8b080edb09
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main.ts

+ 1 - 1
src/main.ts

@@ -57,7 +57,7 @@ if (query.code) {
         })
         .catch(e => {
             console.log(e)
-            if (e.message.indexOf('code been used') !== -1 || e.message.indexOf('invalid code') !== -1) {
+            if (e.message.indexOf('code been used') !== -1) {
                 if (isWechat) {
                     fetchRedirectUrl().then(res => {
                         const str = String(res).replace(