An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Support in-app purchase PRO Features and Subscription on iOS https://github.com/siyuan-note/siyuan/issues/14159
Daniel45dc8a18e62a
diff --git a/kernel/mobile/kernel.go b/kernel/mobile/kernel.goindex c02b2315ce..4906a3ab81 100644--- a/kernel/mobile/kernel.go+++ b/kernel/mobile/kernel.go@@ -56,6 +56,7 @@ import (// -6:参数错误// -7:校验 accountToken 失败// -8:校验 transaction 失败+// -9:未知的商品func VerifyAppStoreTransaction(accountToken, transactionID string) (retCode int) {retCode = -2retMsg := "unknown error"@@ -169,6 +170,12 @@ func VerifyAppStoreTransaction(accountToken, transactionID string) (retCode int)logging.LogErrorf(retMsg)return}+ if -6 == result.Code {+ retCode = -9+ retMsg = fmt.Sprintf("verify app store transaction failed [code=%d, msg=%s]", result.Code, result.Msg)+ logging.LogErrorf(retMsg)+ return+ }if -64 == result.Code {retCode = -2retMsg = fmt.Sprintf("verify app store transaction failed [code=%d, msg=%s]", result.Code, result.Msg)