|
@@ -252,9 +252,8 @@ func delPower(id int64) {
|
|
|
if data != nil && len(*data) > 0 {
|
|
|
waitEmpowerId := common.Int64All((*data)["wait_empower_id"])
|
|
|
entUserId := common.IntAll((*data)["ent_user_id"])
|
|
|
- identity := getPositionId(entUserId)
|
|
|
- ResourcePowerHandle(identity, waitEmpowerId, -1)
|
|
|
JyMysql.UpdateOrDeleteBySql(`update `+EntnicheWaitEmpower+` set use_count = use_count - 1 where id = ? and use_count > 0`, waitEmpowerId)
|
|
|
+ identity := getPositionId(entUserId)
|
|
|
eOData := JyMysql.FindOne(EntnicheOrder, map[string]interface{}{"wait_empower_id": waitEmpowerId}, "", "")
|
|
|
if eOData != nil && len(*eOData) > 0 {
|
|
|
orderId := common.Int64All((*eOData)["order_id"])
|
|
@@ -283,6 +282,7 @@ func delPower(id int64) {
|
|
|
RedisDel(posititonIdStr)
|
|
|
}
|
|
|
}
|
|
|
+ ResourcePowerHandle(identity, waitEmpowerId, -1)
|
|
|
}
|
|
|
}
|
|
|
|