Commit 0d4b955f by huangchengyi

1.0

parent 3282766d
......@@ -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 := ToString(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
......
......@@ -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)
//获取查询条件
......
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