|
@@ -344,8 +344,8 @@ func AddUserCompanyData(centerCompany *ModuleCompanytData, newcompany *models.Co |
|
@@ -344,8 +344,8 @@ func AddUserCompanyData(centerCompany *ModuleCompanytData, newcompany *models.Co |
344
|
uc = &models.UserCompany{
|
344
|
uc = &models.UserCompany{
|
345
|
UserId: newuser.Id,
|
345
|
UserId: newuser.Id,
|
346
|
CompanyId: newcompany.Id,
|
346
|
CompanyId: newcompany.Id,
|
347
|
- Enable: models.USERCOMPANY_ENABLE_YES,
|
|
|
348
|
- ChargeStatus: models.USERCOMPANY_CHARGE_YES,
|
347
|
+ Enable: adminUserData.Status,
|
|
|
348
|
+ ChargeStatus: adminUserData.ChargeStatus,
|
349
|
Id: adminUserData.Id,
|
349
|
Id: adminUserData.Id,
|
350
|
NickName: adminUserData.Name,
|
350
|
NickName: adminUserData.Name,
|
351
|
OpenId: adminUserData.OpenId,
|
351
|
OpenId: adminUserData.OpenId,
|
|
@@ -359,8 +359,8 @@ func AddUserCompanyData(centerCompany *ModuleCompanytData, newcompany *models.Co |
|
@@ -359,8 +359,8 @@ func AddUserCompanyData(centerCompany *ModuleCompanytData, newcompany *models.Co |
359
|
IsBusiness: adminUserData.IsBusiness,
|
359
|
IsBusiness: adminUserData.IsBusiness,
|
360
|
Avatar: adminUserData.Avatar,
|
360
|
Avatar: adminUserData.Avatar,
|
361
|
Remarks: adminUserData.Remarks,
|
361
|
Remarks: adminUserData.Remarks,
|
362
|
- // AdminType: adminUserData.AdminType,
|
|
|
363
|
- ExtraText: adminUserData.ExtraText,
|
362
|
+ AdminType: adminUserData.AdminType,
|
|
|
363
|
+ ExtraText: adminUserData.ExtraText,
|
364
|
}
|
364
|
}
|
365
|
_, err = models.AddUserCompany(uc, o)
|
365
|
_, err = models.AddUserCompany(uc, o)
|
366
|
if err != nil {
|
366
|
if err != nil {
|