huangjiajun 1 周之前
父節點
當前提交
a686cbb356
共有 1 個文件被更改,包括 5 次插入3 次删除
  1. +5
    -3
      app/custom/hdl/hdl_order.go

+ 5
- 3
app/custom/hdl/hdl_order.go 查看文件

@@ -15,10 +15,12 @@ func City(c *gin.Context) {
list := make([]map[string]interface{}, 0)
for _, v := range data {
tmpList := make([]map[string]string, 0)
tmp := map[string]interface{}{
"name": v.Name, "value": utils.Int64ToStr(v.Id), "list": tmpList,
if v.ProvinceId == 0 && v.CityId == 0 {
tmp := map[string]interface{}{
"name": v.Name, "value": utils.Int64ToStr(v.Id), "list": tmpList,
}
list = append(list, tmp)
}
list = append(list, tmp)
}
for k, v := range list {
tmpList := make([]map[string]string, 0)


Loading…
取消
儲存