Переглянути джерело

using valid information to display profile.

master
Patrick Peng Sun 8 роки тому
джерело
коміт
e634bdf086
1 змінених файлів з 18 додано та 10 видалено
  1. +18
    -10
      procGetBasicUserInfo.go

+ 18
- 10
procGetBasicUserInfo.go Переглянути файл

@@ -59,17 +59,21 @@ func (m *getBasicUserInfoDef) intro(ss *openIDSessionData, in *InWechatMsg) {
func (m crmdLead) getBasicUserInfoPhoto() (ret sendNewsArticle) {
a := sendNewsArticle{}
a.Description = ""
a.PicURL = "https://placehold.it/360x200.jpg"
a.Title = "姓名123"
a.URL = m.avatarCacheURL()
a.PicURL = m.avatarCacheURL()
a.Title = m.Name
a.URL = ""
return a
}

func (m crmdLead) getBasicUserInfoEmail() (ret sendNewsArticle) {
a := sendNewsArticle{}
a.Description = ""
a.PicURL = "https://placehold.it/360x200.jpg"
a.Title = "姓名123"
a.PicURL = ""
if m.EmailAddress == "" {
a.Title = "电邮: 妹有,妹有啊"
} else {
a.Title = "电邮: " + m.EmailAddress
}
a.URL = ""
return a
}
@@ -77,8 +81,12 @@ func (m crmdLead) getBasicUserInfoEmail() (ret sendNewsArticle) {
func (m crmdLead) getBasicUserInfoPhone() (ret sendNewsArticle) {
a := sendNewsArticle{}
a.Description = ""
a.PicURL = "https://placehold.it/360x200.jpg"
a.Title = "姓名123"
a.PicURL = ""
if m.PhoneNumber == "" {
a.Title = "电话: 贼个真妹有啊"
} else {
a.Title = "电话: " + m.PhoneNumber
}
a.URL = ""
return a
}
@@ -86,8 +94,8 @@ func (m crmdLead) getBasicUserInfoPhone() (ret sendNewsArticle) {
func (m crmdLead) getBasicUserInfoEditButton() (ret sendNewsArticle) {
a := sendNewsArticle{}
a.Description = ""
a.PicURL = "https://placehold.it/360x200.jpg"
a.Title = "姓名123"
a.URL = ""
a.PicURL = ""
a.Title = "点击这里编辑您的资料"
a.URL = "https://google.com.au"
return a
}

Завантаження…
Відмінити
Зберегти