@jetthai/cuora 1.1.16 → 1.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/dist/bundle.mjs +98 -22
- package/package.json +1 -1
- package/src/api/payment.js +6 -4
- package/src/machine/promotions.js +34 -18
- package/src/machine/reward.js +59 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.1.17](https://github.com/jetthai/cuora-module/compare/v1.1.16...v1.1.17) (2022-12-28)
|
|
6
|
+
|
|
5
7
|
### [1.1.16](https://github.com/jetthai/cuora-module/compare/v1.1.13-4...v1.1.16) (2022-12-28)
|
|
6
8
|
|
|
7
9
|
### [1.1.15](https://github.com/jetthai/cuora-module/compare/v1.1.14...v1.1.15) (2022-12-24)
|
package/dist/bundle.mjs
CHANGED
|
@@ -3846,13 +3846,15 @@ var payment = {
|
|
|
3846
3846
|
params: { transferType: 'WITHDRAW', amount },
|
|
3847
3847
|
}),
|
|
3848
3848
|
getPromotionsList: () => ({ url: `payment/v2/bankWallet/promotions`, method: 'get' }),
|
|
3849
|
+
getWithdrawRulePreview: ({ applyType, applyNo, amount }) => ({
|
|
3850
|
+
url: `payment/v2/bankWallet/promotion/preview`,
|
|
3851
|
+
method: 'post',
|
|
3852
|
+
params: { applyType, applyNo, amount },
|
|
3853
|
+
}),
|
|
3849
3854
|
applyPromotions: ({ promotionsNo, amount }) => ({
|
|
3850
3855
|
url: `payment/v2/bankWallet/promotion/apply`,
|
|
3851
3856
|
method: 'post',
|
|
3852
|
-
params: {
|
|
3853
|
-
promotionsNo,
|
|
3854
|
-
amount,
|
|
3855
|
-
},
|
|
3857
|
+
params: { promotionsNo, amount },
|
|
3856
3858
|
}),
|
|
3857
3859
|
};
|
|
3858
3860
|
|
|
@@ -13007,6 +13009,15 @@ function reward (request) {
|
|
|
13007
13009
|
otherRewardList: [],
|
|
13008
13010
|
pointsRewardList: [],
|
|
13009
13011
|
rewardList: [],
|
|
13012
|
+
activityNo: null,
|
|
13013
|
+
receiveNo: null,
|
|
13014
|
+
turnoverLimitStatus: 'NEW',
|
|
13015
|
+
originalTurnoverLimit: 0,
|
|
13016
|
+
originalMaxWithdrawAmount: 0,
|
|
13017
|
+
originalLimitGameDetail: [],
|
|
13018
|
+
newTurnoverLimit: 0,
|
|
13019
|
+
newMaxWithdrawAmount: 0,
|
|
13020
|
+
newLimitGameDetail: [],
|
|
13010
13021
|
callback: () => {},
|
|
13011
13022
|
},
|
|
13012
13023
|
states: {
|
|
@@ -13042,6 +13053,10 @@ function reward (request) {
|
|
|
13042
13053
|
states: {
|
|
13043
13054
|
idle: {
|
|
13044
13055
|
on: {
|
|
13056
|
+
FETCH_WITHDRAW_RULE: {
|
|
13057
|
+
target: 'fetching',
|
|
13058
|
+
actions: 'setRewardData',
|
|
13059
|
+
},
|
|
13045
13060
|
RECEIVE_REWARD: {
|
|
13046
13061
|
target: 'receiving',
|
|
13047
13062
|
actions: 'setCallback',
|
|
@@ -13052,11 +13067,33 @@ function reward (request) {
|
|
|
13052
13067
|
},
|
|
13053
13068
|
},
|
|
13054
13069
|
},
|
|
13070
|
+
fetching: {
|
|
13071
|
+
invoke: {
|
|
13072
|
+
src: 'fetchWithdrawRulePreview',
|
|
13073
|
+
onDone: {
|
|
13074
|
+
target: 'pending',
|
|
13075
|
+
actions: 'setWithdrawRulePreview',
|
|
13076
|
+
},
|
|
13077
|
+
onError: {
|
|
13078
|
+
target: 'idle',
|
|
13079
|
+
},
|
|
13080
|
+
},
|
|
13081
|
+
},
|
|
13082
|
+
pending: {
|
|
13083
|
+
on: {
|
|
13084
|
+
RECEIVE_REWARD: {
|
|
13085
|
+
target: 'receiving',
|
|
13086
|
+
},
|
|
13087
|
+
BACK: {
|
|
13088
|
+
target: 'idle',
|
|
13089
|
+
},
|
|
13090
|
+
},
|
|
13091
|
+
},
|
|
13055
13092
|
receiving: {
|
|
13056
13093
|
invoke: {
|
|
13057
13094
|
src: 'receiveReward',
|
|
13058
13095
|
onDone: {
|
|
13059
|
-
target: '
|
|
13096
|
+
target: 'received',
|
|
13060
13097
|
actions: [send({ type: 'REFRESH' }), 'doCallback'],
|
|
13061
13098
|
},
|
|
13062
13099
|
onError: {
|
|
@@ -13064,6 +13101,11 @@ function reward (request) {
|
|
|
13064
13101
|
},
|
|
13065
13102
|
},
|
|
13066
13103
|
},
|
|
13104
|
+
received: {
|
|
13105
|
+
0: {
|
|
13106
|
+
target: 'idle',
|
|
13107
|
+
},
|
|
13108
|
+
},
|
|
13067
13109
|
allPointsReceiving: {
|
|
13068
13110
|
invoke: {
|
|
13069
13111
|
src: 'receiveAllPoints',
|
|
@@ -13089,6 +13131,13 @@ function reward (request) {
|
|
|
13089
13131
|
rewardList: event.data[2]?.data || [],
|
|
13090
13132
|
}
|
|
13091
13133
|
}),
|
|
13134
|
+
setRewardData: assign((context, event) => {
|
|
13135
|
+
const { activityNo, receiveNo } = event.data;
|
|
13136
|
+
return {
|
|
13137
|
+
activityNo,
|
|
13138
|
+
receiveNo,
|
|
13139
|
+
}
|
|
13140
|
+
}),
|
|
13092
13141
|
setCallback: assign((context, event) => {
|
|
13093
13142
|
return {
|
|
13094
13143
|
callback: event.data?.callback || (() => {}),
|
|
@@ -13097,6 +13146,11 @@ function reward (request) {
|
|
|
13097
13146
|
doCallback: (context, event) => {
|
|
13098
13147
|
context.callback();
|
|
13099
13148
|
},
|
|
13149
|
+
setWithdrawRulePreview: (context, event) => {
|
|
13150
|
+
return {
|
|
13151
|
+
...event.data,
|
|
13152
|
+
}
|
|
13153
|
+
},
|
|
13100
13154
|
},
|
|
13101
13155
|
services: {
|
|
13102
13156
|
fetchRewardList: async (context, event) => {
|
|
@@ -13106,6 +13160,11 @@ function reward (request) {
|
|
|
13106
13160
|
const [otherRewardList, pointsRewardList, rewardList] = await Promise.all([getOtherRewardAPI, getPointsRewardAPI, getRewardAPI]);
|
|
13107
13161
|
return [otherRewardList, pointsRewardList, rewardList]
|
|
13108
13162
|
},
|
|
13163
|
+
fetchWithdrawRulePreview: async (context, event) => {
|
|
13164
|
+
const { receiveNo } = context;
|
|
13165
|
+
const { data } = await request.send(payment.getWithdrawRulePreview({ applyType: 'activity', applyNo: receiveNo, amount: null }));
|
|
13166
|
+
return data
|
|
13167
|
+
},
|
|
13109
13168
|
receiveReward: async (context, event) => {
|
|
13110
13169
|
const { activityNo, receiveNo, attended } = event.data;
|
|
13111
13170
|
return await request.send(activity$2.getReward({ activityNo, receiveNo, appSecret, attended }))
|
|
@@ -20134,11 +20193,15 @@ function promotions (request) {
|
|
|
20134
20193
|
withdrawLimitDetail: [],
|
|
20135
20194
|
limitGameDetail: [],
|
|
20136
20195
|
},
|
|
20137
|
-
|
|
20138
|
-
|
|
20196
|
+
turnoverLimitStatus: '',
|
|
20197
|
+
originalTurnoverLimit: 0,
|
|
20198
|
+
originalMaxWithdrawAmount: 0,
|
|
20199
|
+
originalLimitGameDetail: [],
|
|
20200
|
+
newTurnoverLimit: 0,
|
|
20201
|
+
newMaxWithdrawAmount: 0,
|
|
20202
|
+
newLimitGameDetail: [],
|
|
20139
20203
|
promotionsList: [],
|
|
20140
20204
|
selectedPromo: {},
|
|
20141
|
-
joinedPromotion: null,
|
|
20142
20205
|
},
|
|
20143
20206
|
states: {
|
|
20144
20207
|
loading: {
|
|
@@ -20162,13 +20225,24 @@ function promotions (request) {
|
|
|
20162
20225
|
actions: 'setAmount',
|
|
20163
20226
|
},
|
|
20164
20227
|
JOIN: {
|
|
20165
|
-
target: '
|
|
20228
|
+
target: 'fetching',
|
|
20166
20229
|
cond: 'isValidAmount',
|
|
20167
20230
|
},
|
|
20168
20231
|
},
|
|
20169
20232
|
},
|
|
20170
|
-
|
|
20171
|
-
|
|
20233
|
+
fetching: {
|
|
20234
|
+
invoke: {
|
|
20235
|
+
src: 'fetchWithdrawRulePreview',
|
|
20236
|
+
onDone: {
|
|
20237
|
+
target: 'pending',
|
|
20238
|
+
actions: 'setWithdrawRulePreview',
|
|
20239
|
+
},
|
|
20240
|
+
onError: {
|
|
20241
|
+
target: 'loaded',
|
|
20242
|
+
},
|
|
20243
|
+
},
|
|
20244
|
+
},
|
|
20245
|
+
pending: {
|
|
20172
20246
|
on: {
|
|
20173
20247
|
CONFIRM: {
|
|
20174
20248
|
target: 'joinning',
|
|
@@ -20196,11 +20270,10 @@ function promotions (request) {
|
|
|
20196
20270
|
{
|
|
20197
20271
|
actions: {
|
|
20198
20272
|
setInitData: assign((context, event) => {
|
|
20199
|
-
const {
|
|
20273
|
+
const { promotionsList } = event.data;
|
|
20200
20274
|
const { noBonus } = context;
|
|
20201
20275
|
return {
|
|
20202
20276
|
promotionsList,
|
|
20203
|
-
userInfo,
|
|
20204
20277
|
selectedPromo: noBonus,
|
|
20205
20278
|
}
|
|
20206
20279
|
}),
|
|
@@ -20214,17 +20287,14 @@ function promotions (request) {
|
|
|
20214
20287
|
amount: event.data,
|
|
20215
20288
|
}
|
|
20216
20289
|
}),
|
|
20217
|
-
|
|
20290
|
+
setWithdrawRulePreview: assign((context, event) => {
|
|
20218
20291
|
return {
|
|
20219
|
-
|
|
20292
|
+
...event.data,
|
|
20220
20293
|
}
|
|
20221
20294
|
}),
|
|
20222
|
-
|
|
20223
|
-
const { userInfo, selectedPromo, amount } = context;
|
|
20224
|
-
const { turnoverLimitMultiple } = selectedPromo;
|
|
20295
|
+
reset: assign((context, event) => {
|
|
20225
20296
|
return {
|
|
20226
|
-
|
|
20227
|
-
newTargetTurnoverLimit: parseFloat(`${amount}`) * parseFloat(`${turnoverLimitMultiple}`),
|
|
20297
|
+
amount: null,
|
|
20228
20298
|
}
|
|
20229
20299
|
}),
|
|
20230
20300
|
},
|
|
@@ -20236,8 +20306,14 @@ function promotions (request) {
|
|
|
20236
20306
|
},
|
|
20237
20307
|
services: {
|
|
20238
20308
|
fetchInitData: async (context, event) => {
|
|
20239
|
-
|
|
20240
|
-
|
|
20309
|
+
return await request.send(payment.getPromotionsList())
|
|
20310
|
+
},
|
|
20311
|
+
fetchWithdrawRulePreview: async (context, event) => {
|
|
20312
|
+
const { selectedPromo, amount } = context;
|
|
20313
|
+
const { data } = await request.send(
|
|
20314
|
+
payment.getWithdrawRulePreview({ applyType: 'promotions', applyNo: selectedPromo.promotionsNo, amount: parseFloat(amount) })
|
|
20315
|
+
);
|
|
20316
|
+
return data
|
|
20241
20317
|
},
|
|
20242
20318
|
applyPromotion: async (context, event) => {
|
|
20243
20319
|
const { selectedPromo, amount } = context;
|
package/package.json
CHANGED
package/src/api/payment.js
CHANGED
|
@@ -115,12 +115,14 @@ export default {
|
|
|
115
115
|
params: { transferType: 'WITHDRAW', amount },
|
|
116
116
|
}),
|
|
117
117
|
getPromotionsList: () => ({ url: `payment/v2/bankWallet/promotions`, method: 'get' }),
|
|
118
|
+
getWithdrawRulePreview: ({ applyType, applyNo, amount }) => ({
|
|
119
|
+
url: `payment/v2/bankWallet/promotion/preview`,
|
|
120
|
+
method: 'post',
|
|
121
|
+
params: { applyType, applyNo, amount },
|
|
122
|
+
}),
|
|
118
123
|
applyPromotions: ({ promotionsNo, amount }) => ({
|
|
119
124
|
url: `payment/v2/bankWallet/promotion/apply`,
|
|
120
125
|
method: 'post',
|
|
121
|
-
params: {
|
|
122
|
-
promotionsNo,
|
|
123
|
-
amount,
|
|
124
|
-
},
|
|
126
|
+
params: { promotionsNo, amount },
|
|
125
127
|
}),
|
|
126
128
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { assign, createMachine } from 'xstate'
|
|
2
2
|
import payment from '../api/payment.js'
|
|
3
|
-
import user from '../api/user.js'
|
|
4
3
|
|
|
5
4
|
export default function (request) {
|
|
6
5
|
return createMachine(
|
|
@@ -24,11 +23,15 @@ export default function (request) {
|
|
|
24
23
|
withdrawLimitDetail: [],
|
|
25
24
|
limitGameDetail: [],
|
|
26
25
|
},
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
turnoverLimitStatus: '',
|
|
27
|
+
originalTurnoverLimit: 0,
|
|
28
|
+
originalMaxWithdrawAmount: 0,
|
|
29
|
+
originalLimitGameDetail: [],
|
|
30
|
+
newTurnoverLimit: 0,
|
|
31
|
+
newMaxWithdrawAmount: 0,
|
|
32
|
+
newLimitGameDetail: [],
|
|
29
33
|
promotionsList: [],
|
|
30
34
|
selectedPromo: {},
|
|
31
|
-
joinedPromotion: null,
|
|
32
35
|
},
|
|
33
36
|
states: {
|
|
34
37
|
loading: {
|
|
@@ -52,13 +55,24 @@ export default function (request) {
|
|
|
52
55
|
actions: 'setAmount',
|
|
53
56
|
},
|
|
54
57
|
JOIN: {
|
|
55
|
-
target: '
|
|
58
|
+
target: 'fetching',
|
|
56
59
|
cond: 'isValidAmount',
|
|
57
60
|
},
|
|
58
61
|
},
|
|
59
62
|
},
|
|
60
|
-
|
|
61
|
-
|
|
63
|
+
fetching: {
|
|
64
|
+
invoke: {
|
|
65
|
+
src: 'fetchWithdrawRulePreview',
|
|
66
|
+
onDone: {
|
|
67
|
+
target: 'pending',
|
|
68
|
+
actions: 'setWithdrawRulePreview',
|
|
69
|
+
},
|
|
70
|
+
onError: {
|
|
71
|
+
target: 'loaded',
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
pending: {
|
|
62
76
|
on: {
|
|
63
77
|
CONFIRM: {
|
|
64
78
|
target: 'joinning',
|
|
@@ -86,11 +100,10 @@ export default function (request) {
|
|
|
86
100
|
{
|
|
87
101
|
actions: {
|
|
88
102
|
setInitData: assign((context, event) => {
|
|
89
|
-
const {
|
|
103
|
+
const { promotionsList } = event.data
|
|
90
104
|
const { noBonus } = context
|
|
91
105
|
return {
|
|
92
106
|
promotionsList,
|
|
93
|
-
userInfo,
|
|
94
107
|
selectedPromo: noBonus,
|
|
95
108
|
}
|
|
96
109
|
}),
|
|
@@ -104,17 +117,14 @@ export default function (request) {
|
|
|
104
117
|
amount: event.data,
|
|
105
118
|
}
|
|
106
119
|
}),
|
|
107
|
-
|
|
120
|
+
setWithdrawRulePreview: assign((context, event) => {
|
|
108
121
|
return {
|
|
109
|
-
|
|
122
|
+
...event.data,
|
|
110
123
|
}
|
|
111
124
|
}),
|
|
112
|
-
|
|
113
|
-
const { userInfo, selectedPromo, amount } = context
|
|
114
|
-
const { turnoverLimitMultiple } = selectedPromo
|
|
125
|
+
reset: assign((context, event) => {
|
|
115
126
|
return {
|
|
116
|
-
|
|
117
|
-
newTargetTurnoverLimit: parseFloat(`${amount}`) * parseFloat(`${turnoverLimitMultiple}`),
|
|
127
|
+
amount: null,
|
|
118
128
|
}
|
|
119
129
|
}),
|
|
120
130
|
},
|
|
@@ -126,8 +136,14 @@ export default function (request) {
|
|
|
126
136
|
},
|
|
127
137
|
services: {
|
|
128
138
|
fetchInitData: async (context, event) => {
|
|
129
|
-
|
|
130
|
-
|
|
139
|
+
return await request.send(payment.getPromotionsList())
|
|
140
|
+
},
|
|
141
|
+
fetchWithdrawRulePreview: async (context, event) => {
|
|
142
|
+
const { selectedPromo, amount } = context
|
|
143
|
+
const { data } = await request.send(
|
|
144
|
+
payment.getWithdrawRulePreview({ applyType: 'promotions', applyNo: selectedPromo.promotionsNo, amount: parseFloat(amount) })
|
|
145
|
+
)
|
|
146
|
+
return data
|
|
131
147
|
},
|
|
132
148
|
applyPromotion: async (context, event) => {
|
|
133
149
|
const { selectedPromo, amount } = context
|
package/src/machine/reward.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createMachine, assign, send } from 'xstate'
|
|
2
2
|
import activity from '../api/activity.js'
|
|
3
|
+
import payment from '../api/payment.js'
|
|
3
4
|
|
|
4
5
|
export default function (request) {
|
|
5
6
|
const { appSecret } = request.config
|
|
@@ -11,6 +12,15 @@ export default function (request) {
|
|
|
11
12
|
otherRewardList: [],
|
|
12
13
|
pointsRewardList: [],
|
|
13
14
|
rewardList: [],
|
|
15
|
+
activityNo: null,
|
|
16
|
+
receiveNo: null,
|
|
17
|
+
turnoverLimitStatus: 'NEW',
|
|
18
|
+
originalTurnoverLimit: 0,
|
|
19
|
+
originalMaxWithdrawAmount: 0,
|
|
20
|
+
originalLimitGameDetail: [],
|
|
21
|
+
newTurnoverLimit: 0,
|
|
22
|
+
newMaxWithdrawAmount: 0,
|
|
23
|
+
newLimitGameDetail: [],
|
|
14
24
|
callback: () => {},
|
|
15
25
|
},
|
|
16
26
|
states: {
|
|
@@ -46,6 +56,10 @@ export default function (request) {
|
|
|
46
56
|
states: {
|
|
47
57
|
idle: {
|
|
48
58
|
on: {
|
|
59
|
+
FETCH_WITHDRAW_RULE: {
|
|
60
|
+
target: 'fetching',
|
|
61
|
+
actions: 'setRewardData',
|
|
62
|
+
},
|
|
49
63
|
RECEIVE_REWARD: {
|
|
50
64
|
target: 'receiving',
|
|
51
65
|
actions: 'setCallback',
|
|
@@ -56,11 +70,33 @@ export default function (request) {
|
|
|
56
70
|
},
|
|
57
71
|
},
|
|
58
72
|
},
|
|
73
|
+
fetching: {
|
|
74
|
+
invoke: {
|
|
75
|
+
src: 'fetchWithdrawRulePreview',
|
|
76
|
+
onDone: {
|
|
77
|
+
target: 'pending',
|
|
78
|
+
actions: 'setWithdrawRulePreview',
|
|
79
|
+
},
|
|
80
|
+
onError: {
|
|
81
|
+
target: 'idle',
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
pending: {
|
|
86
|
+
on: {
|
|
87
|
+
RECEIVE_REWARD: {
|
|
88
|
+
target: 'receiving',
|
|
89
|
+
},
|
|
90
|
+
BACK: {
|
|
91
|
+
target: 'idle',
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
},
|
|
59
95
|
receiving: {
|
|
60
96
|
invoke: {
|
|
61
97
|
src: 'receiveReward',
|
|
62
98
|
onDone: {
|
|
63
|
-
target: '
|
|
99
|
+
target: 'received',
|
|
64
100
|
actions: [send({ type: 'REFRESH' }), 'doCallback'],
|
|
65
101
|
},
|
|
66
102
|
onError: {
|
|
@@ -68,6 +104,11 @@ export default function (request) {
|
|
|
68
104
|
},
|
|
69
105
|
},
|
|
70
106
|
},
|
|
107
|
+
received: {
|
|
108
|
+
0: {
|
|
109
|
+
target: 'idle',
|
|
110
|
+
},
|
|
111
|
+
},
|
|
71
112
|
allPointsReceiving: {
|
|
72
113
|
invoke: {
|
|
73
114
|
src: 'receiveAllPoints',
|
|
@@ -93,6 +134,13 @@ export default function (request) {
|
|
|
93
134
|
rewardList: event.data[2]?.data || [],
|
|
94
135
|
}
|
|
95
136
|
}),
|
|
137
|
+
setRewardData: assign((context, event) => {
|
|
138
|
+
const { activityNo, receiveNo } = event.data
|
|
139
|
+
return {
|
|
140
|
+
activityNo,
|
|
141
|
+
receiveNo,
|
|
142
|
+
}
|
|
143
|
+
}),
|
|
96
144
|
setCallback: assign((context, event) => {
|
|
97
145
|
return {
|
|
98
146
|
callback: event.data?.callback || (() => {}),
|
|
@@ -101,6 +149,11 @@ export default function (request) {
|
|
|
101
149
|
doCallback: (context, event) => {
|
|
102
150
|
context.callback()
|
|
103
151
|
},
|
|
152
|
+
setWithdrawRulePreview: (context, event) => {
|
|
153
|
+
return {
|
|
154
|
+
...event.data,
|
|
155
|
+
}
|
|
156
|
+
},
|
|
104
157
|
},
|
|
105
158
|
services: {
|
|
106
159
|
fetchRewardList: async (context, event) => {
|
|
@@ -110,6 +163,11 @@ export default function (request) {
|
|
|
110
163
|
const [otherRewardList, pointsRewardList, rewardList] = await Promise.all([getOtherRewardAPI, getPointsRewardAPI, getRewardAPI])
|
|
111
164
|
return [otherRewardList, pointsRewardList, rewardList]
|
|
112
165
|
},
|
|
166
|
+
fetchWithdrawRulePreview: async (context, event) => {
|
|
167
|
+
const { receiveNo } = context
|
|
168
|
+
const { data } = await request.send(payment.getWithdrawRulePreview({ applyType: 'activity', applyNo: receiveNo, amount: null }))
|
|
169
|
+
return data
|
|
170
|
+
},
|
|
113
171
|
receiveReward: async (context, event) => {
|
|
114
172
|
const { activityNo, receiveNo, attended } = event.data
|
|
115
173
|
return await request.send(activity.getReward({ activityNo, receiveNo, appSecret, attended }))
|