diff --git a/webapp/controller/PayController.class.php b/webapp/controller/PayController.class.php index fc17df5..8e9d622 100644 --- a/webapp/controller/PayController.class.php +++ b/webapp/controller/PayController.class.php @@ -398,5 +398,25 @@ class PayController{ } } } + + public function buyItem() + { + $account_id = $_REQUEST['account_id']; + //登录校验 + $login = loginVerify($account_id, $_REQUEST['session_id']); + if (!$login) { + phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); + return; + } + + $itemid = $_REQUEST['itemid']; + $itemnum = $_REQUEST['itemnum']; + + echo json_encode(array( + 'errcode' => 0, + 'errmsg'=> '', + 'data' => 'hello' + )); + } } ?>