From bca520f22fbb44a9a6c00b5cbed514cbf2429a0e Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 23 Aug 2019 15:53:27 +0800 Subject: [PATCH] 1 --- webapp/controller/PayController.class.php | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/webapp/controller/PayController.class.php b/webapp/controller/PayController.class.php index eb2e102..394dbed 100644 --- a/webapp/controller/PayController.class.php +++ b/webapp/controller/PayController.class.php @@ -477,7 +477,7 @@ class PayController{ } $conn = $this->getMysql($_REQUEST['account_id']); - $row = $conn->execQueryOne('SELECT orderid, status FROM orderinfo WHERE orderid=:orderid;', + $row = $conn->execQueryOne('SELECT orderid, status, item_list FROM orderinfo WHERE orderid=:orderid;', array( ':orderid' => $_REQUEST['orderid'] )); @@ -495,16 +495,7 @@ class PayController{ 'order_state' => 0, 'buy_itemid' => 0, 'buy_itemnum' => 0, - 'item_list' => array( - array( - 'itemid' => 10001, - 'itemnum' => 1000, - ), - array( - 'itemid' => 10003, - 'itemnum' => 1000, - ), - ) + 'item_list' => json_decode($row[2], true) )); }