@jetthai/cuora 1.1.79 → 1.1.81
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
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
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.81](https://github.com/jetthai/cuora-module/compare/v1.1.80...v1.1.81) (2023-04-20)
|
|
6
|
+
|
|
7
|
+
### [1.1.80](https://github.com/jetthai/cuora-module/compare/v1.1.79...v1.1.80) (2023-04-18)
|
|
8
|
+
|
|
5
9
|
### [1.1.79](https://github.com/jetthai/cuora-module/compare/v1.1.78...v1.1.79) (2023-04-18)
|
|
6
10
|
|
|
7
11
|
### [1.1.78](https://github.com/jetthai/cuora-module/compare/v1.1.66-1...v1.1.78) (2023-04-14)
|
package/dist/bundle.mjs
CHANGED
|
@@ -8187,7 +8187,7 @@ function friend_invite_friends_activity (request) {
|
|
|
8187
8187
|
},
|
|
8188
8188
|
awardPrize: async (context, event) => {
|
|
8189
8189
|
const { activityNo, uidSite, bindingCode } = context;
|
|
8190
|
-
const { data } = await request.send(api.sentAward({ activityNo, uidSite,
|
|
8190
|
+
const { data } = await request.send(api.sentAward({ activityNo, uidSite, affiliateCode: bindingCode, appSecret }));
|
|
8191
8191
|
return data
|
|
8192
8192
|
},
|
|
8193
8193
|
fetchLevelDownLineList: async (context, event) => {
|
|
@@ -23657,6 +23657,11 @@ function qrcode_v2 (request) {
|
|
|
23657
23657
|
},
|
|
23658
23658
|
],
|
|
23659
23659
|
SELECT_AMOUNT: [
|
|
23660
|
+
{
|
|
23661
|
+
target: 'debouncing',
|
|
23662
|
+
actions: 'setAmount',
|
|
23663
|
+
cond: 'isDoubleWalletMode',
|
|
23664
|
+
},
|
|
23660
23665
|
{
|
|
23661
23666
|
target: 'pending',
|
|
23662
23667
|
actions: 'addAmount',
|
|
@@ -23715,6 +23720,11 @@ function qrcode_v2 (request) {
|
|
|
23715
23720
|
debouncing: {
|
|
23716
23721
|
on: {
|
|
23717
23722
|
SELECT_AMOUNT: [
|
|
23723
|
+
{
|
|
23724
|
+
target: 'debouncing',
|
|
23725
|
+
actions: 'setAmount',
|
|
23726
|
+
cond: 'isDoubleWalletMode',
|
|
23727
|
+
},
|
|
23718
23728
|
{
|
|
23719
23729
|
target: 'debouncing',
|
|
23720
23730
|
actions: 'addAmount',
|
|
@@ -23749,6 +23759,11 @@ function qrcode_v2 (request) {
|
|
|
23749
23759
|
entry: 'clearCalculation',
|
|
23750
23760
|
on: {
|
|
23751
23761
|
SELECT_AMOUNT: [
|
|
23762
|
+
{
|
|
23763
|
+
target: 'debouncing',
|
|
23764
|
+
actions: 'setAmount',
|
|
23765
|
+
cond: 'isDoubleWalletMode',
|
|
23766
|
+
},
|
|
23752
23767
|
{
|
|
23753
23768
|
target: 'pending',
|
|
23754
23769
|
actions: 'addAmount',
|
|
@@ -23949,6 +23964,9 @@ function qrcode_v2 (request) {
|
|
|
23949
23964
|
}),
|
|
23950
23965
|
},
|
|
23951
23966
|
guards: {
|
|
23967
|
+
isDoubleWalletMode: (context, event) => {
|
|
23968
|
+
return context.siteConfig?.walletMode === '4'
|
|
23969
|
+
},
|
|
23952
23970
|
isFreeWalletMode: (context, event) => {
|
|
23953
23971
|
return context.siteConfig?.walletMode === '2'
|
|
23954
23972
|
},
|
package/package.json
CHANGED
|
@@ -192,7 +192,7 @@ export default function (request) {
|
|
|
192
192
|
},
|
|
193
193
|
awardPrize: async (context, event) => {
|
|
194
194
|
const { activityNo, uidSite, bindingCode } = context
|
|
195
|
-
const { data } = await request.send(api.sentAward({ activityNo, uidSite,
|
|
195
|
+
const { data } = await request.send(api.sentAward({ activityNo, uidSite, affiliateCode: bindingCode, appSecret }))
|
|
196
196
|
return data
|
|
197
197
|
},
|
|
198
198
|
fetchLevelDownLineList: async (context, event) => {
|
|
@@ -100,6 +100,11 @@ export default function (request) {
|
|
|
100
100
|
},
|
|
101
101
|
],
|
|
102
102
|
SELECT_AMOUNT: [
|
|
103
|
+
{
|
|
104
|
+
target: 'debouncing',
|
|
105
|
+
actions: 'setAmount',
|
|
106
|
+
cond: 'isDoubleWalletMode',
|
|
107
|
+
},
|
|
103
108
|
{
|
|
104
109
|
target: 'pending',
|
|
105
110
|
actions: 'addAmount',
|
|
@@ -158,6 +163,11 @@ export default function (request) {
|
|
|
158
163
|
debouncing: {
|
|
159
164
|
on: {
|
|
160
165
|
SELECT_AMOUNT: [
|
|
166
|
+
{
|
|
167
|
+
target: 'debouncing',
|
|
168
|
+
actions: 'setAmount',
|
|
169
|
+
cond: 'isDoubleWalletMode',
|
|
170
|
+
},
|
|
161
171
|
{
|
|
162
172
|
target: 'debouncing',
|
|
163
173
|
actions: 'addAmount',
|
|
@@ -192,6 +202,11 @@ export default function (request) {
|
|
|
192
202
|
entry: 'clearCalculation',
|
|
193
203
|
on: {
|
|
194
204
|
SELECT_AMOUNT: [
|
|
205
|
+
{
|
|
206
|
+
target: 'debouncing',
|
|
207
|
+
actions: 'setAmount',
|
|
208
|
+
cond: 'isDoubleWalletMode',
|
|
209
|
+
},
|
|
195
210
|
{
|
|
196
211
|
target: 'pending',
|
|
197
212
|
actions: 'addAmount',
|
|
@@ -392,6 +407,9 @@ export default function (request) {
|
|
|
392
407
|
}),
|
|
393
408
|
},
|
|
394
409
|
guards: {
|
|
410
|
+
isDoubleWalletMode: (context, event) => {
|
|
411
|
+
return context.siteConfig?.walletMode === '4'
|
|
412
|
+
},
|
|
395
413
|
isFreeWalletMode: (context, event) => {
|
|
396
414
|
return context.siteConfig?.walletMode === '2'
|
|
397
415
|
},
|