修复若干bug
This commit is contained in:
@@ -34,7 +34,8 @@ class Index extends BaseController
|
||||
|
||||
// 兼容:从header获取
|
||||
if ($tid == 0) {
|
||||
$tid = (int)$request->header('X-Tenant-Id', 0);
|
||||
$headerTid = $request->header('X-Tenant-Id');
|
||||
$tid = $headerTid ? (int)$headerTid : 0;
|
||||
}
|
||||
|
||||
// 调试:检查tid
|
||||
|
||||
Reference in New Issue
Block a user