This commit is contained in:
yumoqing 2024-02-18 16:27:09 +08:00
parent 8eb0394140
commit 5455ad447d

View File

@ -343,16 +343,12 @@ class ProcessorResource(AppLogger, StaticResource,Url2File):
url = self.entireUrl(request, url)
host = '/'.join(url.split('/')[:3])
path = '/' + '/'.join(url.split('/')[3:])
real_path = self.abspath(request, path)
if config.website.startswiths:
for a in config.website.startswiths:
if path.startswith(a.leading):
processor = FunctionProcessor(path,self,a)
return processor
if real_path is None:
print(f'real_path is None ..., {url=}, {fpath=}')
return None
if fpath is None:
print(f'fpath is None ..., {url=}, {fpath=}')
return None