Commit f07a4b29 by lanrion

refactor result_handler.rb

parent b8c80fa2
......@@ -5,7 +5,7 @@ module WeixinAuthorize
class ResultHandler
attr_accessor :code, :cn_msg, :en_msg, :result
def initialize(code=nil, en_msg=nil, result={})
def initialize(code, en_msg, result={})
@code = code || 0
@en_msg = en_msg || "ok"
@cn_msg = GLOBAL_CODES[@code.to_i]
......
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