fix: make identity gate condition explicit for daily_checkin_required === true [ZY-GLSHELL-001]
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com> Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/e198eccd-d605-4e5c-bddb-b0874c4207ec
This commit is contained in:
parent
d7ff35e346
commit
dae20c11fa
|
|
@ -63,8 +63,10 @@ function identityGate(agentId) {
|
|||
|
||||
if (agent.daily_checkin_required === false) {
|
||||
console.log(`🌊 事件触发型Agent ${agentId} (${agent.name}) 已确认身份,允许通行`);
|
||||
} else {
|
||||
} else if (agent.daily_checkin_required === true) {
|
||||
console.log(`🌊 定时型Agent ${agentId} (${agent.name}) 已确认身份,允许通行并登记签到`);
|
||||
} else {
|
||||
console.log(`🌊 Agent ${agentId} (${agent.name}) 已确认身份,允许通行(签到状态未标记)`);
|
||||
}
|
||||
|
||||
return { allowed: true, agent: agent };
|
||||
|
|
|
|||
Loading…
Reference in New Issue