Browse Source

修复了部分bug

Pchen. 3 months ago
parent
commit
24c1a35fcf
1 changed files with 2 additions and 3 deletions
  1. 2 3
      apis/Lepao/Account/AddAccount.js

+ 2 - 3
apis/Lepao/Account/AddAccount.js

@@ -51,7 +51,6 @@ class AddAccount extends API {
         }
         }
 
 
         if (!this.emailRegex.test(email)) {
         if (!this.emailRegex.test(email)) {
-            Message.error('请检查邮箱格式是否正确')
             return res.json({
             return res.json({
                 ...BaseStdResponse.ERR,
                 ...BaseStdResponse.ERR,
                 msg: '请检查邮箱格式是否正确'
                 msg: '请检查邮箱格式是否正确'
@@ -81,13 +80,13 @@ class AddAccount extends API {
             if (countRows.length !== 0 && countRows[0].create_user != null) {
             if (countRows.length !== 0 && countRows[0].create_user != null) {
                 if (countRows[0].create_user !== uuid)
                 if (countRows[0].create_user !== uuid)
                     return res.json({ ...BaseStdResponse.ERR, msg: '该乐跑账号已被其他用户绑定,请联系客服解绑' })
                     return res.json({ ...BaseStdResponse.ERR, msg: '该乐跑账号已被其他用户绑定,请联系客服解绑' })
-                return res.json({ ...BaseStdResponse.ERR, msg: '该乐跑账号已添加' })
+                return res.json({ ...BaseStdResponse.ERR, msg: '该乐跑账号您已绑定' })
             }
             }
         }
         }
 
 
         if (countRows.length !== 0) {
         if (countRows.length !== 0) {
             if (countRows[0].total_num >= target_count && target_count !== 0)
             if (countRows[0].total_num >= target_count && target_count !== 0)
-                return res.json({ ...BaseStdResponse.ERR, msg: '该账号累计跑步次数已达到目标次数,请尝试修改目标次数' })
+                return res.json({ ...BaseStdResponse.ERR, msg: '该账号累计跑步次数已达到预设目标次数,请尝试增大目标次数后再试' })
         }
         }
 
 
         const time = new Date().getTime()
         const time = new Date().getTime()