portal
portal copied to clipboard
portal应用中不少代码不能兼容TP6,问题不少
1、TP6已经删除关联类的setEagerlyType方法(https://www.kancloud.cn/manual/thinkphp6_0/1037654) 但在 app/portal/model/PortalPostModel.php 中 user() 等中还调用了 setEagerlyType() 导致报错。
2、app/portal/service/PostService.php 第237行,关于时间范围的查询, ->where('post.published_time', ['< time', time()], ['> time', 0], 'and') 这种写法在TP6中不被支持了。
还有其它坑。
目前已知问题已经兼容修复,有问题请及时反馈
DOCUMENT_ROOT | /volume1/wwwroot/ThinkCMF/public |
---|---|
DOCUMENT_URI | /index.php |
REQUEST_URI | /products.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=products.html |
SCRIPT_FILENAME | /volume1/wwwroot/ThinkCMF/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
#0 [0]HttpException in Controller.php line 132 方法不存在:app\portal\controller\ListController->index?id=1()