|
@@ -327,6 +327,7 @@ func GetAllocation(proportion1, proportion3 float64, deptCount1, deptCount3 int6
|
|
|
cfg.AllocationTime = creatorTime
|
|
|
common.WriteSysConfig(&cfg)
|
|
|
log.Println("新增计算比例", cfg.AllocationRatio)
|
|
|
+ return administrators1
|
|
|
} else {
|
|
|
if nowAllocationRatio == cfg.AllocationRatio {
|
|
|
//重新计算
|
|
@@ -334,6 +335,7 @@ func GetAllocation(proportion1, proportion3 float64, deptCount1, deptCount3 int6
|
|
|
cfg.AllocationTime = creatorTime
|
|
|
common.WriteSysConfig(&cfg)
|
|
|
}
|
|
|
+ return administrators1
|
|
|
}
|
|
|
if nowAllocationRatio > cfg.AllocationRatio {
|
|
|
return administrators3
|