From 76b1596381c8c8f0ed034f28ec87bdec4173f363 Mon Sep 17 00:00:00 2001 From: songliang Date: Fri, 30 Jun 2023 14:19:09 +0800 Subject: [PATCH] ... --- webapp/controller/ShopController.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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',