From d4cc4b5a95a2b2ba65534adbf68b74b469975232 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 23 Aug 2019 20:18:05 +0800 Subject: [PATCH] 1 --- webapp/controller/PayController.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapp/controller/PayController.class.php b/webapp/controller/PayController.class.php index 5818533..00eeb94 100644 --- a/webapp/controller/PayController.class.php +++ b/webapp/controller/PayController.class.php @@ -82,6 +82,7 @@ class PayController { $game_account_id = $jsonobj['account_id']; $game_channel = phpcommon\extractChannel($jsonobj['account_id']); $game_openid = phpcommon\extractOpenId($jsonobj['account_id']); + $real_amount = $jsonobj['price']; $amount = $jsonobj['price']; $itemid = $jsonobj['itemid']; $itemnum = $jsonobj['itemnum']; @@ -152,7 +153,7 @@ class PayController { ':channel' => $game_channel, ':gameid' => $gameid, ':itemid' => $itemid, - ':price' => $amount, + ':price' => $real_amount, ':ipv4' => phpcommon\getIPv4(), ':createtime' => time(), ':sp_orderid' => (string)$xmlobj->OrderNo,