|
@@ -121,9 +121,8 @@ class TeamService
|
|
|
'dept_super_id' => $params['dept_super_id'], // 这里指营销场所ID
|
|
|
];
|
|
|
// 修改失败,异常
|
|
|
- if (!SysDept::where('dept_id', $id)->update($data)) {
|
|
|
- throw new BusinessException('修改营销团队失败');
|
|
|
- }
|
|
|
+ SysDept::where('dept_id', $id)->update($data);
|
|
|
+
|
|
|
} catch (BusinessException $e) {
|
|
|
return json_fail($e->getMessage());
|
|
|
} catch (\Exception $e) {
|