From ecc3290117ef7cab11919acd7da0fb4c90710417 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期三, 09 四月 2025 15:54:51 +0800 Subject: [PATCH] 10367 【越南】【英语】【BT】【砍树】仙盟攻城战-服务端(查询区服仙盟;跨服仙盟攻城战相关榜单;) --- Common/GMTRetCode.php | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/Common/GMTRetCode.php b/Common/GMTRetCode.php index c20051d..aa33bf5 100644 --- a/Common/GMTRetCode.php +++ b/Common/GMTRetCode.php @@ -66,3 +66,20 @@ } return $msg; } + +function ParseResult($ret, &$retMsg) +{ + if (!isset($ret)) { + return "閿欒 => 杩斿洖绌�"; + } + if (array_key_exists("ResultType", $ret)) { + if ($ret["ResultType"] != 0) { + return "ResultType閿欒 => " . GetResultTypeMsg($ret["ResultType"]) . " (" . $ret["ResultType"] . ")"; + } + $retMsg = $ret["ResultMsg"]; + return ""; + } else if (array_key_exists("ErrorNo", $ret)) { + return "ErrorNo閿欒 => " . GetErrorNoMsg($ret["ErrorNo"]) . " (" . $ret["ErrorNo"] . ")"; + } + return "鏈煡閿欒"; +} -- Gitblit v1.8.0