Skip to content

Commit

Permalink
fix(app): 修复智慧树登录后白屏错误的BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
enncy committed May 16, 2022
1 parent 289cefe commit 9622f7e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ocsjs/app",
"version": "1.2.5",
"version": "1.3.1",
"description": "app package of ocs",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/scripts/src/zhs/login/other.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { waitForLogin } from '../utils';

export async function otherLogin(page: Page) {
await page.goto(
'https://passport.zhihuishu.com/login?service=https://onlineservice.zhihuishu.com/login/gologin#signin'
'https://passport.zhihuishu.com/login'
);
await waitForLogin(page);
return page;
Expand Down
4 changes: 2 additions & 2 deletions packages/scripts/src/zhs/login/phone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ export interface ZHSPhoneLoginOptions {
password: string
}

export async function phoneLogin (page: Page, opts: ZHSPhoneLoginOptions) {
export async function phoneLogin(page: Page, opts: ZHSPhoneLoginOptions) {
const { phone, password } = opts;
await page.goto(
'https://passport.zhihuishu.com/login?service=https://onlineservice.zhihuishu.com/login/gologin#signin'
'https://passport.zhihuishu.com/login'
);
await page.fill('#lUsername', phone);
await page.fill('#lPassword', password);
Expand Down
4 changes: 2 additions & 2 deletions packages/scripts/src/zhs/login/school.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ export interface ZHSSchoolLoginOptions {
password: string
}

export async function schoolLogin (page: Page, opts: ZHSSchoolLoginOptions) {
export async function schoolLogin(page: Page, opts: ZHSSchoolLoginOptions) {
const { schoolname, password, code } = opts;

await page.goto(
'https://passport.zhihuishu.com/login?service=https://onlineservice.zhihuishu.com/login/gologin#studentID'
'https://passport.zhihuishu.com/login#studentID'
);
await page.fill('#quickSearch', schoolname);
// 显示学校列表
Expand Down

0 comments on commit 9622f7e

Please sign in to comment.