增加特色服务
This commit is contained in:
@@ -17,9 +17,14 @@ class BannerController extends BaseController
|
||||
* 获取 Banner 列表
|
||||
* @return Json
|
||||
*/
|
||||
public function getBanners(): Json
|
||||
public function getBanners()
|
||||
{
|
||||
// 从 BaseController 获取当前租户ID
|
||||
$baseUrl = $this->request->get('baseUrl', '');
|
||||
|
||||
if (!empty($baseUrl)) {
|
||||
$this->tenantId = BaseController::getTenantIdByDomain($baseUrl);
|
||||
}
|
||||
|
||||
$tid = $this->getTenantId();
|
||||
|
||||
if (empty($tid)) {
|
||||
|
||||
Reference in New Issue
Block a user