fix: make move content
This commit is contained in:
@@ -957,19 +957,16 @@ onShareAppMessage(async (options) => {
|
||||
getShareReward({ scene: "card_generate" });
|
||||
if (options.from === "button") {
|
||||
if (!isLoggedIn.value) {
|
||||
const shareToken = await getShareToken("card_generate_not_login", "");
|
||||
return {
|
||||
title: "新春祝福",
|
||||
path: "/pages/index/index",
|
||||
path: "/pages/index/index?shareToken=" + shareToken,
|
||||
imageUrl:
|
||||
"https://file.lihailezzc.com/resource/cfed2edbfa19250b836a87a4bbf0d5ad.png",
|
||||
};
|
||||
}
|
||||
// 1. 确保有 cardId (如果内容有变动,最好是新建)
|
||||
const id = createCard();
|
||||
if (!id) {
|
||||
return {
|
||||
title: "新春祝福",
|
||||
path: "/pages/index/index",
|
||||
};
|
||||
}
|
||||
|
||||
const shareToken = await getShareToken("card_generate", id);
|
||||
shareOrSave(id);
|
||||
|
||||
Reference in New Issue
Block a user