Browse Source

完善功能

gorden 10 months ago
parent
commit
bfec9be600
1 changed files with 2 additions and 3 deletions
  1. 2 3
      app/admin/service/marketing/TeamService.php

+ 2 - 3
app/admin/service/marketing/TeamService.php

@@ -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) {