From d657aeb5d16a0e50facbd82d6552d6de34d53815 Mon Sep 17 00:00:00 2001 From: tping Date: Fri, 20 Aug 2021 15:28:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=98=E6=89=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Sdk/Controller/ExchangeController.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/Sdk/Controller/ExchangeController.class.php b/Application/Sdk/Controller/ExchangeController.class.php index 698a86bf..6c89baf6 100644 --- a/Application/Sdk/Controller/ExchangeController.class.php +++ b/Application/Sdk/Controller/ExchangeController.class.php @@ -110,8 +110,8 @@ class ExchangeController extends BaseController{ // 折扣 $request['discount'] = 10; $discount = get_discount($request['game_id'], $request['user_id']); - if ($discount < 10) { - $request['discount'] = $discount; + if (isset($discount['discount']) && $discount['discount'] < 10) { + $request['discount'] = $discount['discount']; } M("pay_info", "tab_")->add([