Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit 2731f9f

Browse files
committed
修复一个访问日志因为为空而无法保存的问题
1 parent e361191 commit 2731f9f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

teaconst/const.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package teaconst
22

33
const (
4-
TeaVersion = "0.1.9.3"
4+
TeaVersion = "0.1.9.4"
55

66
TeaProcessName = "teaweb" // 进程名
77
TeaProductName = "TeaWeb" // 产品名

tealogs/accesslogs/access_log.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ func (this *AccessLog) DBColumns() maps.Map {
476476

477477
func (this *AccessLog) jsonEncode(v interface{}) []byte {
478478
if types.IsNil(v) {
479-
return nil
479+
return []byte("null")
480480
}
481481
data, _ := ffjson.Marshal(v)
482482
return data

0 commit comments

Comments
 (0)