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/query_role.php |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/api/gmgame/query_role.php b/api/gmgame/query_role.php
index 84ec543..5a35bb8 100644
--- a/api/gmgame/query_role.php
+++ b/api/gmgame/query_role.php
@@ -9,7 +9,8 @@
 // https://www.eolink.com/share/inside/Yk3vUm/api/844628/detail/3309842
 
 \Logging\CreateLogging("gmgame.query_role.php");
-\Logging\LogInfo("_POST: " . print_r($_POST, true));
+$pid = $_GET["pid"];
+\Logging\LogInfo("_POST: " . print_r($_POST, true) . " pid:" . $pid);
 
 $user = $_POST["user"]; // {channel}_{user_id},quick娓犻亾ID_sdk璐﹀彿ID
 $server_id = $_POST["server_id"]; // 娓告垙鍖烘湇ID
@@ -20,7 +21,7 @@
 
 if (
     !\CfgReader\ReadConfig()
-    || !\CfgReader\GetConfigData("gmgame", "Md5_Key", $Md5_Key)
+    || !\CfgReader\GetConfigData("gmgame", "Md5_" . $pid . "_Key", $Md5_Key)
 ) {
     retFail("CfgError");
     exit;

--
Gitblit v1.8.0