这版是公共号授权版

This commit is contained in:
cao123
2026-08-12 11:47:51 +08:00
parent d0776f9676
commit e47df01af9
18 changed files with 365 additions and 378 deletions
@@ -1,4 +1,3 @@
import { appId } from "../../../env";
import { request } from "../../../utils/request";
import { receiveRedPacket } from "../../../utils/util";
@@ -76,7 +75,7 @@ Page({
async handleReceive(e: any) {
const { id } = e.currentTarget.dataset;
const { code } = app.globalData.store || {};
const appId = wx.getStorageSync("appId");
try {
await receiveRedPacket(
{ appId, code, openId: wx.getStorageSync("openId"), redId: id },