提交 7c48026c authored 作者: Buklov Boris's avatar Buklov Boris 提交者: root

fix say dollar

上级 f506e19e
...@@ -290,14 +290,14 @@ static switch_status_t ru_say_money(switch_say_file_handle_t *sh, char *tosay, s ...@@ -290,14 +290,14 @@ static switch_status_t ru_say_money(switch_say_file_handle_t *sh, char *tosay, s
} }
if (iruble<5) { if (iruble<5) {
if ((irubles>10)&&(irubles<15)) { if ((irubles>10)&&(irubles<15)) {
switch_say_file(sh, "currency/%s",matrix_currency->first[5]); switch_say_file(sh, "currency/%s",matrix_currency[say_opt->currency].first[5]);
} }
else { else {
switch_say_file(sh, "currency/%s",matrix_currency->first[iruble]); switch_say_file(sh, "currency/%s",matrix_currency[say_opt->currency].first[iruble]);
} }
} }
else { else {
switch_say_file(sh, "currency/%s",matrix_currency->first[5]); switch_say_file(sh, "currency/%s",matrix_currency[say_opt->currency].first[5]);
} }
...@@ -311,14 +311,14 @@ static switch_status_t ru_say_money(switch_say_file_handle_t *sh, char *tosay, s ...@@ -311,14 +311,14 @@ static switch_status_t ru_say_money(switch_say_file_handle_t *sh, char *tosay, s
if (ikopeck<5) { if (ikopeck<5) {
if ((ikopecks>10)&&(ikopecks<15)) { if ((ikopecks>10)&&(ikopecks<15)) {
switch_say_file(sh, "currency/%s",matrix_currency->second[5]); switch_say_file(sh, "currency/%s",matrix_currency[say_opt->currency].second[5]);
} }
else { else {
switch_say_file(sh, "currency/%s",matrix_currency->second[ikopeck]); switch_say_file(sh, "currency/%s",matrix_currency[say_opt->currency].second[ikopeck]);
} }
} }
else { else {
switch_say_file(sh, "currency/%s",matrix_currency->second[5]); switch_say_file(sh, "currency/%s",matrix_currency[say_opt->currency].second[5]);
} }
...@@ -718,7 +718,7 @@ static switch_status_t run_callback(switch_new_say_callback_ru_t say_cb, char *t ...@@ -718,7 +718,7 @@ static switch_status_t run_callback(switch_new_say_callback_ru_t say_cb, char *t
say_opt.currency=(currency_t)1; say_opt.currency=(currency_t)1;
} }
} }
//switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "ru_say!!! %s! say_opt.gender=%d say_opt.cases=%d\n", tosay,say_opt.gender,say_opt.cases); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "ru_say!!! %s! say_opt.gender=%d say_opt.cases=%d\n", tosay,say_opt.gender,say_opt.cases);
} }
switch_say_file_handle_create(&sh, say_args->ext, &var_event); switch_say_file_handle_create(&sh, say_args->ext, &var_event);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论