小优化

This commit is contained in:
xiangheng
2024-11-08 17:26:51 +08:00
parent c2112f4157
commit 61e3d904f9
3 changed files with 6 additions and 6 deletions

View File

@@ -15,13 +15,13 @@
</style>
<script src="/XErr.umd.js"></script>
<script>
const xErr = new XErr.XErr(
const xErr = new XErr.Base(
{
Dns: `${location.origin}/api`,
Pid: 'e19e3be20de94f49b68fafb4c30668bc',
Uid: ''
},
new XErr.XErrWeb({
new XErr.Web({
onloadTimeOut: 5000
})
)

File diff suppressed because one or more lines are too long

View File

@@ -42,7 +42,7 @@ func (iSrv indexService) Console() (res map[string]interface{}, e error) {
}
// 今日数据
today := map[string]interface{}{
"time": "2022-08-11 15:08:29",
"time": util.NullTimeUtil.Now(),
"todayVisits": 10, // 访问量(人)
"totalVisits": 100, // 总访问量
"todaySales": 30, // 销售额(元)
@@ -60,7 +60,7 @@ func (iSrv indexService) Console() (res map[string]interface{}, e error) {
}
visitor := map[string]interface{}{
"date": date,
"list": []int{12, 13, 11, 5, 8, 22, 14, 9, 456, 62, 78, 12, 18, 22, 46},
"list": []int{12, 13, 11, 5, 100, 22, 14, 9, 456, 62, 78, 12, 18, 22, 46},
}
return map[string]interface{}{
"version": version,