Commit d2d12a08 by lanrion

refactor result_handler.rb

parent 91da6be8
......@@ -8,7 +8,7 @@ module WeixinAuthorize
def initialize(code=nil, en_msg=nil, result={})
@code = code || 0
@en_msg = en_msg || "ok"
@cn_msg = GLOBAL_CODES[@code]
@cn_msg = GLOBAL_CODES[@code.to_i]
@result = package_result(result)
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment