portal icon indicating copy to clipboard operation
portal copied to clipboard

portal应用中不少代码不能兼容TP6,问题不少

Open ah-guobing opened this issue 4 years ago • 2 comments

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中不被支持了。

还有其它坑。

ah-guobing avatar Jan 26 '21 10:01 ah-guobing

目前已知问题已经兼容修复,有问题请及时反馈

thinkcmf avatar Jan 26 '21 10:01 thinkcmf

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()

athmoon avatar May 19 '21 04:05 athmoon