<?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";
|
}
|