Commit 4310c71a authored by JoyJ's avatar JoyJ

add replay id

parent 7b8209ee
...@@ -68,7 +68,7 @@ ygopro.ctos_follow_after("UPDATE_DECK", true, async (buffer, info, client, serve ...@@ -68,7 +68,7 @@ ygopro.ctos_follow_after("UPDATE_DECK", true, async (buffer, info, client, serve
ygopro.stoc_send_chat(client, "注意:【卡组太弱】【有未知卡】并不是有效的举报理由,【额外不全】【构筑错误】才是。", ygopro.constants.COLORS.YELLOW); ygopro.stoc_send_chat(client, "注意:【卡组太弱】【有未知卡】并不是有效的举报理由,【额外不全】【构筑错误】才是。", ygopro.constants.COLORS.YELLOW);
ygopro.stoc_send_chat(client, "编年史QQ群号:838595368。可在群内下载编年史客户端,解锁更多功能。", ygopro.constants.COLORS.YELLOW); ygopro.stoc_send_chat(client, "编年史QQ群号:838595368。可在群内下载编年史客户端,解锁更多功能。", ygopro.constants.COLORS.YELLOW);
ygopro.stoc_send_chat(client, "举报理由请尽量详细写明构筑的哪里有问题,不要只写个【构筑错误】。", ygopro.constants.COLORS.BABYBLUE); ygopro.stoc_send_chat(client, "举报理由请尽量详细写明构筑的哪里有问题,不要只写个【构筑错误】。", ygopro.constants.COLORS.BABYBLUE);
ygopro.stoc_send_chat(client, "有未知卡是因为你没有下载编年史独有卡。请加群下载,举报没用。", ygopro.constants.COLORS.BABYBLUE); ygopro.stoc_send_chat(client, "有未知白板卡是因为你没有下载编年史独有卡。请加群下载,举报没用。", ygopro.constants.COLORS.BABYBLUE);
} }
catch { catch {
var err_msg = "(由于卡组异常,被服务器端自动提交)"; var err_msg = "(由于卡组异常,被服务器端自动提交)";
...@@ -189,10 +189,11 @@ ygopro.ctos_follow_before('CHAT', true, async function(buffer, info, client, ser ...@@ -189,10 +189,11 @@ ygopro.ctos_follow_before('CHAT', true, async function(buffer, info, client, ser
return; return;
} }
if (result.length > 0) { if (result.length > 0) {
ygopro.stoc_send_chat(client, "此卡组已被判定为无需修改,提交失败", ygopro.constants.COLORS.RED); ygopro.stoc_send_chat(client, "此卡组已被人工判定为无需修改,提交失败。", ygopro.constants.COLORS.RED);
ygopro.stoc_send_chat(client, "如有疑问,请记录此字符串,并向编年史群的管理者反馈:"+md5, ygopro.constants.COLORS.RED);
return; return;
} }
msg = (new Date().toString()) + " - 由服务器端提交(提交者:" + client.name + "\r\n\r\n" + msg; msg = (new Date().toString()) + " - 由服务器端提交(提交者:" + client.name + "\r\n录像ID:"+room.cloud_replay_id+"\r\n\r\n" + msg;
sql = "INSERT INTO DCReport VALUES(?,?,?,'')"; sql = "INSERT INTO DCReport VALUES(?,?,?,'')";
sqlParams = [md5, client.ip, msg]; sqlParams = [md5, client.ip, msg];
mysqldb.query(sql, sqlParams, function(err, result) { mysqldb.query(sql, sqlParams, function(err, result) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment