Commit 0d4b955f by huangchengyi

1.0

parent 3282766d
...@@ -10,6 +10,7 @@ import ( ...@@ -10,6 +10,7 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/gogf/gf/util/gconv"
"github.com/syyongx/php2go" "github.com/syyongx/php2go"
"github.com/tidwall/gjson" "github.com/tidwall/gjson"
"math" "math"
...@@ -191,7 +192,7 @@ func NumberToHtml(number int) (html string) { ...@@ -191,7 +192,7 @@ func NumberToHtml(number int) (html string) {
numberToClassSlice := vars.NumberToClass numberToClassSlice := vars.NumberToClass
if number != 0 { if number != 0 {
//数字转字符串 //数字转字符串
numberStr := ToString(number) numberStr := gconv.String(number)
for i := 0; i < len(numberStr); i++ { for i := 0; i < len(numberStr); i++ {
var classHtml string var classHtml string
numStr := php2go.Substr(numberStr, uint(i), 1) numStr := php2go.Substr(numberStr, uint(i), 1)
...@@ -203,7 +204,6 @@ func NumberToHtml(number int) (html string) { ...@@ -203,7 +204,6 @@ func NumberToHtml(number int) (html string) {
classHtml = `<font class="` + class + otherClass + `"></font>` classHtml = `<font class="` + class + otherClass + `"></font>`
} }
html = html + classHtml html = html + classHtml
return
} }
} }
return return
......
...@@ -168,6 +168,8 @@ func (qs *OptimumService) GetOptimumAttr(ctx *gin.Context) (results model.LyResp ...@@ -168,6 +168,8 @@ func (qs *OptimumService) GetOptimumAttr(ctx *gin.Context) (results model.LyResp
返回供应商详情 返回供应商详情
*/ */
func (qs *OptimumService) GetOptimumAttrInfo(ctx *gin.Context) (results model.LyResponse) { func (qs *OptimumService) GetOptimumAttrInfo(ctx *gin.Context) (results model.LyResponse) {
//fmt.Print(common.NumberToHtml(1))
//索引字典 //索引字典
qs.getQueryAttr(ctx) qs.getQueryAttr(ctx)
//获取查询条件 //获取查询条件
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment