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,