...
This commit is contained in:
parent
0f66a219a5
commit
33f49a7063
@ -432,11 +432,18 @@ class ShopController extends BaseAuthedController
|
|||||||
|
|
||||||
$conn = myself()->_getMysql('');
|
$conn = myself()->_getMysql('');
|
||||||
|
|
||||||
|
$address = myself()->_getAddress();
|
||||||
|
|
||||||
|
if (empty($address)) {
|
||||||
|
$this->_rspErr(1, "address is empty");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$chk = SqlHelper::insert(
|
$chk = SqlHelper::insert(
|
||||||
$conn,
|
$conn,
|
||||||
't_shop_buy_order',
|
't_shop_buy_order',
|
||||||
array(
|
array(
|
||||||
'address' => myself()->_getAddress(),
|
'address' => $address,
|
||||||
'createtime' => myself()->_getNowTime(),
|
'createtime' => myself()->_getNowTime(),
|
||||||
'item_id' => $id,
|
'item_id' => $id,
|
||||||
'goods_num' => $goods_num,
|
'goods_num' => $goods_num,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user