|
@@ -31,12 +31,14 @@ func UserInfo(header *protocol.RequestHeader, request *protocol.UserInfoRequest) |
|
@@ -31,12 +31,14 @@ func UserInfo(header *protocol.RequestHeader, request *protocol.UserInfoRequest) |
31
|
Name: "福州素天下有限公司",
|
31
|
Name: "福州素天下有限公司",
|
32
|
},
|
32
|
},
|
33
|
JoinWay: partnerInfo.PartnerCategoryInfo(),
|
33
|
JoinWay: partnerInfo.PartnerCategoryInfo(),
|
34
|
- District: partnerInfo.RegionInfo,
|
34
|
+ District: map[string]interface{}{"id": partnerInfo.RegionInfo.RegionId, "name": partnerInfo.RegionInfo.RegionName},
|
35
|
SerialNo: partnerInfo.Id,
|
35
|
SerialNo: partnerInfo.Id,
|
36
|
CooperateTime: partnerInfo.CooperateTime.Unix() * 1000,
|
36
|
CooperateTime: partnerInfo.CooperateTime.Unix() * 1000,
|
37
|
}
|
37
|
}
|
38
|
if len(partnerInfo.Salesman) > 0 {
|
38
|
if len(partnerInfo.Salesman) > 0 {
|
39
|
- rsp.User.Salesman = partnerInfo.Salesman[0]
|
39
|
+ rsp.User.Salesman = map[string]interface{}{"uname": partnerInfo.Salesman[0].Name, "phone": partnerInfo.Salesman[0].Telephone}
|
|
|
40
|
+ } else {
|
|
|
41
|
+ rsp.User.Salesman = map[string]interface{}{}
|
40
|
}
|
42
|
}
|
41
|
return
|
43
|
return
|
42
|
}
|
44
|
}
|