This commit is contained in:
aozhiwei 2019-08-21 14:45:24 +08:00
parent 3d55d8bd5d
commit c0cfa83e86

View File

@ -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'
));
}
} }
?> ?>