Skip to content
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
2a7c306
feat: added weekly updater
konpoku Mar 16, 2025
a1254cf
Merge branch 'eesast:master' into weekly
konpoku Mar 24, 2025
7a00b41
Implemented renew weekly failure return
konpoku Mar 24, 2025
ab84bf8
modified for lint check
konpoku Mar 24, 2025
1fae258
modified for lint check
konpoku Mar 24, 2025
23a88d1
Removed admin
konpoku Mar 25, 2025
3a9aad2
Merge branch 'eesast:master' into weekly
konpoku Apr 20, 2025
d8dfbca
temporary commit
konpoku Apr 20, 2025
39af8fc
Fixed: weekly cover error
konpoku Apr 20, 2025
71f0ee7
modified to pass the lint test
konpoku Apr 20, 2025
9ca6e7c
Merge branch 'master' into weekly
zzdhybthu Apr 20, 2025
e21046b
Merge branch 'eesast:master' into weekly
konpoku Apr 26, 2025
8f96100
fix: fixed weekly update and permission check
konpoku Apr 26, 2025
1a97de3
Merge branch 'eesast:master' into weekly
konpoku May 11, 2025
a5d4b22
feat: added log for weekly update
konpoku May 11, 2025
8e01261
updated contest team member limit
konpoku Jun 17, 2025
121cc4f
Merge branch 'master' into weekly
konpoku Jun 17, 2025
8795da0
debugged for team member limit check
konpoku Jun 17, 2025
297bc01
Merge branch 'eesast:master' into weekly
konpoku Nov 15, 2025
4006839
feat(api): add user profile update logic
konpoku Nov 15, 2025
c4a4fc4
Merge branch 'eesast:master' into weekly
konpoku Dec 11, 2025
b921ceb
added LLM backend
konpoku Dec 15, 2025
6176b38
debug: LLM route added
konpoku Dec 15, 2025
335a942
debug: fixed public key handling
konpoku Dec 15, 2025
b6cc447
Merge branch 'master' into LLM
zzdhybthu Dec 16, 2025
bb713f0
fixed several bugs in LLM api
konpoku Dec 16, 2025
4480021
Merge branch 'master' into LLM
konpoku Dec 16, 2025
9dca257
Merge branch 'eesast:master' into LLM
konpoku Dec 16, 2025
65f79b2
fixed access key usage logging issues
konpoku Dec 16, 2025
f07141a
modified contest permission check and README.md
konpoku Dec 27, 2025
637b477
Merge branch 'master' into LLM
konpoku Dec 27, 2025
b96b886
feat: add endpoints for managing team software code and improve valid…
konpoku Feb 25, 2026
d75a4ca
added semester management
konpoku Mar 1, 2026
de25512
feat: update member chat
konpoku Mar 2, 2026
8107bf4
feat: added new mentor talk
konpoku Mar 3, 2026
4a93f66
feat: make chat system compatible
konpoku Mar 3, 2026
bd8092a
fixed: fixed member check error
konpoku Mar 3, 2026
15ea069
Merge branch 'master' into LLM
konpoku Mar 3, 2026
9bbf9de
fix: old member check bug
konpoku Mar 3, 2026
05a4a77
Merge branch 'master' into LLM
konpoku Mar 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion src/routes/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2428,6 +2428,7 @@ router.get(
let is_member: boolean = false;
const approved_mentor_uuid =
appl_query.mentor_application?.[0]?.mentor_uuid;
// 先判断导师是否参与积极分子谈话
if (approved_mentor_uuid) {
const mentor_check: any = await client.request(
gql`
Expand All @@ -2441,6 +2442,7 @@ router.get(
);
is_member = mentor_check.mentor_info_by_pk?.is_member ?? false;
}
//再判断学生是否是积极分子
if (is_member) {
const freshman_check: any = await client.request(
gql`
Expand All @@ -2459,6 +2461,28 @@ router.get(
is_member = false;
}
}
//最后在旧系统(mentor_application)中查询是否是积极分子
if (!is_member) {
const old_member_check: any = await client.request(
gql`
query GetOldMemberStatus($student_uuid: uuid!) {
mentor_application(
where: {
student_uuid: { _eq: $student_uuid }
is_member: { _eq: true }
}
limit: 1
) {
is_member
}
}
`,
{ student_uuid: user_uuid },
);
if (old_member_check.mentor_application.length > 0) {
is_member = old_member_check.mentor_application[0].is_member ?? false;
}
}

// 获取当前学期
const current_semester = await get_current_semester();
Expand Down Expand Up @@ -2489,7 +2513,7 @@ router.get(
mentor_application(
where: {
student_uuid: { _eq: $student_uuid }
member_chat_status: { _eq: true }
is_member: { _eq: true }
}
order_by: { member_chat_time: desc }
) {
Expand Down
Loading