|
|
@ -187,6 +187,8 @@ class AdminAgentTeam extends BaseController |
|
|
return $this->renderSuccess('已删除'); |
|
|
return $this->renderSuccess('已删除'); |
|
|
} catch (ValidateException $validateException) { |
|
|
} catch (ValidateException $validateException) { |
|
|
return $this->renderError($validateException->getMessage()); |
|
|
return $this->renderError($validateException->getMessage()); |
|
|
|
|
|
} catch (\Exception $e) { |
|
|
|
|
|
return $this->renderError('操作失败'); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -213,6 +215,8 @@ class AdminAgentTeam extends BaseController |
|
|
return $this->renderSuccess('添加成功'); |
|
|
return $this->renderSuccess('添加成功'); |
|
|
} catch (ValidateException $validateException) { |
|
|
} catch (ValidateException $validateException) { |
|
|
return $this->renderError($validateException->getMessage()); |
|
|
return $this->renderError($validateException->getMessage()); |
|
|
|
|
|
} catch (\Exception $e) { |
|
|
|
|
|
return $this->renderError('操作失败'); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|