mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-07-07 11:01:33 +08:00
🐛 fix(jvm): 强化变更确认令牌校验
将 JVM 变更确认从可重算校验值升级为服务端发放的一次性令牌,避免未预览、重放或上下文变更后继续执行高风险变更。
This commit is contained in:
@@ -948,6 +948,7 @@ export namespace jvm {
|
||||
reason: string;
|
||||
source?: string;
|
||||
expectedVersion?: string;
|
||||
confirmationToken?: string;
|
||||
payload?: Record<string, any>;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
@@ -962,6 +963,7 @@ export namespace jvm {
|
||||
this.reason = source["reason"];
|
||||
this.source = source["source"];
|
||||
this.expectedVersion = source["expectedVersion"];
|
||||
this.confirmationToken = source["confirmationToken"];
|
||||
this.payload = source["payload"];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user