|
@@ -7,7 +7,6 @@ import (
|
|
|
"app.yhyue.com/moapp/jybase/redis"
|
|
|
MC "bp.jydev.jianyu360.cn/BaseService/biService/entity"
|
|
|
"bp.jydev.jianyu360.cn/BaseService/biService/rpc/biservice"
|
|
|
- "encoding/json"
|
|
|
"fmt"
|
|
|
"github.com/gogf/gf/v2/util/gconv"
|
|
|
)
|
|
@@ -46,9 +45,9 @@ func (l SqlService) SqlManage(in *biservice.SqlManageReq) []byte {
|
|
|
"data": rs,
|
|
|
"count": count,
|
|
|
}
|
|
|
- resultByte, _ := json.Marshal(result)
|
|
|
+ resultByte := gconv.Bytes(result)
|
|
|
if count > 0 && cache_time != 0 {
|
|
|
- redis.Put("newother", key, resultByte, cache_time)
|
|
|
+ redis.Put("newother", key, result, cache_time)
|
|
|
}
|
|
|
return resultByte
|
|
|
}
|