From bd4d4ff9e58a0d70a214273eae026303480ed7f0 Mon Sep 17 00:00:00 2001 From: tping Date: Thu, 5 Mar 2020 20:28:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=93=E5=AE=9D=20=E5=B9=B3=E5=8F=B0=20?= =?UTF-8?q?=E5=B8=81=E5=85=85=E5=80=BC=20=E6=9C=89=E6=8A=B5=E6=89=A3=20?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Sdk/Controller/SpendController.class.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Application/Sdk/Controller/SpendController.class.php b/Application/Sdk/Controller/SpendController.class.php index 9b0cb9ce..da04e41b 100644 --- a/Application/Sdk/Controller/SpendController.class.php +++ b/Application/Sdk/Controller/SpendController.class.php @@ -67,13 +67,11 @@ class SpendController extends Controller { 'game_id' => $game_id ])->order("id desc")->find(); $request = json_decode($pay_info['info'], true); - /* $file = file_get_contents ( "./Application/Sdk/OrderNo/" . $user_id . "-" . $game_id . ".txt" ); $request = json_decode ( think_decrypt ( $file ), true ); */ - $data = array( 'coin' => $request ['body'], - 'price' => $request ['price'], + 'price' => $request ['price'] + $request['deduction_amount'], 'game_name' => $request ['game_name'], 'code' => $request ['code'] );