From 5a3cbfe05d65189777a94f4c6433f84977d53ec7 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 8 Jun 2023 16:17:48 +0800 Subject: [PATCH] 1 --- webapp/controller/BaseAuthedController.class.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/webapp/controller/BaseAuthedController.class.php b/webapp/controller/BaseAuthedController.class.php index 77cade55..c03947a4 100644 --- a/webapp/controller/BaseAuthedController.class.php +++ b/webapp/controller/BaseAuthedController.class.php @@ -39,6 +39,7 @@ class BaseAuthedController extends BaseController { private $sessionId = ''; private $mysqlConn = null; private $address = null; + private $addressActived = false; private function isWhiteList() { @@ -167,7 +168,12 @@ class BaseAuthedController extends BaseController { public function _getAddress() { - return $this->_getOpenId(); + if ($addressActived) { + $userDb = $this->_getOrmUserInfo(); + $this->address = $userDb['address']; + $addressActived = true; + } + return $this->address; } public function _isValidAddress()