diff --git a/lib/tasks/user_agent.rake b/lib/tasks/user_agent.rake index c240a66f..b80a6fb4 100644 --- a/lib/tasks/user_agent.rake +++ b/lib/tasks/user_agent.rake @@ -31,7 +31,9 @@ namespace :sync do params = params.merge(:action_status => 2) end end - ua.update_attributes(params) + if ua.action_status != 2 # 代理成功报名的成绩不受影响 + ua.update_attributes(params) + end end end end \ No newline at end of file