Commit f0be74f1 by lra

阿里大鱼短信接口修改

parent ce259270
......@@ -48,7 +48,15 @@ module Sms
params = defaultParams(numbers, content)
params = params.merge(sign: generate_sign(params))
data = request_api(params)
result = JSON.parse(data.body)
data = JSON.parse(data.body)
puts "data ************* #{data}"
if data['alibaba_aliqin_fc_sms_num_send_response']['result']['success']
data
else
false
end
rescue => e
false
end
def request_api(params)
......
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