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) )); }