no message

This commit is contained in:
hellcat 2025-06-29 17:13:47 +08:00
parent 8e513695c5
commit 2080221cd6
3 changed files with 9 additions and 12 deletions

View File

@ -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';

View File

@ -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) {

View File

@ -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."";
} }