作者 tangxvhui

提交

@@ -56,7 +56,6 @@ func (m ModuleCompanytData) DoAction(code string, jsondata []byte) error { @@ -56,7 +56,6 @@ func (m ModuleCompanytData) DoAction(code string, jsondata []byte) error {
56 return fmt.Errorf("数据解析失败:%s", err) 56 return fmt.Errorf("数据解析失败:%s", err)
57 } 57 }
58 return UpdateCompanyData(data) 58 return UpdateCompanyData(data)
59 - return nil  
60 case "setCompanyCharge": 59 case "setCompanyCharge":
61 var ( 60 var (
62 data CompanyCharge 61 data CompanyCharge
@@ -120,7 +119,7 @@ func UpdateCompanyData(data ModuleCompanytData) error { @@ -120,7 +119,7 @@ func UpdateCompanyData(data ModuleCompanytData) error {
120 companyBaseData := data.Company 119 companyBaseData := data.Company
121 companyData, err = models.GetCompanyByUCenter(companyBaseData.AdminCompanyId) 120 companyData, err = models.GetCompanyByUCenter(companyBaseData.AdminCompanyId)
122 if err != nil { 121 if err != nil {
123 - log.Error("获取企业数据失败,user_center_id:%d ,err:%s", data.Id, err) 122 + log.Error("获取企业数据失败,user_center_id:%d ,err:%s", companyBaseData.AdminCompanyId, err)
124 return errors.New("获取企业数据失败") 123 return errors.New("获取企业数据失败")
125 } 124 }
126 companyData.Logo = companyBaseData.Logo 125 companyData.Logo = companyBaseData.Logo