This commit is contained in:
aozhiwei 2019-08-22 19:45:27 +08:00
parent 459c09a9ae
commit cb3aa712c2
2 changed files with 6 additions and 4 deletions

@ -1 +1 @@
Subproject commit 1e3bb4df855f6d11df75545d10b0c2aacea34a06
Subproject commit 7ecf558df93a2656631782e76c6d35697da72808

View File

@ -410,19 +410,21 @@ class PayController{
}
$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);
if ($item_meta) {
if (!$item_meta || $item_meta['rmbprice'] < 0.001) {
phpcommon\sendError(ERR_USER_BASE + 2, '参数错误');
die();
}
$params = array(
'account_id' => $_REQUEST['account_id'],
'itemid' => $itemid,
'itemnum' => 1,
'price' => 0.01
'price' => SERVER_ENV != _ONLINE ? 0.01 : (float)$item_meta['rmbprice']
);
$timestamp = time();
$params['sign'] = phpcommon\md5Sign($params, '06ba97e28ea905b0b7ed5477746b07f1', $timestamp);