Browse Source

改下页码

rkljw 3 months ago
parent
commit
388434e266
2 changed files with 22 additions and 22 deletions
  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']);
 
             $exit = false;
-            $i = 0;
+            $i = $data['second_num']-1;
             while(!$exit){
                 $i++;
                 $url = $data['second_start'].$i.$data['second_end'];

+ 21 - 21
config/container.php

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