Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
search_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
0d4b955f
authored
Dec 07, 2020
by
huangchengyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1.0
parent
3282766d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
pkg/common/function.go
service/optimum_service.go
pkg/common/function.go
View file @
0d4b955f
...
...
@@ -10,6 +10,7 @@ import (
"encoding/json"
"fmt"
"github.com/gin-gonic/gin"
"github.com/gogf/gf/util/gconv"
"github.com/syyongx/php2go"
"github.com/tidwall/gjson"
"math"
...
...
@@ -191,7 +192,7 @@ func NumberToHtml(number int) (html string) {
numberToClassSlice
:=
vars
.
NumberToClass
if
number
!=
0
{
//数字转字符串
numberStr
:=
To
String
(
number
)
numberStr
:=
gconv
.
String
(
number
)
for
i
:=
0
;
i
<
len
(
numberStr
);
i
++
{
var
classHtml
string
numStr
:=
php2go
.
Substr
(
numberStr
,
uint
(
i
),
1
)
...
...
@@ -203,7 +204,6 @@ func NumberToHtml(number int) (html string) {
classHtml
=
`<font class="`
+
class
+
otherClass
+
`"></font>`
}
html
=
html
+
classHtml
return
}
}
return
...
...
service/optimum_service.go
View file @
0d4b955f
...
...
@@ -168,6 +168,8 @@ func (qs *OptimumService) GetOptimumAttr(ctx *gin.Context) (results model.LyResp
返回供应商详情
*/
func
(
qs
*
OptimumService
)
GetOptimumAttrInfo
(
ctx
*
gin
.
Context
)
(
results
model
.
LyResponse
)
{
//fmt.Print(common.NumberToHtml(1))
//索引字典
qs
.
getQueryAttr
(
ctx
)
//获取查询条件
...
...
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