From 782348b1ef40b1144009f547b6610dcbd7845ccb Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 23 Aug 2019 16:35:21 +0800 Subject: [PATCH] 1 --- webapp/controller/PayController.class.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/webapp/controller/PayController.class.php b/webapp/controller/PayController.class.php index 394dbed..5a1624d 100644 --- a/webapp/controller/PayController.class.php +++ b/webapp/controller/PayController.class.php @@ -477,7 +477,8 @@ class PayController{ } $conn = $this->getMysql($_REQUEST['account_id']); - $row = $conn->execQueryOne('SELECT orderid, status, item_list FROM orderinfo WHERE orderid=:orderid;', + $row = $conn->execQueryOne('SELECT orderid, status, item_list, itemid ' . + 'FROM orderinfo WHERE orderid=:orderid;', array( ':orderid' => $_REQUEST['orderid'] )); @@ -493,8 +494,8 @@ class PayController{ 'errcode' => 0, 'errmsg'=> '', 'order_state' => 0, - 'buy_itemid' => 0, - 'buy_itemnum' => 0, + 'buy_itemid' => $row[3], + 'buy_itemnum' => 1, 'item_list' => json_decode($row[2], true) )); }