作者 lyh

gx

@@ -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 :按名字搜索公司
@@ -54,7 +54,6 @@ class WebSettingServiceLogic extends BaseLogic @@ -54,7 +54,6 @@ class WebSettingServiceLogic extends BaseLogic
54 if(!empty($data)){ 54 if(!empty($data)){
55 $this->model->insert($data); 55 $this->model->insert($data);
56 } 56 }
57 -  
58 DB::commit(); 57 DB::commit();
59 }catch (\Exception $e){ 58 }catch (\Exception $e){
60 DB::rollBack(); 59 DB::rollBack();