diff --git a/procGetBasicUserInfo.go b/procGetBasicUserInfo.go index acd2333..e59034c 100644 --- a/procGetBasicUserInfo.go +++ b/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 }