浏览代码

改下页码

rkljw 6 月之前
父节点
当前提交
388434e266
共有 2 个文件被更改,包括 22 次插入22 次删除
  1. 1 1
      app/JsonRpc/CollectorService.php
  2. 21 21
      config/container.php

+ 1 - 1
app/JsonRpc/CollectorService.php

@@ -459,7 +459,7 @@ class CollectorService implements CollectorServiceInterface
         array_push($arrList,$data['first_url']);
         array_push($arrList,$data['first_url']);
 
 
             $exit = false;
             $exit = false;
-            $i = 0;
+            $i = $data['second_num']-1;
             while(!$exit){
             while(!$exit){
                 $i++;
                 $i++;
                 $url = $data['second_start'].$i.$data['second_end'];
                 $url = $data['second_start'].$i.$data['second_end'];

+ 21 - 21
config/container.php

@@ -1,21 +1,21 @@
-<?php
+<?php
-/**
+/**
- * Initialize a dependency injection container that implemented PSR-11 and return the container.
+ * Initialize a dependency injection container that implemented PSR-11 and return the container.
- */
+ */
-
+
-declare(strict_types=1);
+declare(strict_types=1);
-/**
+/**
- * This file is part of Hyperf.
+ * This file is part of Hyperf.
- *
+ *
- * @link     https://www.hyperf.io
+ * @link     https://www.hyperf.io
- * @document https://hyperf.wiki
+ * @document https://hyperf.wiki
- * @contact  group@hyperf.io
+ * @contact  group@hyperf.io
- * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
+ * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
- */
+ */
-use Hyperf\Context\ApplicationContext;
+use Hyperf\Context\ApplicationContext;
-use Hyperf\Di\Container;
+use Hyperf\Di\Container;
-use Hyperf\Di\Definition\DefinitionSourceFactory;
+use Hyperf\Di\Definition\DefinitionSourceFactory;
-
+
-$container = new Container((new DefinitionSourceFactory())());
+$container = new Container((new DefinitionSourceFactory())());
-
+
-return ApplicationContext::setContainer($container);
+return ApplicationContext::setContainer($container);