Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ah-guobing opened this issue Jan 26, 2021 · 2 comments
Open

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

ah-guobing opened this issue Jan 26, 2021 · 2 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@ah-guobing
Copy link

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

还有其它坑。

thinkcmf pushed a commit that referenced this issue Jan 26, 2021
@thinkcmf thinkcmf added bug Something isn't working enhancement New feature or request labels Jan 26, 2021
@thinkcmf
Copy link
Owner

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

@athmoon
Copy link

athmoon commented May 19, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants