jae-jae / QueryList

:spider: The progressive PHP crawler framework! 优雅的渐进式PHP采集框架。
https://querylist.cc
2.66k stars 441 forks source link

版本依赖有问题 #181

Closed nick2550123097 closed 2 months ago

nick2550123097 commented 4 months ago

在hyperf3.1的版本中,安装一直报冲突

➜ server ../devtools/swoole-cli ../devtools/composer.phar require jaeger/querylist=V4.4.3 ./composer.json has been updated Running composer update jaeger/querylist Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages.

Problem 1

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

jae-jae commented 4 months ago

已经给出提示了,使用 --with-all-dependencies 选项允许去升级依赖

nick2550123097 commented 4 months ago

不行的,应该是两个版本锁定了不兼容,最新版本的larave装这个装不上

nick2550123097 commented 4 months ago

abc 能下载但是是空的

jae-jae commented 3 months ago

PHP 版本需要 >= 8.1 , 然后安装 V4.4.4 版本,低版本会存在依赖冲突问题

nick2550123097 commented 3 months ago

Call to undefined function QL\Dom\value() [ERROR] Error: Call to undefined function QL\Dom\value() in /code/api/server/vendor/jaeger/querylist/src/Dom/Query.php:53 Stack trace:

0 /code/api/server/vendor/jaeger/querylist/src/QueryList.php(65): QL\Dom\Query->setHtml('<!doctype html>...')

1 /code/api/server/vendor/jaeger/querylist/src/Services/HttpService.php(34): QL\QueryList->__call('setHtml', Array)

2 /code/api/server/vendor/jaeger/querylist/src/Providers/HttpServiceProvider.php(21): QL\Services\HttpService::get(Object(QL\QueryList), 'https://www.swo...')

3 [internal function]: QL\QueryList->QL\Providers{closure}('https://www.swo...')

4 /code/api/server/vendor/jaeger/querylist/src/QueryList.php(67): Closure->call(Object(QL\QueryList), 'https://www.swo...')

5 /code/api/server/vendor/jaeger/querylist/src/QueryList.php(75): QL\QueryList->__call('get', Array)

6 /code/api/components/api/src/Command/GenUserToken.php(24): QL\QueryList::__callStatic('get', Array)

7 /code/api/server/vendor/hyperf/command/src/Command.php(177): Cms\Api\Command\GenUserToken->handle()

8 [internal function]: Hyperf\Command\Command->Hyperf\Command{closure}()

jae-jae commented 2 months ago

已修复,安装 V4.4.5 版本