1
This commit is contained in:
parent
1fcf7ce6fa
commit
9652916bfc
@ -40,6 +40,7 @@ CREATE TABLE `orderinfo` (
|
||||
`roleid` varchar(255) DEFAULT '' COMMENT '角色id',
|
||||
`server_id` int(11) NOT NULL DEFAULT '0' COMMENT 'server_id',
|
||||
`channel` int(11) NOT NULL DEFAULT '0' COMMENT 'channel',
|
||||
`poly_sdk_channel` int(11) NOT NULL DEFAULT '0' COMMENT 'poly_sdk_channel',
|
||||
`unified_channel` int(11) NOT NULL DEFAULT '0' COMMENT 'unified_channel',
|
||||
`gameid` int(11) NOT NULL DEFAULT '0' COMMENT 'gameid',
|
||||
`openid` varchar(255) NOT NULL DEFAULT '0' COMMENT '平台openid',
|
||||
@ -47,7 +48,7 @@ CREATE TABLE `orderinfo` (
|
||||
`try_count` int(11) NOT NULL DEFAULT '0' COMMENT '补单次数',
|
||||
`price` int(11) NOT NULL DEFAULT '0' COMMENT 'price',
|
||||
`ipv4` varchar(50) NOT NULL DEFAULT '' COMMENT 'ipv4地址',
|
||||
`status` int(11) NOT NULL DEFAULT '0' COMMENT '0: 新添加订单 1:已经完成订单',
|
||||
`status` int(11) NOT NULL DEFAULT '0' COMMENT '0: 新添加订单 1:已经完成订单 2:发货成功',
|
||||
`confirmtime` int(11) NOT NULL DEFAULT '0' COMMENT 'GameServer订单确认时间',
|
||||
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
||||
|
||||
|
@ -1,5 +0,0 @@
|
||||
begin;
|
||||
|
||||
alter table orderinfo add `sp_amount` double NOT NULL COMMENT 'sp_amount';
|
||||
|
||||
commit;
|
@ -39,7 +39,16 @@ class BaseSdk
|
||||
|
||||
public function queryOrderInfo()
|
||||
{
|
||||
|
||||
$order_info = $this->order_ctrl->getOrderByCpOrderId($_REQUEST['cp_orderid']);
|
||||
if (!$order_info) {
|
||||
phpcommon\sendError(1, '订单不存在');
|
||||
}
|
||||
echo json_encode(array(
|
||||
'errcode' => 0,
|
||||
'errmsg' => '',
|
||||
'cp_orderid' => $order_info['cp_orderid'],
|
||||
'status' => $order_info['status'],
|
||||
));
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user