소스 검색

青爻公众号

cqp 1 년 전
부모
커밋
4b8833baa5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Service/Weixin/WeixinService.php

+ 1 - 1
app/Service/Weixin/WeixinService.php

@@ -45,7 +45,7 @@ class WeixinService extends Service
         $config = config('qingyaoWx');
         $url = sprintf($config['get_article'], $msg);
 
-        $offset = empty($data['page_index']) ? 1 : $data['page_index'] - 1;
+        $offset = empty($data['page_index']) ? 0 : $data['page_index'] - 1;
         $count = empty($data['page_size']) || $data['page_size'] > 10 ? 10 : $data['page_size'];
         $post = [
             'offset' => $offset,