Skip to content

Commit 05f27a9

Browse files
LubyRuffyLubyRuffy
LubyRuffy
authored and
LubyRuffy
committed
修改错误
1 parent 8dc556b commit 05f27a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/workers/module/webdb2_class.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def insert_host_to_error_table(host, reason)
236236
end
237237

238238
def add_user_points(userid, category, point)
239-
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}')"
239+
sql = "insert into pointcrons (user_id, category, point, created_at) values(#{userid.to_i}, '#{Mysql2::Client.escape(category)}', #{point.to_i}, 'Now()')"
240240
#puts sql
241241
db_exec(@@mysql, sql)
242242
end

0 commit comments

Comments
 (0)