diff --git a/webapp/controller/PayController.class.php b/webapp/controller/PayController.class.php index e75538d..eb2e102 100644 --- a/webapp/controller/PayController.class.php +++ b/webapp/controller/PayController.class.php @@ -433,17 +433,14 @@ class PayController{ public function buyItem() { - $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); + $login = loginVerify($_REQUEST['account_id'], $_REQUEST['session_id']); if (!$login) { phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); return; } $itemid = $_REQUEST['itemid']; $itemnum = $_REQUEST['itemnum']; - // $itemid = 16002; - // $itemnum = 1; $item_meta_table = require('../res/item@item.php'); $item_meta = getItemConfig($item_meta_table, $itemid); @@ -456,7 +453,7 @@ class PayController{ 'account_id' => $_REQUEST['account_id'], 'itemid' => $itemid, 'itemnum' => 1, - 'price' => SERVER_ENV != _ONLINE ? 0.01 : (float)$item_meta['rmbprice'] + 'price' => (float)$item_meta['rmbprice'] ); $timestamp = time(); $params['sign'] = phpcommon\md5Sign($params, '06ba97e28ea905b0b7ed5477746b07f1', $timestamp);