url = \'http://v.juhe.cn/sms/send\'
res = Net::HTTP.post_form(
URI.parse(url),
key: "1232121",
mobile: phone,
tpl_id: 1304,
tpl_value: \'#code#=\' + captcha,
dtype: \'json\'
)
reuslt = JSON.parse(res.body)
相关文章: