孔夫子绑定
Some checks failed
CI / build (18.x) (push) Failing after 38m7s
CI / build (20.x) (push) Failing after 36m13s
CI / deploy-preview (push) Has been skipped
CI / lint (push) Failing after 16m46s
CI / test (push) Successful in 36m52s
CI / security (push) Successful in 31m57s
Some checks failed
CI / build (18.x) (push) Failing after 38m7s
CI / build (20.x) (push) Failing after 36m13s
CI / deploy-preview (push) Has been skipped
CI / lint (push) Failing after 16m46s
CI / test (push) Successful in 36m52s
CI / security (push) Successful in 31m57s
This commit is contained in:
parent
40660f5beb
commit
77dc45b074
@ -58,7 +58,7 @@ export const kongfzLogin = (username, password, ip, port) => {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量提交 Token 到核价器
|
* 批量提交 Token 到核价器
|
||||||
* @param {Array<{username: string, token: string, login_name: string}>} tokens - 账号 Token 列表
|
* @param {Array<{username: string, token: string, login_name: string, password: string}>} tokens - 账号 Token 列表
|
||||||
* @param {string} ip - 核价器 IP
|
* @param {string} ip - 核价器 IP
|
||||||
* @param {string} port - 核价器端口
|
* @param {string} port - 核价器端口
|
||||||
* @returns {Promise}
|
* @returns {Promise}
|
||||||
|
|||||||
@ -522,7 +522,7 @@ export default {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// 依次登录每个已填写的账号
|
// 依次登录每个已填写的账号
|
||||||
const successfulAccounts: { username: string; token: string; login_name: string }[] = []
|
const successfulAccounts: { username: string; token: string; login_name: string; password: string }[] = []
|
||||||
for (let i = 0; i < accounts.value.length; i++) {
|
for (let i = 0; i < accounts.value.length; i++) {
|
||||||
const item = accounts.value[i]
|
const item = accounts.value[i]
|
||||||
if (item.account && item.password) {
|
if (item.account && item.password) {
|
||||||
@ -539,7 +539,7 @@ export default {
|
|||||||
username,
|
username,
|
||||||
token
|
token
|
||||||
})
|
})
|
||||||
successfulAccounts.push({ username, token, login_name: mobile })
|
successfulAccounts.push({ username, token, login_name: mobile, password: item.password })
|
||||||
console.log(`账号 ${item.account} 登录成功,username: ${username}`)
|
console.log(`账号 ${item.account} 登录成功,username: ${username}`)
|
||||||
} else {
|
} else {
|
||||||
console.log(`账号 ${item.account} 登录失败:`, loginRes?.message)
|
console.log(`账号 ${item.account} 登录失败:`, loginRes?.message)
|
||||||
@ -605,7 +605,7 @@ export default {
|
|||||||
appendLoading.value = true
|
appendLoading.value = true
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const successfulAccounts: { username: string; token: string; login_name: string }[] = []
|
const successfulAccounts: { username: string; token: string; login_name: string; password: string }[] = []
|
||||||
for (let i = 0; i < appendAccounts.value.length; i++) {
|
for (let i = 0; i < appendAccounts.value.length; i++) {
|
||||||
const item = appendAccounts.value[i]
|
const item = appendAccounts.value[i]
|
||||||
if (item.account && item.password) {
|
if (item.account && item.password) {
|
||||||
@ -621,7 +621,7 @@ export default {
|
|||||||
username,
|
username,
|
||||||
token
|
token
|
||||||
})
|
})
|
||||||
successfulAccounts.push({ username, token, login_name: mobile })
|
successfulAccounts.push({ username, token, login_name: mobile, password: item.password })
|
||||||
}
|
}
|
||||||
} catch (loginError: any) {
|
} catch (loginError: any) {
|
||||||
console.log(`追加账号 ${item.account} 登录失败:`, loginError.message)
|
console.log(`追加账号 ${item.account} 登录失败:`, loginError.message)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user