Prechádzať zdrojové kódy

Merge branch 'master' of https://git.97admin.com:433/chendeben/taoqu

chendeben 6 rokov pred
rodič
commit
a6a23ce0e8
1 zmenil súbory, kde vykonal 6 pridanie a 1 odobranie
  1. 6 1
      App/Api/Model/Dataoke.php

+ 6 - 1
App/Api/Model/Dataoke.php

@@ -48,7 +48,12 @@ class Dataoke
 //                    $d=$t;
 //                    unset($d['kw']);
 //                }
-                $new_url="/kw/" . $t['kw'] . ".html?".http_build_query($q);
+                if (count($q)>1){
+                    $s="?".http_build_query($q);
+                }else{
+                    $s="";
+                }
+                $new_url="/kw/" . $t['kw'] . ".html".$s;
 
                 $content = str_replace($url, $new_url, $content);
             }else{