|
|
@@ -51,7 +51,6 @@ class AddAccount extends API {
|
|
|
}
|
|
|
|
|
|
if (!this.emailRegex.test(email)) {
|
|
|
- Message.error('请检查邮箱格式是否正确')
|
|
|
return res.json({
|
|
|
...BaseStdResponse.ERR,
|
|
|
msg: '请检查邮箱格式是否正确'
|
|
|
@@ -81,13 +80,13 @@ class AddAccount extends API {
|
|
|
if (countRows.length !== 0 && countRows[0].create_user != null) {
|
|
|
if (countRows[0].create_user !== uuid)
|
|
|
return res.json({ ...BaseStdResponse.ERR, msg: '该乐跑账号已被其他用户绑定,请联系客服解绑' })
|
|
|
- return res.json({ ...BaseStdResponse.ERR, msg: '该乐跑账号已添加' })
|
|
|
+ return res.json({ ...BaseStdResponse.ERR, msg: '该乐跑账号您已绑定' })
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (countRows.length !== 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()
|