|
@@ -416,14 +416,6 @@ func (this *VerifyTokenController) _createAppIfNeeded(adminUserID int, orgID int
|
416
|
416
|
|
417
|
417
|
// 自动创建所有应用
|
418
|
418
|
didCreateNew := false
|
419
|
|
- if did_patient_manage_create == false {
|
420
|
|
- err := service.CreateOrgApp(adminUserID, orgID, 1, false)
|
421
|
|
- if err != nil {
|
422
|
|
- utils.ErrorLog("自动创建酷医聚客应用失败:%v", err)
|
423
|
|
- return false, &enums.SGJError{Code: enums.ErrorCodeDataException}
|
424
|
|
- }
|
425
|
|
- didCreateNew = true
|
426
|
|
- }
|
427
|
419
|
if did_dialysis_manage_create == false {
|
428
|
420
|
err := service.CreateOrgApp(adminUserID, orgID, 3, false)
|
429
|
421
|
if err != nil {
|
|
@@ -440,6 +432,14 @@ func (this *VerifyTokenController) _createAppIfNeeded(adminUserID int, orgID int
|
440
|
432
|
}
|
441
|
433
|
didCreateNew = true
|
442
|
434
|
}
|
|
435
|
+ if did_patient_manage_create == false {
|
|
436
|
+ err := service.CreateOrgApp(adminUserID, orgID, 1, false)
|
|
437
|
+ if err != nil {
|
|
438
|
+ utils.ErrorLog("自动创建酷医聚客应用失败:%v", err)
|
|
439
|
+ return false, &enums.SGJError{Code: enums.ErrorCodeDataException}
|
|
440
|
+ }
|
|
441
|
+ didCreateNew = true
|
|
442
|
+ }
|
443
|
443
|
if did_mall_manage_create == false {
|
444
|
444
|
err := service.CreateOrgApp(adminUserID, orgID, 5, false)
|
445
|
445
|
if err != nil {
|