|
@@ -59,7 +59,10 @@ class SuppliersController extends BaseController |
|
@@ -59,7 +59,10 @@ class SuppliersController extends BaseController |
|
59
|
$token = $action_name. '+' .date('Y-m-d'). '+' .http_build_query($param);
|
59
|
$token = $action_name. '+' .date('Y-m-d'). '+' .http_build_query($param);
|
|
60
|
$param['token'] = md5($token);
|
60
|
$param['token'] = md5($token);
|
|
61
|
$res = http_post($url,json_encode($param));
|
61
|
$res = http_post($url,json_encode($param));
|
|
62
|
- return $this->success($res);
|
62
|
+ if($res['code'] != 200){
|
|
|
|
63
|
+ $this->response($res['message'],Code::SYSTEM_ERROR);
|
|
|
|
64
|
+ }
|
|
|
|
65
|
+ return $this->success($res['data']);
|
|
63
|
}
|
66
|
}
|
|
64
|
/**
|
67
|
/**
|
|
65
|
* @remark :按名字搜索公司
|
68
|
* @remark :按名字搜索公司
|