79 Commits

Author SHA1 Message Date
CounterFire2023
e2b5006443 add sample code for waas market 2023-12-14 10:08:14 +08:00
CounterFire2023
06f589258a update local db url for development 2023-12-08 10:32:24 +08:00
CounterFire2023
5e1ecaf071 add new package clientid 2023-11-24 16:06:25 +08:00
CounterFire2023
2199fc4860 add start script for test 2023-11-23 17:00:35 +08:00
CounterFire2023
7dcf3a956a 接入okx的waas服务 2023-11-07 17:33:11 +08:00
CounterFire2023
9835e55675 增加relay相关接口 2023-10-18 19:24:57 +08:00
CounterFire2023
b6d58c4f5b 重构代码, 优化登录逻辑, 增加帐号绑定流程 2023-09-06 15:47:14 +08:00
CounterFire2023
15bb27eefa 增加通用的登录接口 2023-08-23 19:07:08 +08:00
CounterFire2023
099f1a8135 增加client登录模式,增加登录日志 2023-08-17 15:58:36 +08:00
CounterFire2023
d1f3fed196 增加账号删除的功能 2023-08-14 14:58:09 +08:00
CounterFire2023
0141093817 移除支付相关router 2023-08-10 13:44:33 +08:00
CounterFire2023
a021e4431c 修改token生成方法,加入version 2023-08-10 13:43:27 +08:00
CounterFire2023
d0e8679527 查询时,chain特殊处理, 不使用正则 2023-07-16 18:09:47 +08:00
CounterFire2023
f38f5f5fd1 增加一些日志 2023-06-16 18:34:26 +08:00
zhl
8fb2500443 修改token转账费用 2023-06-09 18:55:11 +08:00
zhl
7b0c5d203d 修改支付接口次数限制方式 2023-06-09 18:54:30 +08:00
zhl
69511b567b fix:bug 购买时非eth时, 金额设置错误的bug 2023-06-08 18:25:13 +08:00
zhl
72783bd183 增加eth转账 2023-06-08 18:08:28 +08:00
zhl
92af300adb dev环境查询币价改为查询eth 2023-06-08 16:36:52 +08:00
zhl
6aede002ec dev环境查询币价改为查询eth 2023-06-08 16:34:25 +08:00
zhl
d2e2337df0 增加game svr上报 2023-06-07 19:35:07 +08:00
zhl
c1d01f4ab0 update cec and ceg address 2023-06-05 16:14:14 +08:00
zhl
0688261153 修正购买流程的bug 2023-06-02 19:54:21 +08:00
zhl
476da08a8f 完善支付流程 2023-06-01 13:04:38 +08:00
zhl
5220dd2232 增加查询crypto兑换美元价格的接口 2023-05-26 14:04:52 +08:00
zhl
5fbd59b738 fix some bug 2023-05-16 19:47:06 +08:00
zhl
fdb7f256ae 增加一个发送验证码,验证邮箱的流程 2023-05-12 16:16:08 +08:00
zhl
678ff06f9f 将地址保存至全局变量 2023-05-10 19:15:06 +08:00
zhl
9b7d48b068 修改wallet的key生成方式 2023-05-09 11:32:19 +08:00
zhl
0ff052e527 统一jwt的生成 2023-05-09 11:03:44 +08:00
zhl
7343a40472 移除一个未用到的常量 2023-05-09 11:01:17 +08:00
zhl
4f74504b14 调整配置读取方式 2023-05-08 21:48:42 +08:00
zhl
1ed899bfac 配置中只保存公私钥的核心部分, 在代码逻辑中恢复公私钥 2023-05-08 21:35:17 +08:00
zhl
2e7de5db35 修改token的加密方式为EDDSA 2023-05-08 21:30:09 +08:00
zhl
88a17b515b email注册时增加判断 2023-05-08 17:34:06 +08:00
zhl
58e7c713ed 更新walletinfo的接口增加key是否为空的判断 2023-04-08 14:03:55 +08:00
zhl
aa1177b802 增加邮件注册登录相关接口 2023-04-04 18:50:57 +08:00
zhl
6e9fe44134 增加tiktok的webhook接口 2023-04-04 11:33:33 +08:00
zhl
c36dafb60c 增加apple web客户端 2023-04-04 11:20:10 +08:00
zhl
1aa0e1b6d0 refactor: Add HTTP headers to API requests.
- Add headers to the fetch and refresh access token functions
- Allow for optional headers in request data interface
- Fix syntax error in headers object_literals in request method
- Use default configuration instead of creating a new object in request method
2023-03-27 21:36:49 +08:00
zhl
8d0a054a44 feat: Refactor Alchemy endpoint and headers
- Add `access-token` header and update API endpoint in `createOrder` function of Alchemy service
- Improve logging functionality in logger module
- Miscellaneous updates and fixes in Alchemy controller
- Overall improvements to code quality and maintainability
2023-03-27 21:36:03 +08:00
zhl
94cdea34ca feat: Refactor Alchemy service to improve payment flow.
- Remove `callbackUrl` from `dataOrigin` object and add it to `dataSign` object in `beginPay` function in `alchemy.controller.ts`
- Improve typing of `dataSign` object in `beginPay` function in `alchemy.controller.ts`
- Add new `createOrder` function and functionality to send post request with token to merchant API in `alchemy.svr.ts`
- Update `ALCHEMY_PAY_CB_URL` in `.env.development` to point to a new domain
2023-03-27 15:30:27 +08:00
zhl
c3f81a825f feat: Refactor AlchemyController's callback function for usability and clarity.
- Add constant and callback URL to AlchemyController for Alchemy Pay
- Improve parameter validations and error handling in `alchemyCallback` function
- Remove unused variable `redirectUrl` in AlchemyController
- Update `.env.development` with Alchemy Pay callback URL
2023-03-27 14:19:37 +08:00
zhl
6ede0fd01a Add Alchemy server callback endpoint and PayRecord class
Add functionality to check pay result sign, create page sign, and refresh token
 Implement a new `POST /pay/alchemy/cb` endpoint in `alchemy.controller.ts`
 `alchemyCallback` method now checks `PayRecord` status and pay sign before changing status and returning empty body
- `ROLE_ANON` added to `alchemyCallback` method and import of `role` changed in `alchemy.controller.ts`
- `PayRecord.ts` added to modules with `PayRecord` class and payment property enums
2023-03-27 14:09:18 +08:00
zhl
26a27a837c refactor: Refactor role authorization to use constant in controllers
- Add `ROLE_ANON` constant for authorization to be used in multiple controllers
- Replace string constants with `process.env` variables for easier configuration
- Use `insertOrUpdate` method from `Account` module for user account creation and updates
- Remove unnecessary semicolons for improved code readability
- Add error handling to `checkFacebookJwt` function for missing or invalid data from Facebook API
2023-03-24 16:02:13 +08:00
zhl
96064ce215 fix: Refactor and standardize authentication check functions
- Improve data accuracy in checkGoogleJwt function
- Handle correct email data in apple login
2023-03-24 15:02:29 +08:00
zhl
a9feeda7b9 增加alchemy支付的功能 2023-03-17 19:22:23 +08:00
zhl
3aafc04f97 new:增加获取账号认证邮箱的借口 2023-03-17 13:57:50 +08:00
zhl
4c4879a06c 增加ejs模版, 用于渲染email验证结果 2023-03-15 16:49:34 +08:00
zhl
d39d4d3f10 将部分jwt第一部份相同的内容移除 2023-03-15 16:31:24 +08:00