1
This commit is contained in:
parent
3d55d8bd5d
commit
c0cfa83e86
@ -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'
|
||||
));
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user