Commit 4d46899c by lra

阿里 语音发送获取语音号码修改

parent f6f90316
......@@ -60,12 +60,12 @@ module Sms
def tts_num_singlecall(numbers, type = 'notify')
called_show_nums = send("called_show_#{type}_nums")
size = called_show_nums.size
last_index = called_show_nums.size - 1
self.custom_params = {
method: 'alibaba.aliqin.fc.tts.num.singlecall',
called_num: numbers.join(','),
called_show_num: called_show_nums[rand(1..size)],
called_show_num: called_show_nums[rand(0..last_index)],
tts_param: param.to_json,
tts_code: template_code
}
......
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