|
|
|
@ -95,9 +95,8 @@ class OtherController extends CommonController
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$YuanheRepository = new YuanheRepository();
|
|
|
|
$YuanheRepository = new YuanheRepository();
|
|
|
|
$result = $YuanheRepository->search(['keyword' => $all['company_name']]);
|
|
|
|
$result = $YuanheRepository->search(['keyword' => $all['company_name']]);
|
|
|
|
$result = json_decode($result, true);
|
|
|
|
if (empty($result)) {
|
|
|
|
if (!$result) {
|
|
|
|
return $this->fail([ResponseCode::ERROR_PARAMETER, '无数据']);
|
|
|
|
return $this->fail([ResponseCode::ERROR_PARAMETER, '获取失败']);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$list = [];
|
|
|
|
$list = [];
|
|
|
|
foreach ($result as $item) {
|
|
|
|
foreach ($result as $item) {
|
|
|
|
|