function sendSMS($mobile, $content) { $sms_hook = modC('SMS_HOOK', 'none', 'USERCONFIG'); $sms_hook = check_sms_hook_is_exist($sms_hook); if ($sms_hook == 'none') { return "管理员还未配置短信服务商信息,请联系管理员"; } $name = get_addon_class($sms_hook); $class = new $name(); return $class->sendSms($mobile, $content); }
function sendSMS($mobile, $content) { $sms_hook = modC('SMS_HOOK', 'none', 'USERCONFIG'); $sms_hook = check_sms_hook_is_exist($sms_hook); if ($sms_hook == 'none') { return L('_THE_ADMINISTRATOR_HAS_NOT_CONFIGURED_THE_SMS_SERVICE_PROVIDER_INFORMATION_PLEASE_CONTACT_THE_ADMINISTRATOR_'); } $name = get_addon_class($sms_hook); $class = new $name(); return $class->sendSms($mobile, $content); }