From 6c4492a73f0c57ef2a7676ae1788500c6cfb5235 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 17 二月 2025 15:05:18 +0800
Subject: [PATCH] 10395 【GM版】新渠道游戏GM版本(优化支持按pid取不同key)
---
api/gmgame/send_item.php | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/api/gmgame/send_item.php b/api/gmgame/send_item.php
index 5a34516..2d27986 100644
--- a/api/gmgame/send_item.php
+++ b/api/gmgame/send_item.php
@@ -10,7 +10,8 @@
// https://www.eolink.com/share/inside/Yk3vUm/api/844628/detail/3309978
\Logging\CreateLogging("gmgame.send_item.php");
-\Logging\LogInfo("_POST: " . print_r($_POST, true));
+$pid = $_GET["pid"];
+\Logging\LogInfo("_POST: " . print_r($_POST, true) . " pid:" . $pid);
$role_id = $_POST["role_id"]; // 瑙掕壊ID
$server_id = $_POST["server_id"]; // 娓告垙鍖烘湇ID
@@ -23,7 +24,7 @@
if (
!\CfgReader\ReadConfig()
- || !\CfgReader\GetConfigData("gmgame", "Md5_Key", $Md5_Key)
+ || !\CfgReader\GetConfigData("gmgame", "Md5_" . $pid . "_Key", $Md5_Key)
|| !\CfgReader\GetConfigData("gmgame", "Senditem_mail_title", $title)
|| !\CfgReader\GetConfigData("gmgame", "Senditem_mail_content", $content)
) {
--
Gitblit v1.8.0