mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-09 20:10:25 +08:00
集群可以设置WebP策略
This commit is contained in:
@@ -30,6 +30,17 @@ func IsNotNull(data []byte) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsNull 判断JSON是否为空
|
||||
func IsNull(data []byte) bool {
|
||||
if len(data) == 0 {
|
||||
return true
|
||||
}
|
||||
if len(data) == 4 && string(data) == "null" {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// NewQuery 构造Query
|
||||
func NewQuery(tx *dbs.Tx, dao dbs.DAOWrapper, adminId int64, userId int64) *dbs.Query {
|
||||
query := dao.Object().Query(tx)
|
||||
|
||||
Reference in New Issue
Block a user