Răsfoiți Sursa

Merge branch 'dev_v1.0.10_wh' of BaseService/biService into feature/v1.0.10

王浩 1 an în urmă
părinte
comite
62062d0b4e
1 a modificat fișierele cu 2 adăugiri și 3 ștergeri
  1. 2 3
      service/sqlService.go

+ 2 - 3
service/sqlService.go

@@ -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
 }