|
|
@ -71,8 +71,8 @@ type ChatRecordStruct struct {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
func GetPersonAvatar(personId string, identityId string, serverLocation string) string {
|
|
|
|
func GetPersonAvatar(personId string, identityId string, serverLocation string) string {
|
|
|
|
fileId, extension := GetPersonAvatarFileId(personId, identityId)
|
|
|
|
fileId, extension := GetPersonAvatarFileId(personId, identityId)
|
|
|
|
url:=""
|
|
|
|
url := ""
|
|
|
|
if fileId!="EA0BC5FB-52D9-E232-D3E3-E6C2960B5739"{
|
|
|
|
if fileId != "EA0BC5FB-52D9-E232-D3E3-E6C2960B5739" {
|
|
|
|
url = GetPersonAvatarUrl(fileId, extension, serverLocation)
|
|
|
|
url = GetPersonAvatarUrl(fileId, extension, serverLocation)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return url
|
|
|
|
return url
|
|
|
@ -413,7 +413,6 @@ func GetPersonList(bureauId string, orgId string, queryChild string, bUse string
|
|
|
|
for i := 0; i < len(p.List); i++ {
|
|
|
|
for i := 0; i < len(p.List); i++ {
|
|
|
|
personId := p.List[i].PersonId
|
|
|
|
personId := p.List[i].PersonId
|
|
|
|
identityId := p.List[i].IdentityId
|
|
|
|
identityId := p.List[i].IdentityId
|
|
|
|
fmt.Println(personId)
|
|
|
|
|
|
|
|
p.List[i].AvatarUrl = GetPersonAvatar(personId, identityId, serverLocation)
|
|
|
|
p.List[i].AvatarUrl = GetPersonAvatar(personId, identityId, serverLocation)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
jsonBytes, err := json.Marshal(p)
|
|
|
|
jsonBytes, err := json.Marshal(p)
|
|
|
|