This commit is contained in:
songliang 2023-06-30 14:15:13 +08:00
parent 0f66a219a5
commit 33f49a7063

View File

@ -432,11 +432,18 @@ class ShopController extends BaseAuthedController
$conn = myself()->_getMysql('');
$address = myself()->_getAddress();
if (empty($address)) {
$this->_rspErr(1, "address is empty");
return;
}
$chk = SqlHelper::insert(
$conn,
't_shop_buy_order',
array(
'address' => myself()->_getAddress(),
'address' => $address,
'createtime' => myself()->_getNowTime(),
'item_id' => $id,
'goods_num' => $goods_num,