这版是公共号授权版
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user