|
...
|
...
|
@@ -77,6 +77,9 @@ class SuppliersController extends BaseController |
|
|
|
if(isset($res['status_code']) && $res['status_code'] != 200){
|
|
|
|
$this->response($res['message'],Code::SYSTEM_ERROR);
|
|
|
|
}
|
|
|
|
if(isset($res['data']['image']) && !empty($res['data']['image'])){
|
|
|
|
$res['data']['image'] = str_replace('admin.hagro.cn','fob.ai.cc',$res['data']['image']??'');
|
|
|
|
}
|
|
|
|
return $this->success($res['data'] ?? []);
|
|
|
|
}
|
|
|
|
/**
|
|
...
|
...
|
@@ -134,8 +137,12 @@ class SuppliersController extends BaseController |
|
|
|
if(isset($this->param['position'])){
|
|
|
|
$param['position'] = $this->param['position'];
|
|
|
|
}
|
|
|
|
$res = $this->_action($api_url,$action_name,$param);
|
|
|
|
$this->response('success',Code::SUCCESS,$res);
|
|
|
|
try {
|
|
|
|
$res = $this->_action($api_url,$action_name,$param);
|
|
|
|
$this->response('success',Code::SUCCESS,$res);
|
|
|
|
}catch (\Exception $e){
|
|
|
|
$this->fail('请求失败,请联系管理员');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
...
|
...
|
|