|
|
@@ -5,6 +5,7 @@ import (
|
|
|
"fmt"
|
|
|
"git.i2edu.net/i2/i2-bill-api/internal/svc"
|
|
|
"git.i2edu.net/i2/i2-bill-api/internal/types"
|
|
|
+ "git.i2edu.net/i2/i2-bill-api/internal/utils"
|
|
|
"git.i2edu.net/i2/i2-bill-api/model"
|
|
|
"git.i2edu.net/i2/i2-bill-erp/transform"
|
|
|
"strings"
|
|
|
@@ -59,6 +60,13 @@ func (l *GetUserLogic) GetUser() (*types.InfoResponse, error) {
|
|
|
logx.Error(err)
|
|
|
return nil, err
|
|
|
}
|
|
|
+ var idPath, namePath string
|
|
|
+ if utils.TreePath(cityNodes, cityId, &idPath, &namePath) {
|
|
|
+ cityNames := strings.Split(namePath, ",")
|
|
|
+ if len(cityNames) > 0 {
|
|
|
+ resp.CityName = cityNames[len(cityNames)-1]
|
|
|
+ }
|
|
|
+ }
|
|
|
for _, node := range cityNodes {
|
|
|
if node.Id == cityId {
|
|
|
resp.CityName = node.Text
|