Skip to content

Commit

Permalink
v0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
YuzeTT committed Aug 26, 2022
1 parent 9f436a5 commit a5d298c
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
Binary file removed UniAnalytics_linux_amd64
Binary file not shown.
Binary file removed UniAnalytics_macos_amd64
Binary file not shown.
14 changes: 14 additions & 0 deletions html/analytics.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{{ define "jump.html" }}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>统计</title>
</head>
<body>

</body>
</html>
{{ end }}
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type Config struct {
}

func init() {
fmt.Println("===== UniAnalytics v0.2.1 =====")
fmt.Println("===== UniAnalytics v0.2.2 =====")
log.Println("初始化中...")
t := time.Now()
util.InitConfig()
Expand Down
5 changes: 0 additions & 5 deletions util/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ func AddSql(url string, ip string) {
stmt, err := db.Prepare("INSERT INTO links(uid, created_at, url, ip, type) values(?,?,?,?,?)")
checkErr(err)
stmt.Exec(nil, time.Now().Format("2006-01-02 15:04:05"), url, ip, 0)
// res, err := stmt.Exec(nil, time.Now().Format("2006-01-02 15:04:05"), url, 0)
// checkErr(err)
// id, err := res.LastInsertId()
// checkErr(err)
// fmt.Println(id)
db.Close()
}

Expand Down

0 comments on commit a5d298c

Please sign in to comment.