|
@@ -147,6 +147,8 @@ func ReEmpower(appid, function_code string, ent_id int64, ent_user_id []int64) (
|
|
|
return 0, errors.New("无效的参数ent_id")
|
|
|
} else if len(ent_user_id) == 0 {
|
|
|
return 0, errors.New("无效的参数ent_user_id")
|
|
|
+ } else if !Base_ent_wait_empower.CheckFunctionCode(appid, function_code, ent_id) {
|
|
|
+ return 0, errors.New("无效的参数function_code")
|
|
|
}
|
|
|
bewes := Base_ent_wait_empower.WaitEmpowers(appid, function_code, ent_id)
|
|
|
if bewes == nil {
|
|
@@ -186,6 +188,8 @@ func Empower(appid, function_code string, ent_id int64, ent_user_id []int64) (in
|
|
|
return 0, errors.New("无效的参数ent_id")
|
|
|
} else if len(ent_user_id) == 0 {
|
|
|
return 0, errors.New("无效的参数ent_user_id")
|
|
|
+ } else if !Base_ent_wait_empower.CheckFunctionCode(appid, function_code, ent_id) {
|
|
|
+ return 0, errors.New("无效的参数function_code")
|
|
|
}
|
|
|
if Base_ent_empower.Empower(appid, function_code, ent_id, ent_user_id) {
|
|
|
return 1, nil
|
|
@@ -210,6 +214,8 @@ func CancelEmpower(appid, function_code string, ent_id int64, ent_user_id []int6
|
|
|
return 0, errors.New("无效的参数ent_id")
|
|
|
} else if len(ent_user_id) == 0 {
|
|
|
return 0, errors.New("无效的参数ent_user_id")
|
|
|
+ } else if !Base_ent_wait_empower.CheckFunctionCode(appid, function_code, ent_id) {
|
|
|
+ return 0, errors.New("无效的参数function_code")
|
|
|
}
|
|
|
if Base_ent_empower.CancelEmpower(appid, function_code, ent_id, ent_user_id) {
|
|
|
return 1, nil
|