信件內容及網頁內容更新
This commit is contained in:
@ -346,44 +346,42 @@ class EventImprovedHealthCrudController extends CrudController
|
||||
switch($entry->check_state) {
|
||||
case '2': //過通
|
||||
try {
|
||||
Mail::to($entry->email)->send(new EventNotifyMail([
|
||||
"title" => "健康達標GO 大獎汽車不是夢 審核通過!",
|
||||
"body" => "恭喜您審核通過!"
|
||||
."\n\n登記資料:"
|
||||
."\n流水號: B-".str_pad($entry->id, 6, '0', STR_PAD_LEFT)
|
||||
."\n疾病類別:".$diseaseTypes[$entry->disease_type]
|
||||
Mail::to($entry->email)->send(new EventNotifyMail(
|
||||
'桃園市政府衛生局114年桃園市健康管理計畫「健康達標GO,大獎汽車不是夢」審核通過信件。',
|
||||
[
|
||||
"title" => "健康達標GO,大獎汽車不是夢 審核通過!",
|
||||
"body" => "登記資料:"
|
||||
."\n流水號: A-".str_pad($entry->id, 6, '0', STR_PAD_LEFT)
|
||||
."\n就醫院所:".$entry->hospital_name
|
||||
."\n姓名:".$entry->name
|
||||
."\n身份證字號:".substr($entry->twid,0,2)."xxxx".substr($entry->twid,-4)
|
||||
."\n行動電話:".$entry->phone
|
||||
."\n電子信箱:".$entry->email
|
||||
."\n收件地址:".$entry->address
|
||||
."\n抽獎說明:本活動將於10月抽出得獎名單並公告於「<a href=\"". route('news') ."\" target=\"_blank\">活動網站/最新消息</a>」及「<a href=\"https://dph.tycg.gov.tw/News.aspx?n=4219&sms=10121\" target=\"_blank\">桃園市政府衛生局網站/訊息公告/最新消息</a>」。"
|
||||
|
||||
."\n姓名:".(mb_strlen($entry->name) > 2 ? mb_substr($entry->name,0,1)."*".mb_substr($entry->name,-1) : mb_substr($entry->name,0,1)."*")
|
||||
."\n身份證字號:".substr($entry->twid,0,2)."****".substr($entry->twid,-4)
|
||||
."\n電話號碼:".substr($entry->phone,0,2)."****".substr($entry->phone,-4)
|
||||
."\n\n抽獎說明:"
|
||||
."\n本活動將於10月抽出得獎名單並公告於「<a href=\"". route('news') ."\" target=\"_blank\">活動網站/最新消息</a>」及「<a href=\"https://dph.tycg.gov.tw/News.aspx?n=4219&sms=10121\" target=\"_blank\">桃園市政府衛生局網站/訊息公告/最新消息</a>」。"
|
||||
,
|
||||
]));
|
||||
]));
|
||||
|
||||
} catch (Exception $ex) {
|
||||
|
||||
}
|
||||
break;
|
||||
case '3': //未通過
|
||||
try {
|
||||
Mail::to($entry->email)->send(new EventNotifyMail([
|
||||
"title" => "健康達標GO 大獎汽車不是夢 審核未通過!",
|
||||
"body" => "抱歉,您的審核未通過!"
|
||||
."\n請依以下理由重新上活動網站登記"
|
||||
Mail::to($entry->email)->send(new EventNotifyMail(
|
||||
'桃園市政府衛生局114年桃園市健康管理計畫「健康達標GO,大獎汽車不是夢」審核未通過信件。',
|
||||
[
|
||||
"title" => "健康達標GO,大獎汽車不是夢 審核未通過!",
|
||||
"body" => "抱歉,您的審核未通過!請依以下理由重新上活動網站登記。"
|
||||
."\n理由:".$entry->check_reson
|
||||
."\n\n登記資料:"
|
||||
."\n流水號: B-".str_pad($entry->id, 6, '0', STR_PAD_LEFT)
|
||||
."\n疾病類別:".$diseaseTypes[$entry->disease_type]
|
||||
."\n流水號: A-".str_pad($entry->id, 6, '0', STR_PAD_LEFT)
|
||||
."\n就醫院所:".$entry->hospital_name
|
||||
."\n姓名:".$entry->name
|
||||
."\n身份證字號:".substr($entry->twid,0,2)."xxxx".substr($entry->twid,-4)
|
||||
."\n行動電話:".$entry->phone
|
||||
."\n電子信箱:".$entry->email
|
||||
."\n收件地址:".$entry->address
|
||||
."\n姓名:".(mb_strlen($entry->name) > 2 ? mb_substr($entry->name,0,1)."*".mb_substr($entry->name,-1) : mb_substr($entry->name,0,1)."*")
|
||||
."\n身份證字號:".substr($entry->twid,0,2)."****".substr($entry->twid,-4)
|
||||
."\n電話號碼:".substr($entry->phone,0,2)."****".substr($entry->phone,-4)
|
||||
,
|
||||
]));
|
||||
]));
|
||||
|
||||
} catch (Exception $ex) {
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user