@jetthai/cuora 1.0.22 → 1.0.24
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 +4 -0
- package/package.json +1 -1
- package/plugin/payment.js +3 -9
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.0.24](https://github.com/jetthai/cuora-module/compare/v1.0.23...v1.0.24) (2021-08-25)
|
|
6
|
+
|
|
7
|
+
### [1.0.23](https://github.com/jetthai/cuora-module/compare/v1.0.22...v1.0.23) (2021-08-25)
|
|
8
|
+
|
|
5
9
|
### [1.0.22](https://github.com/jetthai/cuora-module/compare/v1.0.21...v1.0.22) (2021-08-25)
|
|
6
10
|
|
|
7
11
|
### [1.0.21](https://github.com/jetthai/cuora-module/compare/v1.0.20...v1.0.21) (2021-08-23)
|
package/package.json
CHANGED
package/plugin/payment.js
CHANGED
|
@@ -202,15 +202,9 @@ function createStore({ $request }) {
|
|
|
202
202
|
}
|
|
203
203
|
},
|
|
204
204
|
async exchange({ commit, dispatch }, exchangeTarget) {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
await dispatch('activity/getActivityDetail', exchangeTarget.activityNo, { root: true })
|
|
209
|
-
commit(`core/setLoading`, false, { root: true })
|
|
210
|
-
return data
|
|
211
|
-
} catch (err) {
|
|
212
|
-
commit(`core/setLoading`, false, { root: true })
|
|
213
|
-
}
|
|
205
|
+
const { data } = await $request.sendWithLoading(api.exchange({ appSecret: clientSecret, ...exchangeTarget }))
|
|
206
|
+
await dispatch('activity/getActivityDetail', exchangeTarget.activityNo, { root: true })
|
|
207
|
+
return data
|
|
214
208
|
},
|
|
215
209
|
async collect({ commit, dispatch }, activityNo) {
|
|
216
210
|
const { data } = await $request.sendWithLoading(api.collect({ appSecret: clientSecret }))
|