瀏覽代碼

proper display of user's information.

master
Patrick Peng Sun 8 年之前
父節點
當前提交
321b40e33f
共有 1 個文件被更改,包括 11 次插入13 次删除
  1. +11
    -13
      procSearchMember.go

+ 11
- 13
procSearchMember.go 查看文件

return return
} }
for _, v := range search { 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 != "" { 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) ss.refreshExpire(600)
} }

Loading…
取消
儲存