Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
go_sku_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
53346117
authored
Jun 22, 2022
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
切换获取分类到新版分类
parent
6616cd53
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
service/service_ly_common.go
service/service_ly_common.go
View file @
53346117
...
...
@@ -2,17 +2,18 @@ package service
import
(
"encoding/json"
"github.com/gomodule/redigo/redis"
_
"github.com/iancoleman/orderedmap"
"github.com/syyongx/php2go"
"github.com/tidwall/gjson"
"go_sku_server/model"
"go_sku_server/pkg/common"
"go_sku_server/pkg/gredis"
"go_sku_server/pkg/logger"
_
"go_sku_server/pkg/mongo"
_
"gopkg.in/mgo.v2/bson"
"strings"
"github.com/gomodule/redigo/redis"
_
"github.com/iancoleman/orderedmap"
"github.com/syyongx/php2go"
"github.com/tidwall/gjson"
_
"gopkg.in/mgo.v2/bson"
)
//获取图片信息
...
...
@@ -79,7 +80,8 @@ func (ls *LyService) GetPoolSupplierName(supplierId int64) (supplierName string)
func
(
ls
*
LyService
)
GetCacheClass
(
classId
int64
)
string
{
redisCon
:=
gredis
.
Conn
(
"default_r"
)
defer
redisCon
.
Close
()
className
,
_
:=
redis
.
String
(
redisCon
.
Do
(
"HGET"
,
"class"
,
classId
))
classStr
,
_
:=
redis
.
String
(
redisCon
.
Do
(
"HGET"
,
"pool_class_info"
,
classId
))
className
:=
gjson
.
Get
(
classStr
,
"class_name"
)
.
String
()
return
className
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment