Commit b5292d9e by mingyuan

import result

parent 44d7a558
...@@ -4,7 +4,11 @@ module Dingtalk::Api ...@@ -4,7 +4,11 @@ module Dingtalk::Api
def getuserinfo(code) def getuserinfo(code)
r = post 'topapi/v2/user/getuserinfo', code: code r = post 'topapi/v2/user/getuserinfo', code: code
r['result'] if r.is_a? Hash
r['result']
else
r
end
end end
end 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