09 Accounts, Points, Orders & Notifications
This module connects the separate AI products into a single platform: users need only one account, while points, orders, learning records, activity records, and space assets remain available across pages. Business modules handle their own fulfillment, while shared modules ensure consistency of identity, funds, and messages.
Screenshots




Accounts and Identity
- Production login primarily uses WeChat, covering H5 within WeChat, QR-code login in standard browsers, and retained mini program capabilities.
- Supports OpenID/UnionID identity verification and account merging across platforms.
- Identity conflicts go through manual review; two accounts must never be merged silently.
- User profiles support basic capabilities such as avatars, nicknames, and phone-number binding, subject to the current pages.
- Private-page redirects, sharing parameters, and external links are restricted to prevent login states or sensitive parameters from entering public links.
Unified Points
Accounts and Ledger
Each user has only one points account. An append-only ledger records:
- Balance snapshots before and after each change;
- Business type and business ID;
- Idempotency key;
- Reason for a deduction, top-up, refund, or compensation.
AI calls, content unlocking, event registration, voting, tipping, courses, community features, and other scenarios reuse the unified deduction and refund capabilities, while every ledger entry remains traceable to its specific business activity.
Top-Ups and Insufficient Balance
- Standard packages include 100, 1,000, and 10,000 points; first-top-up eligibility and discounts are determined by the server.
- Package prices and point amounts are determined by the server; the front end cannot change prices itself.
- Points are credited after the payment callback is verified, and the front end polls to confirm the result.
- When the balance is insufficient, a top-up overlay appears; after a successful top-up, the previously interrupted operation is retried automatically.
Daily Check-In
Check-ins provide a source of points, with additional rewards for consecutive check-ins. Check-in records, consecutive-day counts, and reward ledger entries must be idempotent to prevent duplicate credits from repeated clicks or cross-platform requests.
Orders and Payment Fulfillment
| Layer | Responsibility |
|---|---|
uni-pay | Basic capabilities for order creation, payment callbacks, order queries, closing unpaid orders, and refunds |
| Business orders | Preserve business semantics for spaces, points, courses, the workshop, math, 3D printing, and other services |
| Payment attempts | Associate a specific payment action and verify its amount and status |
| Fulfillment callbacks | Activate entitlements, change assets, or enter production after payment confirmation |
| Reconciliation and exceptions | Active queries, idempotency, duplicate-fulfillment prevention, refunds, and manual verification |
A successful payment cannot merely update front-end state. Each business service must invoke its own fulfillment logic and use transactions or idempotency keys to prevent duplicate activation.
The current primary points top-up flow uses WeChat Pay. Vibe Pay is a new integration direction and must not be described as a live payment method until real transaction verification is complete.
Notifications and Sharing
In-App Notifications
- Unread counts, all/unread filters, and pagination.
- Mark individual messages or all messages as read.
- Business deep links return to activities, points, orders, or generated results.
- Service-account follow guidance and in-app message status are handled separately.
External Notifications
- Deliver service-account templates, customer-service messages, voice messages, and push notifications through Outbox and Workers.
- Use locks, retries, and permanent-failure states to prevent Workers from sending duplicates or retrying indefinitely.
- Persisting business results is decoupled from notifications; delivery failures must not roll back completed business operations.
Sharing
Each page configures its title, description, image, and public link. When private pages are shared, the link is rewritten to a public entry point. Supported sharing formats include WeChat sharing, QR codes, image previews, event posters, user profiles, and business referral links.
Module Value
Shared infrastructure reduces the cost of repeatedly implementing accounts, payments, and notifications for every AI tool, while making cross-module flows traceable. A single content unlock can be traced to the user, points ledger entry, business order, fulfillment result, and subsequent notifications rather than leaving only a front-end “success” message.