mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 04:20:49 +08:00
新增候选提醒到管理组
1. 新增候选提醒到管理组消息 2. 修改发送私信的实现为message::add()
This commit is contained in:
@@ -481,7 +481,13 @@ if ($is_offer)
|
||||
//$some_variable .= "(0, $row[userid], '" . date("Y-m-d H:i:s") . "', " . sqlesc($pn_msg) . ")";
|
||||
|
||||
//=== use this if you DO have subject in your PMs
|
||||
sql_query("INSERT INTO messages (sender, subject, receiver, added, msg) VALUES (0, ".sqlesc($subject).", {$row['userid']}, ".sqlesc(date("Y-m-d H:i:s")).", " . sqlesc($pn_msg) . ")") or sqlerr(__FILE__, __LINE__);
|
||||
\App\Models\Message::add([
|
||||
'sender' => 0,
|
||||
'subject' => $subject,
|
||||
'receiver' => $row['userid'],
|
||||
'added' => now(),
|
||||
'msg' => $pn_msg,
|
||||
]);
|
||||
//=== use this if you do NOT have subject in your PMs
|
||||
//sql_query("INSERT INTO messages (sender, receiver, added, msg) VALUES ".$some_variable."") or sqlerr(__FILE__, __LINE__);
|
||||
//===end
|
||||
|
||||
Reference in New Issue
Block a user