Skip to content

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

@ah-guobing

Description

@ah-guobing

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

还有其它坑。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions