作者 tangxvhui

提交

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