|
@@ -95,6 +95,13 @@ func (l *loginAuth) AuthCode(ctx context.Context, phone string, code string) (st
|
|
|
|
|
|
var jobData *gorm_model.YounggeeJob
|
|
var jobData *gorm_model.YounggeeJob
|
|
var accountData *gorm_model.YounggeeSubAccount
|
|
var accountData *gorm_model.YounggeeSubAccount
|
|
|
|
+ accountData.SubAccountId = 0
|
|
|
|
+ accountData.EnterpriseId = "-1"
|
|
|
|
+ jobData.JobName = "-1"
|
|
|
|
+ jobData.WorkshopPermission = "-1"
|
|
|
|
+ jobData.CooperatePermission = "-1"
|
|
|
|
+ jobData.FinancialPermission = "-1"
|
|
|
|
+ jobData.TaskcenterPermission = "-1"
|
|
|
|
|
|
// 若为商家用户
|
|
// 若为商家用户
|
|
if string(userData.Role) == consts.BRole {
|
|
if string(userData.Role) == consts.BRole {
|