Commit 571b430f by mingyuan

protect nil

parent f224f57a
......@@ -21,7 +21,7 @@ module Dingtalk::Api
r = post '/mozi/employee/get_by_mobile', **payload
if r.is_a? Hash
if r.is_a?(Hash) && r.dig('content', 'success')
r.dig('content', 'data')
else
r
......
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