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