Commit fd083914 by hcy

深茂

parent 6f317ae4
......@@ -19,6 +19,13 @@ class SearchApiController extends Controller
public function skuLists(Request $request)
{
$response = Http::asForm()->post($this->soUrl."/semour/skuLists", $request->input());
if ($request->input("debug")){
print_r($this->soUrl."/semour/skuLists");
print_r("<br/>");
print_r($response->body());
print_r("<br/>");
die();
}
$data = json_decode($response->body(),true);
return $this->setSuccess("查询成功",ApiCode::API_CODE_SUCCESS,\Arr::get($data,"data"));
}
......@@ -27,6 +34,13 @@ class SearchApiController extends Controller
public function goodsDetail(Request $request)
{
$response = Http::asForm()->post($this->soUrl."/semour/goodsDetail", $request->input());
if ($request->input("debug")){
print_r($this->soUrl."/semour/skuLists");
print_r("<br/>");
print_r($response->body());
print_r("<br/>");
die();
}
$data = json_decode($response->body(),true);
return $this->setSuccess("查询成功",ApiCode::API_CODE_SUCCESS,\Arr::get($data,"data"));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment