作者 李小龙

a

@@ -565,7 +565,7 @@ public function search(Request $request) @@ -565,7 +565,7 @@ public function search(Request $request)
565 //获取搜索参数 565 //获取搜索参数
566 $data["search_content"] = ''; 566 $data["search_content"] = '';
567 if (isset($data['s'])) { 567 if (isset($data['s'])) {
568 - $req["search_content"] = $searchContent = $data['s']; 568 + $req["search_content"] = $data['s'];
569 } 569 }
570 if (isset($data['search'])) { 570 if (isset($data['search'])) {
571 $req["search_content"] = $data['search']; 571 $req["search_content"] = $data['search'];
@@ -573,6 +573,7 @@ public function search(Request $request) @@ -573,6 +573,7 @@ public function search(Request $request)
573 573
574 //分页 574 //分页
575 $req["page"] = isset($data['page']) && (int)$data['page'] > 1 ? (int)$data['page'] : 1; 575 $req["page"] = isset($data['page']) && (int)$data['page'] > 1 ? (int)$data['page'] : 1;
  576 + $req["domain"] = $request->getHost();
576 577
577 //转发data 578 //转发data
578 $transmitUrl = env("API_URL"); 579 $transmitUrl = env("API_URL");