35 lines
659 B
PHP
35 lines
659 B
PHP
<?php
|
|
/**
|
|
* The file was created by Assimon.
|
|
*
|
|
* @author assimon<ashang@utf8.hk>
|
|
* @copyright assimon<ashang@utf8.hk>
|
|
* @link http://utf8.hk/
|
|
*/
|
|
|
|
namespace App\Service;
|
|
|
|
|
|
use App\Models\Emailtpl;
|
|
|
|
class EmailtplService
|
|
{
|
|
|
|
/**
|
|
* 通过邮件标识获得邮件模板
|
|
*
|
|
* @param string $token 邮件标识
|
|
* @return Emailtpl
|
|
*
|
|
* @author assimon<ashang@utf8.hk>
|
|
* @copyright assimon<ashang@utf8.hk>
|
|
* @link http://utf8.hk/
|
|
*/
|
|
public function detailByToken(string $token): Emailtpl
|
|
{
|
|
$tpl = Emailtpl::query()->where('tpl_token', $token)->first();
|
|
return $tpl;
|
|
}
|
|
|
|
}
|