...
|
...
|
@@ -344,8 +344,8 @@ func AddUserCompanyData(centerCompany *ModuleCompanytData, newcompany *models.Co |
|
|
uc = &models.UserCompany{
|
|
|
UserId: newuser.Id,
|
|
|
CompanyId: newcompany.Id,
|
|
|
Enable: models.USERCOMPANY_ENABLE_YES,
|
|
|
ChargeStatus: models.USERCOMPANY_CHARGE_YES,
|
|
|
Enable: adminUserData.Status,
|
|
|
ChargeStatus: adminUserData.ChargeStatus,
|
|
|
Id: adminUserData.Id,
|
|
|
NickName: adminUserData.Name,
|
|
|
OpenId: adminUserData.OpenId,
|
...
|
...
|
@@ -359,8 +359,8 @@ func AddUserCompanyData(centerCompany *ModuleCompanytData, newcompany *models.Co |
|
|
IsBusiness: adminUserData.IsBusiness,
|
|
|
Avatar: adminUserData.Avatar,
|
|
|
Remarks: adminUserData.Remarks,
|
|
|
// AdminType: adminUserData.AdminType,
|
|
|
ExtraText: adminUserData.ExtraText,
|
|
|
AdminType: adminUserData.AdminType,
|
|
|
ExtraText: adminUserData.ExtraText,
|
|
|
}
|
|
|
_, err = models.AddUserCompany(uc, o)
|
|
|
if err != nil {
|
...
|
...
|
|