瀏覽代碼

bugfix avatarName not correct.

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

+ 2
- 1
crmLead.go 查看文件

@@ -16,7 +16,7 @@ type crmdLead struct {
//Name string `json:"name,omitempty"`
//Deleted bool `json:"deleted,omitempty"`
AvatarID string `json:"avatarId,omitempty"`
AvatarName string `json:"avatarName,omotempty"`
AvatarName string `json:"avatarName,omitempty"`
SalutationName string `json:"salutationName,omitempty"`
FirstName string `json:"firstName,omitempty"`
LastName string `json:"lastName,omitempty"`
@@ -191,6 +191,7 @@ func (m crmdLead) crmLeadConvert2Contact() (newContact crmdContact) {

func (m crmdLead) Save() (newlead crmdLead, err error) {
jsonB, err := json.Marshal(m)
log.Println(string(jsonB))
if err != nil {
return
}

Loading…
取消
儲存