增加备注功能
This commit is contained in:
parent
2f3a5a0a59
commit
b7131603c4
@ -193,6 +193,12 @@ func (that *MakeCode) Db2JSON(db *db.HoTimeDB, config Map) {
|
|||||||
if indexNum > -1 {
|
if indexNum > -1 {
|
||||||
coloum["label"] = info.GetString("label")[:indexNum]
|
coloum["label"] = info.GetString("label")[:indexNum]
|
||||||
}
|
}
|
||||||
|
psStart := strings.Index(info.GetString("label"), "{")
|
||||||
|
psEnd := strings.Index(info.GetString("label"), "}")
|
||||||
|
if psStart != -1 && psEnd > psStart {
|
||||||
|
coloum["ps"] = info.GetString("label")[psStart+1 : psEnd]
|
||||||
|
}
|
||||||
|
|
||||||
//去除数据信息,是用:号分割的
|
//去除数据信息,是用:号分割的
|
||||||
indexNum = strings.Index(coloum.GetString("label"), ":")
|
indexNum = strings.Index(coloum.GetString("label"), ":")
|
||||||
if indexNum > -1 {
|
if indexNum > -1 {
|
||||||
|
Loading…
Reference in New Issue
Block a user