소스 검색

第一期工程

rkljw 5 달 전
부모
커밋
2b6c2bd8de
4개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 1
      .gitignore
  2. 1 1
      app/JsonRpc/NewsService.php
  3. 1 0
      runtime/hyperf.pid
  4. 0 0
      runtime/logs/hyperf.log

+ 2 - 1
.gitignore

@@ -12,7 +12,8 @@ bin-release/
 *.air
 *.ipa
 *.apk
-
+runtime
+runtime/*
 # Project files, i.e. `.project`, `.actionScriptProperties` and `.flexProperties`
 # should NOT be excluded as they contain compiler settings and other important
 # information for Eclipse / Flash Builder.

+ 1 - 1
app/JsonRpc/NewsService.php

@@ -153,7 +153,7 @@ class NewsService implements NewsServiceInterface
         if(isset($data['author'])  && $data['author']){
              array_push($where,['article.author','=',$data['author']]);
         }
-        if(isset($data['islink'])  && $data['islink']){
+        if(isset($data['islink'])  && $data['islink']!==""){
             array_push($where,['article.islink','=',$data['islink']]);
         }
         if(isset($data['status']) && $data['status']!==""){

+ 1 - 0
runtime/hyperf.pid

@@ -0,0 +1 @@
+8853

+ 0 - 0
runtime/logs/hyperf.log