Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/14159

Vanessa904715334904
diff --git a/app/src/util/iOSPurchase.ts b/app/src/util/iOSPurchase.ts
index 8edfd7d44a..200cbdc51b 100644
--- a/app/src/util/iOSPurchase.ts
+++ b/app/src/util/iOSPurchase.ts
@@ -1,8 +1,13 @@
import {showMessage} from "../dialog/message";
import {fetchPost} from "./fetch";
import {genUUID} from "./genID";
+import {progressLoading} from "../dialog/processSystem";
export const processIOSPurchaseResponse = (code: number) => {
+ progressLoading({
+ code: 2,
+ msg: ""
+ });
if (code === 0) {
/// #if MOBILE
document.querySelector("#modelMain").dispatchEvent(new CustomEvent("click", {
@@ -72,6 +77,10 @@ export const iOSPurchase = (productType: string) => {
productID = productType === "function" ? "00" : "02";
}
window.webkit.messageHandlers.purchase.postMessage(`${productID} ${genUUID().substring(0, 19)}${window.siyuan.config.cloudRegion}00${window.siyuan.user.userId.substring(0, 1)}-${window.siyuan.user.userId.substring(1)}`);
+ progressLoading({
+ code: 1,
+ msg: ""
+ });
});
} else {
showMessage(window.siyuan.languages.needLogin);