This commit is contained in:
songliang 2023-07-15 11:02:08 +08:00
parent 1805f7926d
commit 801af98c81
4 changed files with 17 additions and 2 deletions

View File

@ -62,6 +62,8 @@ CREATE TABLE `t_market_transaction_record` (
ALTER TABLE t_web2_order MODIFY COLUMN `item_num` bigint(20) DEFAULT NULL COMMENT '道具数量'; ALTER TABLE t_web2_order MODIFY COLUMN `item_num` bigint(20) DEFAULT NULL COMMENT '道具数量';
ALTER TABLE t_web2_order CHANGE account_Id account_id varchar(64) NOT NULL COMMENT '申请账号id';
ALTER TABLE t_web2_order MODIFY COLUMN `createtime` int(11) NOT NULL COMMENT '创建时间';
ALTER TABLE t_shop_buy_order ADD COLUMN `order_id` varchar(64) DEFAULT NULL COMMENT '订单id'; ALTER TABLE t_shop_buy_order ADD COLUMN `order_id` varchar(64) DEFAULT NULL COMMENT '订单id';
ALTER TABLE t_shop_buy_order add UNIQUE KEY `order_id` (`order_id`); ALTER TABLE t_shop_buy_order add UNIQUE KEY `order_id` (`order_id`);

View File

@ -337,7 +337,11 @@ class ShopController extends BaseAuthedController
$conn = myself()->_getMysql(''); $conn = myself()->_getMysql('');
$order = SqlHelper::selectOne($conn, 't_shop_buy_order', array('address', 'id', 'item_id', 'goods_num', 'status'), array('idx' => $order_id)); $order = SqlHelper::selectOne($conn, 't_shop_buy_order', array('address', 'id', 'item_id', 'goods_num', 'status'), array('idx' => $order_id));
if (!$order) {
$this->_rspErr(2, "order not found: {$order_id}");
return;
}
$id = $order['id']; $id = $order['id'];
$goods_num = $order['goods_num']; $goods_num = $order['goods_num'];
$o_status = $order['status']; $o_status = $order['status'];
@ -668,6 +672,9 @@ class ShopController extends BaseAuthedController
'address' => $address 'address' => $address
) )
); );
if (!$row) {
return null;
}
return $row['account_id']; return $row['account_id'];
} }

View File

@ -69,7 +69,10 @@ class ShopBuyGoodsDirect
$conn = myself()->_getMysql(''); $conn = myself()->_getMysql('');
$order = SqlHelper::selectOne($conn, 't_shop_buy_order', array('address', 'id', 'item_id', 'goods_num', 'status'), array('idx' => $order_id)); $order = SqlHelper::selectOne($conn, 't_shop_buy_order', array('address', 'id', 'item_id', 'goods_num', 'status'), array('idx' => $order_id));
if (!$order) {
$this->_rspErr(2, "order not found: {$order_id}");
return;
}
$id = $order['id']; $id = $order['id'];
$goods_num = $order['goods_num']; $goods_num = $order['goods_num'];
$o_status = $order['status']; $o_status = $order['status'];

View File

@ -209,6 +209,9 @@ class ShopInappPurchaseDiamonds
'address' => $address 'address' => $address
) )
); );
if (!$row) {
return null;
}
return $row['account_id']; return $row['account_id'];
} }