Update api.twilio.php

This commit is contained in:
Namhyeon Go 2019-10-07 19:09:24 +09:00 committed by GitHub
parent 658e2b6a5e
commit fb62d9f165
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,8 @@ $country = get_requested_value("country", array("_JSON", "_ALL"));
$is_domestic = array_key_equals("lguplus_country", $config, $country);
if(!$is_domestic) {
$to = sprintf("+%s%s", $country, $to);
} else {
$to = sprintf("%s%s", (substr($to, 0, 1) == "0" ? "" : "0"), $to);
}
$response = false;