Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

报错但是签到成功 #52

Open
olahzido opened this issue May 30, 2022 · 2 comments
Open

报错但是签到成功 #52

olahzido opened this issue May 30, 2022 · 2 comments

Comments

@olahzido
Copy link

OS: Almalinux 8.5
Version: Node.js v16.13.1 cea@2.5.8 yarn@1.22.18
签到报错但是今日校园看是签到成功的,令人迷惑
以下是log

[root@server config]# cea sign
✔  成功        登录成功 @user
✔  成功        已成功获取并缓存 COOKIE @user
file:///usr/local/share/.config/yarn/global/node_modules/@ceajs/check-in-helper/lib/src/index.js:189
                const signedSelectedItemValue = curSignedExtraField.extraFieldItems.find((e) => e.isSelected === true).value;
                                                                                                                      ^

TypeError: Cannot read properties of undefined (reading 'value')
    at file:///usr/local/share/.config/yarn/global/node_modules/@ceajs/check-in-helper/lib/src/index.js:189:119
    at Array.map (<anonymous>)
    at Function.fillExtra (file:///usr/local/share/.config/yarn/global/node_modules/@ceajs/check-in-helper/lib/src/index.js:186:26)
    at CheckIn.signWithForm (file:///usr/local/share/.config/yarn/global/node_modules/@ceajs/check-in-helper/lib/src/index.js:69:23)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async file:///usr/local/share/.config/yarn/global/node_modules/@ceajs/check-in-helper/lib/src/index.js:234:36
    at async Promise.all (index 10)
    at async Function.signIn (file:///usr/local/share/.config/yarn/global/node_modules/@ceajs/check-in-helper/lib/src/index.js:227:9)
    at async checkIn (file:///usr/local/share/.config/yarn/global/node_modules/@ceajs/sign-plugin/lib/src/index.js:7:22)
    at async file:///usr/local/share/.config/yarn/global/node_modules/cea/lib/src/cli.js:42:13
@olahzido
Copy link
Author

找到问题了,但是也不算是bug,就是所有用户里只要有一个用户的表单变更了,就会集体报错,但是其他账号还是能签的,建议加个错误账号的回调?

@beetcb
Copy link
Contributor

beetcb commented May 30, 2022

找到问题了,但是也不算是bug,就是所有用户里只要有一个用户的表单变更了,就会集体报错,但是其他账号还是能签的,建议加个错误账号的回调?

好的,之前没遇到过这个环节出错,新版本会处理一下 @MOSIMITA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants