diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index 06af5d20..d866812d 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -434,11 +434,11 @@ class ShopController extends BaseAuthedController $address = myself()->_getAddress(); + if (empty($address)) { - $this->_rspErr(1, "address is empty"); - return; + $address = myself()->_getAccountId(); } - + $chk = SqlHelper::insert( $conn, 't_shop_buy_order',