@jetthai/cuora 1.1.320-dev-3 → 1.1.320-dev-4
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,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.320-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.320-dev-3...v1.1.320-dev-4) (2024-12-02)
|
|
6
|
+
|
|
5
7
|
### [1.1.320-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.320-dev-2...v1.1.320-dev-3) (2024-12-02)
|
|
6
8
|
|
|
7
9
|
### [1.1.320-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.320-dev-1...v1.1.320-dev-2) (2024-11-29)
|
package/package.json
CHANGED
|
@@ -163,7 +163,7 @@ export default function (request) {
|
|
|
163
163
|
const isDoubleWallet = context.siteConfig?.walletMode === '4'
|
|
164
164
|
const apiCallable = hasToken && isDoubleWallet
|
|
165
165
|
const [{ data }, promotionList] = await Promise.all([
|
|
166
|
-
request.send(activity.getActivityList({ appSecret })),
|
|
166
|
+
hasToken ? request.send(activity.getActivityList({ appSecret })) : request.send(activity.getAllActivityList({ appSecret })),
|
|
167
167
|
apiCallable ? request.send(payment.getPromotionsList()) : [],
|
|
168
168
|
])
|
|
169
169
|
|
|
@@ -133,7 +133,7 @@ export default function (request) {
|
|
|
133
133
|
fetchList: async (context, event) => {
|
|
134
134
|
const hasToken = request.getToken()
|
|
135
135
|
const [{ data }, promotionList] = await Promise.all([
|
|
136
|
-
request.send(activity.getActivityList({ appSecret })),
|
|
136
|
+
hasToken ? request.send(activity.getActivityList({ appSecret })) : request.send(activity.getAllActivityList({ appSecret })),
|
|
137
137
|
hasToken ? request.send(payment.getPromotionsList()) : [],
|
|
138
138
|
])
|
|
139
139
|
|