diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index 3a67b171..06af5d20 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -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,