no message
This commit is contained in:
parent
8e513695c5
commit
2080221cd6
@ -90,8 +90,8 @@ $oHttp->aData['message']['text'] = '\/coupon#del 11';
|
|||||||
$oHttp->aData['message']['text'] = '\/user#limit 10';
|
$oHttp->aData['message']['text'] = '\/user#limit 10';
|
||||||
|
|
||||||
$oHttp->aData['message']['text'] = '/mail#tmp';
|
$oHttp->aData['message']['text'] = '/mail#tmp';
|
||||||
|
//
|
||||||
$oHttp->aData['message']['text'] = '/buchang#buchang 2';
|
//$oHttp->aData['message']['text'] = '/buchang#buchang 2';
|
||||||
|
|
||||||
//$oHttp->aData['message']['text'] = '\/coupon#findById 3';
|
//$oHttp->aData['message']['text'] = '\/coupon#findById 3';
|
||||||
|
|
||||||
|
|||||||
@ -21,8 +21,8 @@ final class Buchang
|
|||||||
|
|
||||||
$sValue = Tools::toGB($sValue);
|
$sValue = Tools::toGB($sValue);
|
||||||
|
|
||||||
// $oUser = User::where("class", ">=", $sType)->get();
|
$oUser = User::where("class", ">=", $sType)->get();
|
||||||
$oUser = User::where("email", "yuejiqi@tuta.io")->get();
|
// $oUser = User::where("email", "yuejiqi@tuta.io")->get();
|
||||||
|
|
||||||
$i = 0;
|
$i = 0;
|
||||||
foreach ($oUser as $oUserRow) {
|
foreach ($oUser as $oUserRow) {
|
||||||
|
|||||||
@ -34,7 +34,7 @@ final class Mail
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
$text = "<br>主域名fuuu.cloud被封禁,已更换为fuuuu.cloud(多一个u)。";
|
$text = "<br>原主域名fuuu.cloud被封禁,已更换为fuuuu.cloud(多了一个u)。<br>补偿有套餐用户30g流量。";
|
||||||
|
|
||||||
$content = strip_tags(
|
$content = strip_tags(
|
||||||
str_replace(
|
str_replace(
|
||||||
@ -45,11 +45,10 @@ final class Mail
|
|||||||
['br', 'a', 'strong']
|
['br', 'a', 'strong']
|
||||||
);
|
);
|
||||||
|
|
||||||
// $users = (new User())->where('class', '>=', 0)
|
// $users = (new User())->where('class', '>=', 0)->get();
|
||||||
// ->get();
|
|
||||||
|
|
||||||
$users = (new User())->where("email", "yuejiqi@tuta.io")->get();
|
$users = (new User())->where("email", "yuejiqi@tuta.io")->get();
|
||||||
|
|
||||||
|
$i = 0;
|
||||||
foreach ($users as $user) {
|
foreach ($users as $user) {
|
||||||
(new EmailQueue())->add_bulk(
|
(new EmailQueue())->add_bulk(
|
||||||
$user->email,
|
$user->email,
|
||||||
@ -60,13 +59,11 @@ final class Mail
|
|||||||
'text' => $content,
|
'text' => $content,
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
$i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return "应该发送成功了";
|
return "邮件队列添加".$i."条";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user