Skip to content

Commit e621532

Browse files
tknsnail
authored andcommitted
feat: ✨ 自助充值
1 parent 94d0b70 commit e621532

File tree

83 files changed

+2112
-110
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+2112
-110
lines changed

assets/res/NetAdmin.Fields.ln

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
USDT
12
上次执行时间
23
上次执行状态
34
上次执行耗时
@@ -19,13 +20,16 @@
1920
作业状态
2021
信息
2122
倒序排序
23+
充值成功
24+
充值订单导出
2225
全部数据
2326
公告
2427
共青团员
2528
出生证
2629
创建时间
2730
初中
2831
删除
32+
到账确认中
2933
包含
3034
博士
3135
博士后
@@ -53,10 +57,11 @@
5357
已校验
5458
已读
5559
并且
60+
微信支付
5661
成功
5762
或者
58-
所属角色
59-
所属部门
63+
归属角色
64+
归属部门
6065
手机
6166
手机号
6267
执行耗时
@@ -71,6 +76,8 @@
7176
接口路径
7277
插入种子数据
7378
操作系统
79+
支付宝
80+
支付超时
7481
支出
7582
收入
7683
数据范围
@@ -114,6 +121,7 @@
114121
站内信导出
115122
等于
116123
等待发送
124+
等待支付
117125
管理员充值
118126
管理员扣费
119127
管理模块

assets/res/NetAdmin.Statements.ln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ XML注释文件不存在
3333
手机号码不能为空
3434
接口编码不存在
3535
支付宝账号
36+
支付方式不正确
3637
政治面貌不正确
3738
数据库同步开始
3839
数据库服务器时钟偏移

assets/seed-data/Sys_Config.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
[
22
{
3+
"CnyToPointRate": 100,
34
"Enabled": true,
5+
"Trc20ReceiptAddress": "TMTByCrcZkY7o8YMax1pXiYV5SUQBZEnCu",
6+
"UsdToPointRate": 700,
47
"UserRegisterConfirm": false,
58
"UserRegisterDeptId": 372119301627909,
6-
"UserRegisterRoleId": 371729946431493
9+
"UserRegisterRoleId": 371729946431493,
710
}
811
]

assets/seed-data/Sys_Job.json

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,21 @@
22
{
33
"Enabled": true,
44
"ExecutionCron": "0 * * * * ?",
5-
"HttpMethod": 3,
6-
"JobName": "HTTP 请求测试",
7-
"NextExecTime": "2020-09-13 12:26:40",
8-
"NextTimeId": 1600000000,
9-
"RequestUrl": "https://httpbin.org/ip",
10-
"Status": 1,
11-
"UserId": 370942943322181,
12-
}
5+
"HttpMethod": 7,
6+
"JobName": "用户收入支出统计",
7+
"RequestBody": "{\"Sql\":\"UPDATE Sys_UserWallet SET TotalIncome = (SELECT COALESCE(SUM(Amount), 0) FROM Sys_WalletTrade WHERE Sys_WalletTrade.OwnerId = Sys_UserWallet.Id AND Sys_WalletTrade.TradeDirection = 1);UPDATE Sys_UserWallet SET TotalExpenditure = (SELECT COALESCE(SUM(Amount), 0) FROM Sys_WalletTrade WHERE Sys_WalletTrade.OwnerId = Sys_UserWallet.Id AND Sys_WalletTrade.TradeDirection = 2);\",\"TimeoutSecs\":60}",
8+
"RequestHeader": "{\"Content-Type\":\"application/json\"}",
9+
"RequestUrl": "https://na.tools92.top/api/sys/tools/execute.sql",
10+
"UserId": 664362432344581,
11+
},
12+
{
13+
"Enabled": true,
14+
"ExecutionCron": "0 * * * * ?",
15+
"HttpMethod": 7,
16+
"JobName": "充值到账确认",
17+
"RequestBody": "{\"readRecordCount\":100}",
18+
"RequestHeader": "{\"Content-Type\":\"application/json\"}",
19+
"RequestUrl": "https://na.tools92.top/api/sys/deposit.order/received.confirmation",
20+
"UserId": 664362432344581,
21+
},
1322
]

assets/seed-data/Sys_Menu.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,17 @@
9696
"Title": "交易流水",
9797
"Type": 1
9898
},
99+
{
100+
"Component": "sys/order",
101+
"Icon": "el-icon-shopping-cart",
102+
"Id": 690907673255944,
103+
"Name": "sys/order",
104+
"ParentId": 690906994118665,
105+
"Path": "/finance/order",
106+
"Sort": 98,
107+
"Title": "充值订单",
108+
"Type": 1
109+
},
99110
// ------------------------------ 系统管理 ------------------------------
100111
{
101112
"Icon": "sc-icon-App",

assets/seed-data/Sys_RoleApi.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,29 @@
7878
{
7979
"ApiId": "api/sys/wallet.trade/get",
8080
"RoleId": 371729946431493,
81+
},
82+
{
83+
"ApiId": "api/sys/deposit.order/paged.query",
84+
"RoleId": 371729946431493,
85+
},
86+
{
87+
"ApiId": "api/sys/deposit.order/count.by",
88+
"RoleId": 371729946431493,
89+
},
90+
{
91+
"ApiId": "api/sys/deposit.order/create",
92+
"RoleId": 371729946431493,
93+
},
94+
{
95+
"ApiId": "api/sys/deposit.order/get",
96+
"RoleId": 371729946431493,
97+
},
98+
{
99+
"ApiId": "api/sys/deposit.order/get.deposit.config",
100+
"RoleId": 371729946431493,
101+
},
102+
{
103+
"ApiId": "api/sys/deposit.order/pay.confirm",
104+
"RoleId": 371729946431493,
81105
}
82106
]

assets/seed-data/Sys_RoleMenu.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,9 @@
2626
{
2727
"MenuId": 690907673255943,
2828
"RoleId": 371729946431493
29+
},
30+
{
31+
"MenuId": 690907673255944,
32+
"RoleId": 371729946431493
2933
}
3034
]

assets/seed-data/Sys_User.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,13 @@
1414
"Password": "A8E87D23-49BC-25A1-1C7C-59186BEF5D15",
1515
"Token": "4208EA97-B32F-4E39-A290-4C0D27B61EBF",
1616
"UserName": "user"
17+
},
18+
{
19+
"DeptId": 372119301627909,
20+
"Enabled": true,
21+
"Id": 664362432344581,
22+
"Password": "A8E87D23-49BC-25A1-1C7C-59186BEF5D15",
23+
"Token": "751D599B-2B8C-417C-9565-CCF2363F5F6F",
24+
"UserName": "jobs"
1725
}
1826
]

assets/seed-data/Sys_UserProfile.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"Id": 370942943322181,
44
"AppConfig": "[]"
55
},
6+
{
7+
"Id": 664362432344581,
8+
"AppConfig": "[]"
9+
},
610
{
711
"Id": 560217289236492,
812
"AppConfig": "[]"

assets/seed-data/Sys_UserRole.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"RoleId": 370943613149253,
44
"UserId": 370942943322181
55
},
6+
{
7+
"RoleId": 370943613149253,
8+
"UserId": 664362432344581
9+
},
610
{
711
"RoleId": 371729946431493,
812
"UserId": 560217289236492

0 commit comments

Comments
 (0)