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)


불러오는 중...
취소
저장