Skip to content

Commit

Permalink
修改错误
Browse files Browse the repository at this point in the history
  • Loading branch information
LubyRuffy authored and LubyRuffy committed Dec 10, 2014
1 parent 8dc556b commit 05f27a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/workers/module/webdb2_class.rb
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def insert_host_to_error_table(host, reason)
end

def add_user_points(userid, category, point)
sql = "insert into pointcrons (user_id, category, point, created_at) values(#{userid.to_i}, '#{Mysql2::Client.escape(category)}', #{point.to_i}, '#{Time.now.to_s}')"
sql = "insert into pointcrons (user_id, category, point, created_at) values(#{userid.to_i}, '#{Mysql2::Client.escape(category)}', #{point.to_i}, 'Now()')"
#puts sql
db_exec(@@mysql, sql)
end
Expand Down

0 comments on commit 05f27a9

Please sign in to comment.