@jetthai/cuora 1.0.67 → 1.0.68
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/package.json +1 -1
- package/src/api/payment.js +5 -0
- package/src/machine/inbox.js +2 -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.0.68](https://github.com/jetthai/cuora-module/compare/v1.0.67...v1.0.68) (2021-12-28)
|
|
6
|
+
|
|
5
7
|
### [1.0.67](https://github.com/jetthai/cuora-module/compare/v1.0.66...v1.0.67) (2021-12-24)
|
|
6
8
|
|
|
7
9
|
### [1.0.66](https://github.com/jetthai/cuora-module/compare/v1.0.65...v1.0.66) (2021-12-24)
|
package/package.json
CHANGED
package/src/api/payment.js
CHANGED
|
@@ -47,6 +47,11 @@ export default {
|
|
|
47
47
|
method: 'post',
|
|
48
48
|
params: { transferType: 'DEPOSIT', amount, cryptoCurrency, cryptoNetwork },
|
|
49
49
|
}),
|
|
50
|
+
submitDepositTransactionLoadcard: ({ method, amount, card_type, card_code, card_seri }) => ({
|
|
51
|
+
url: `payment/v2/${method}/transaction`,
|
|
52
|
+
method: 'post',
|
|
53
|
+
params: { transferType: 'DEPOSIT', amount, card_type, card_code, card_seri },
|
|
54
|
+
}),
|
|
50
55
|
submitWithdrawTransaction: ({ method, amount, cryptoCurrency, cryptoNetwork, targetAddress }) => ({
|
|
51
56
|
url: `payment/v2/${method}/transaction`,
|
|
52
57
|
method: 'post',
|
package/src/machine/inbox.js
CHANGED
|
@@ -228,7 +228,8 @@ export default function (request) {
|
|
|
228
228
|
const { data } = await request.send(activity.getRewardList({ count: 30, appSecret }))
|
|
229
229
|
inbox[currentTab] = { data, page: 0, totalPage: 1 }
|
|
230
230
|
} else {
|
|
231
|
-
const
|
|
231
|
+
const { page = -1 } = inbox[currentTab] || {}
|
|
232
|
+
const nextPage = page + 1
|
|
232
233
|
const { data, ...rest } = await request.send(mailbox.getMessageList({ type: currentTab, page: nextPage }))
|
|
233
234
|
const currentData = inbox[currentTab]?.data || []
|
|
234
235
|
inbox[currentTab] = { data: currentData.concat(data), ...rest }
|