hxp
2025-06-09 6c3f6335c70859ded94a1ad8d218acb0ac34239c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
include_once "/Common/Logging.php";
include_once "/Account/User.php";
include_once "/db/DBOper.php";
include_once "/language/lang.php";
 
// bug反馈更新邮件回复
\Logging\CreateLogging("BugReportUpdReply.php");
\Logging\LogInfo("_Post:" . print_r($_POST, true));
 
$Permission = \User\Permission::P_BugReport;
 
$alertMsg = "";
$spid = $_SESSION['spid'];
$UserAccount = $_SESSION['UserAccount'];
$user = new \User\User($UserAccount);
if (!$user->HavePermission($Permission)) {
    exit;
}
 
$repID = $_POST["repID"];
\Logging\LogInfo("repID:" . $repID);
$find = array("_id" => new \MongoId($repID));
 
$updArray = array(
    "ReplyMail" => $_POST["mailInfo"],
);
if (\DBOper\Update("EventReportBug", $find, $updArray)) {
    echo "OK";
} else {
    echo "Fail";
}