From fb2fa72e8230dc99e3a1e146c2e690c74927960d Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Mon, 15 Nov 2021 14:21:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Base/Tool/GameResource/XlqyClient.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/Base/Tool/GameResource/XlqyClient.class.php b/Application/Base/Tool/GameResource/XlqyClient.class.php index 51175e0cf..d3d687fd7 100644 --- a/Application/Base/Tool/GameResource/XlqyClient.class.php +++ b/Application/Base/Tool/GameResource/XlqyClient.class.php @@ -196,14 +196,14 @@ class XlqyClient return $this->getCommonResult($result, 200); } - private function generateOrderNumber($order, $index = 0) + protected function generateOrderNumber($order, $index = 0) { $length = 8 - strlen(strval($order['id'])); $indexLength = 3 - strlen(strval($index)); return date('Ymd') . str_repeat('0', $length) . $order['id'] . str_repeat('0', $indexLength) . $index; } - private function getCommonResult($result, $successCode = 0) + protected function getCommonResult($result, $successCode = 0) { if ($result['code'] == $successCode) { return [