feat: add expiry reminder subscription API (POST /subscribe/expiry-save) and send reminders endpoint

This commit is contained in:
Developer
2026-05-13 20:16:14 +08:00
parent 9c52975b5a
commit 67e7c251a6
3 changed files with 142 additions and 0 deletions
+15
View File
@@ -81,6 +81,21 @@ class WechatSubscribeService {
data
});
}
static async sendExpiryReminderMessage({ openid, templateId, thing1, thing2, phrase3 }) {
const data = {
thing1: { value: thing1 },
thing2: { value: thing2 },
phrase3: { value: phrase3 }
};
return this.sendSubscribeMessage({
touser: openid,
templateId,
page: 'pages/profile/profile',
data
});
}
}
module.exports = WechatSubscribeService;