|
|
|
@@ -79,22 +79,20 @@ func (m *procSearchMemberDef) displayUserInfo(ss *openIDSessionData, name string |
|
|
|
return |
|
|
|
} |
|
|
|
for _, v := range search { |
|
|
|
email := "无" |
|
|
|
if v.EmailAddress != "" { |
|
|
|
email = v.EmailAddress |
|
|
|
} |
|
|
|
|
|
|
|
phone := "无" |
|
|
|
if v.PhoneNumber != "" { |
|
|
|
email = v.PhoneNumber |
|
|
|
} |
|
|
|
articles := []sendNewsArticle{} |
|
|
|
//main photo |
|
|
|
articles = append(articles, v.getBasicUserInfoPhoto()) |
|
|
|
//email |
|
|
|
articles = append(articles, v.getBasicUserInfoEmail()) |
|
|
|
//phone |
|
|
|
articles = append(articles, v.getBasicUserInfoPhone()) |
|
|
|
kfSendNews(ss.OpenID, "总标题", "总描述", articles) |
|
|
|
|
|
|
|
description := "无" |
|
|
|
if v.Description != "" { |
|
|
|
description = v.Description |
|
|
|
msg := fmt.Sprintf("%s简介:%s\n", name, v.Description) |
|
|
|
kfSendTxtAs(ss.OpenID, msg, "孙鹏") |
|
|
|
} |
|
|
|
msg := fmt.Sprintf("%s\n电邮:%s\n电话:%s\n介绍:%s\n", name, email, phone, description) |
|
|
|
kfSendTxtAs(ss.OpenID, msg, "孙鹏") |
|
|
|
|
|
|
|
} |
|
|
|
ss.refreshExpire(600) |
|
|
|
} |