...
This commit is contained in:
parent
0f66a219a5
commit
33f49a7063
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user