Files

19 lines
576 B
PHP
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace service\MessageService\Email;
use service\Exception\Exception;
class EmailTemplate {
const verifyCode = '【CodeFever Community】您好本次的邮箱验证码是 %s , 验证码五分钟内有效, 请及时填写。';
public static function verifyCode (string $code) {
return sprintf(self::verifyCode, $code);
}
const notify = '【CodeFever Community】%s <br/> <a href="%s">%s</a>';
public static function notify (array $data) {
return sprintf(self::notify, $data['mailBody'], $data['url'], $data['url']);
}
}