10395 【GM版】新渠道游戏GM版本(修复充值回调路径问题;优化其他接口md5key取值;)
5个文件已修改
23 ■■■■ 已修改文件
InterfaceConfig.php 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
api/gmgame/clear_bag.php 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
api/gmgame/paygmgame.php 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
api/gmgame/query_role.php 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
api/gmgame/send_item.php 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
InterfaceConfig.php
@@ -163,12 +163,14 @@
TestAllow=1
[gmgame]
;pid1
;充值回调pid1
Md5_1_Key=liwhn0emwotwxqxpdwa9jlsuwkvaqa1c
Callback_1_Key=32203045955147303357927711850104
;pid2
;充值回调pid2
Md5_2_Key=liwhn0emwotwxqxpdwa9jlsuwkvaqa1c
Callback_2_Key=32203045955147303357927711850104
;其他接口: 背包清空、角色查询、道具发放
Md5_Key2=51ffa88becf4510921733716c72fc7b4
;发放道具邮件标题
Senditem_mail_title=GM发放道具
Senditem_mail_content=GM通过邮件给您发放了道具,请注意查收!
api/gmgame/clear_bag.php
@@ -10,8 +10,7 @@
// https://www.eolink.com/share/inside/Yk3vUm/api/844628/detail/3309969
\Logging\CreateLogging("gmgame.clear_bag.php");
$pid = $_GET["pid"];
\Logging\LogInfo("_POST: " . print_r($_POST, true) . " pid:" . $pid);
\Logging\LogInfo("_POST: " . print_r($_POST, true));
$role_id = $_POST["role_id"]; // 角色ID
$server_id = $_POST["server_id"]; // 游戏区服ID
@@ -21,7 +20,7 @@
if (
    !\CfgReader\ReadConfig()
    || !\CfgReader\GetConfigData("gmgame", "Md5_" . $pid . "_Key", $Md5_Key)
    || !\CfgReader\GetConfigData("gmgame", "Md5_Key2", $Md5_Key)
) {
    retFail("CfgError");
    exit;
api/gmgame/paygmgame.php
@@ -4,7 +4,7 @@
include_once '/Common/Logging.php';
include_once '/Common/PayOrder.php';
include_once "/ProjComm/CfgReader.php";
include_once "quicksdkAsy.php";
include_once "../quick/quicksdkAsy.php";
header("Content-type: text/html; charset=utf-8");
// https://www.quicksdk.com/doc-15.html
api/gmgame/query_role.php
@@ -9,8 +9,7 @@
// https://www.eolink.com/share/inside/Yk3vUm/api/844628/detail/3309842
\Logging\CreateLogging("gmgame.query_role.php");
$pid = $_GET["pid"];
\Logging\LogInfo("_POST: " . print_r($_POST, true) . " pid:" . $pid);
\Logging\LogInfo("_POST: " . print_r($_POST, true));
$user = $_POST["user"]; // {channel}_{user_id},quick渠道ID_sdk账号ID
$server_id = $_POST["server_id"]; // 游戏区服ID
@@ -21,7 +20,7 @@
if (
    !\CfgReader\ReadConfig()
    || !\CfgReader\GetConfigData("gmgame", "Md5_" . $pid . "_Key", $Md5_Key)
    || !\CfgReader\GetConfigData("gmgame", "Md5_Key2", $Md5_Key)
) {
    retFail("CfgError");
    exit;
api/gmgame/send_item.php
@@ -10,8 +10,7 @@
// https://www.eolink.com/share/inside/Yk3vUm/api/844628/detail/3309978
\Logging\CreateLogging("gmgame.send_item.php");
$pid = $_GET["pid"];
\Logging\LogInfo("_POST: " . print_r($_POST, true) . " pid:" . $pid);
\Logging\LogInfo("_POST: " . print_r($_POST, true));
$role_id = $_POST["role_id"]; // 角色ID
$server_id = $_POST["server_id"]; // 游戏区服ID
@@ -24,7 +23,7 @@
if (
    !\CfgReader\ReadConfig()
    || !\CfgReader\GetConfigData("gmgame", "Md5_" . $pid . "_Key", $Md5_Key)
    || !\CfgReader\GetConfigData("gmgame", "Md5_Key2", $Md5_Key)
    || !\CfgReader\GetConfigData("gmgame", "Senditem_mail_title", $title)
    || !\CfgReader\GetConfigData("gmgame", "Senditem_mail_content", $content)
) {