陈德本 hace 7 años
padre
commit
92f609a148
Se han modificado 2 ficheros con 7 adiciones y 1 borrados
  1. 6 0
      .idea/vcs.xml
  2. 1 1
      hintData.php

+ 6 - 0
.idea/vcs.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="VcsDirectoryMappings">
+    <mapping directory="$PROJECT_DIR$" vcs="Git" />
+  </component>
+</project>

+ 1 - 1
hintData.php

@@ -148,7 +148,7 @@ function baidu($wds)
 function getRelatedKeywords($wd)
 {
     global $response, $result;
-    $searchUrl = "http://www.baidu.com/s?ie=UTF-8&wd=%s";
+    $searchUrl = "http://www.baidu.com/s?ie=UTF-8&rn=20&wd=%s";
 
     $url = sprintf($searchUrl, $wd);
     $rules = [