Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Support in-app purchase PRO Features and Subscription on iOS https://github.com/siyuan-note/siyuan/issues/14159

Daniel9433d70af73e
diff --git a/kernel/mobile/kernel.go b/kernel/mobile/kernel.go
index 62601c26e1..966f4240e2 100644
--- a/kernel/mobile/kernel.go
+++ b/kernel/mobile/kernel.go
@@ -56,9 +56,9 @@ import (
// -6:参数错误
// -7:校验 accountToken 失败
// -8:校验 transaction 失败
-func VerifyAppStoreTransaction(accountToken, transactionID string) (retCode int, retMsg string) {
+func VerifyAppStoreTransaction(accountToken, transactionID string) (retCode int) {
retCode = -2
- retMsg = "unknown error"
+ retMsg := "unknown error"
accountToken = strings.TrimSpace(accountToken)
transactionID = strings.TrimSpace(transactionID)