|
@@ -75,7 +75,7 @@ func (b *base_power) OpenPower(appid, goods_code string, user_id, ent_id int64,
|
|
|
}
|
|
|
power_values = append(power_values, v.Limit_strategy, v.Strategy_count, 1, NowFormat(Date_Full_Layout))
|
|
|
//
|
|
|
- if v.Power_type == 2 && v.Power_count == -1 {
|
|
|
+ if v.Power_type == 2 && v.Power_count == -1 && Base_ent_empower.Count(appid, v.Function_code, ent_id) == 0 {
|
|
|
empower_values = append(empower_values, appid, ent_id, 0, v.Function_code, NowFormat(Date_Full_Layout))
|
|
|
}
|
|
|
}
|