kuizuo / chaoxing-sign

超星学习通网页版在线签到,采用 nuxt 全栈框架实现协议复现。支持所有签到类型以及自动签到。
https://cx.kuizuo.cn
MIT License
171 stars 17 forks source link

之前添加的学习通账号消失,且无法再次添加 #21

Closed chun1125 closed 1 year ago

chun1125 commented 1 year ago

同步账号时提示: Invalid prisma.cxAccount.update() invocation: { where: { uid: undefined, ? AND?: CxAccountWhereInput | CxAccountWhereInput[], ? OR?: CxAccountWhereInput[], ? NOT?: CxAccountWhereInput | CxAccountWhereInput[], ? username?: StringFilter | String, ? password?: StringFilter | String, ? cookies?: JsonNullableListFilter, ? info?: JsonFilter, ? lastLoginTime?: DateTimeFilter | DateTime, ? setting?: JsonFilter, ? userId?: StringFilter | String, ? courses?: CourseListRelationFilter, ? signlogs?: SignLogListRelationFilter, ? User?: UserRelationFilter | UserWhereInput }, data: { lastLoginTime: new Date("2023-09-15T13:20:15.874Z") } } Argument where of type CxAccountWhereUniqueInput needs at least one of uid or uid arguments. Available options are listed in green.

chun1125 commented 1 year ago

image 屏幕截图 2023-09-15 212426

chun1125 commented 1 year ago

之前有六个账号,再次添加会提示账号已满

kuizuo commented 1 year ago

之前有六个账号,再次添加会提示账号已满

6个号是限制,防止一个账号同时操作过多的账号,如果想突破该限制请注释这段代码

https://github.com/kuizuo/chaoxing-sign/blob/72c3d9db51a986f87895b8b69405209bf12784b4/server/api/cx/login.post.ts#L13C2-L21

kuizuo commented 1 year ago

同步账号时提示: Invalid prisma.cxAccount.update() invocation: { where: { uid: undefined, ? AND?: CxAccountWhereInput | CxAccountWhereInput[], ? OR?: CxAccountWhereInput[], ? NOT?: CxAccountWhereInput | CxAccountWhereInput[], ? username?: StringFilter | String, ? password?: StringFilter | String, ? cookies?: JsonNullableListFilter, ? info?: JsonFilter, ? lastLoginTime?: DateTimeFilter | DateTime, ? setting?: JsonFilter, ? userId?: StringFilter | String, ? courses?: CourseListRelationFilter, ? signlogs?: SignLogListRelationFilter, ? User?: UserRelationFilter | UserWhereInput }, data: { lastLoginTime: new Date("2023-09-15T13:20:15.874Z") } } Argument where of type CxAccountWhereUniqueInput needs at least one of uid or uid arguments. Available options are listed in green.

账号是否有改密?这边初步猜测原因应该是同步的时候执行了重新登录的操作,而账号改密或其他原因导致无法登录获取不到 uid 导致的。

能否详细的描述出现这个问题的所做的步骤?

chun1125 commented 1 year ago

同步账号时提示: Invalid prisma.cxAccount.update() invocation: { where: { uid: undefined, ? AND?: CxAccountWhereInput | CxAccountWhereInput[], ? OR?: CxAccountWhereInput[], ? NOT?: CxAccountWhereInput | CxAccountWhereInput[], ? username?: StringFilter | String, ? password?: StringFilter | String, ? cookies?: JsonNullableListFilter, ? info?: JsonFilter, ? lastLoginTime?: DateTimeFilter | DateTime, ? setting?: JsonFilter, ? userId?: StringFilter | String, ? courses?: CourseListRelationFilter, ? signlogs?: SignLogListRelationFilter, ? User?: UserRelationFilter | UserWhereInput }, data: { lastLoginTime: new Date("2023-09-15T13:20:15.874Z") } } Argument where of type CxAccountWhereUniqueInput needs at least one of uid or uid arguments. Available options are listed in green.

账号是否有改密?这边初步猜测原因应该是同步的时候执行了重新登录的操作,而账号改密或其他原因导致无法登录获取不到 uid 导致的。

能否详细的描述出现这个问题的所做的步骤?

现在正常了

kuizuo commented 1 year ago

现在正常了

因为我刚刚修改了一下代码 https://github.com/kuizuo/chaoxing-sign/commit/40a6a193af3fc7ab2c6dc8782941825b79270c93 并推送上去了

感谢反馈😉.