兼容虎牙四段账号格式
支持虎牙号、密码、手机号、验证码链接导入,并补充美国等国际手机号格式处理。
This commit is contained in:
@@ -716,7 +716,7 @@ export default function HuyaAccountsPage() {
|
||||
rows={10}
|
||||
value={passwordImportText}
|
||||
onChange={(e) => setPasswordImportText(e.target.value)}
|
||||
placeholder="每行一条:账号----密码;如需预置 Cookie:账号----密码----Cookie"
|
||||
placeholder="每行一条:账号----密码;也支持:虎牙号----密码----手机号----验证码链接"
|
||||
disabled={passwordImporting}
|
||||
/>
|
||||
<Select
|
||||
@@ -730,7 +730,7 @@ export default function HuyaAccountsPage() {
|
||||
disabled={passwordImporting}
|
||||
/>
|
||||
<Paragraph type="secondary" style={{ marginBottom: 0 }}>
|
||||
导入后账号会出现在列表里,勾选需要登录的账号再点“登录选中”。
|
||||
四段格式会保存手机号;验证码链接用于接码池兼容,不会写入账号表。
|
||||
</Paragraph>
|
||||
</Space>
|
||||
</Modal>
|
||||
|
||||
@@ -97,12 +97,7 @@ function readStoredBatchId() {
|
||||
}
|
||||
|
||||
export default function HuyaRegisterPage() {
|
||||
const initialFormRef = useRef<StoredRegisterForm | null>(null);
|
||||
if (initialFormRef.current === null) {
|
||||
initialFormRef.current = readStoredForm();
|
||||
}
|
||||
const initialForm = initialFormRef.current;
|
||||
|
||||
const [initialForm] = useState(readStoredForm);
|
||||
const [text, setText] = useState(initialForm.text);
|
||||
const [tag, setTag] = useState(initialForm.tag);
|
||||
const [concurrency, setConcurrency] = useState(initialForm.concurrency);
|
||||
@@ -311,7 +306,7 @@ export default function HuyaRegisterPage() {
|
||||
rows={9}
|
||||
value={text}
|
||||
onChange={(event) => setText(event.target.value)}
|
||||
placeholder="手机号----短信查询URL"
|
||||
placeholder="手机号----短信查询URL;也支持:虎牙号----密码----手机号----验证码链接"
|
||||
disabled={isRunning}
|
||||
/>
|
||||
<Row gutter={[12, 12]}>
|
||||
|
||||
Reference in New Issue
Block a user