mirror of
https://github.com/v2board/v2board.git
synced 2025-01-11 08:39:09 +08:00
fix
This commit is contained in:
parent
3fe442313d
commit
3becb71a5a
@ -29,7 +29,6 @@ class PlanController extends Controller
|
|||||||
abort(500, '该订阅不存在');
|
abort(500, '该订阅不存在');
|
||||||
}
|
}
|
||||||
DB::beginTransaction();
|
DB::beginTransaction();
|
||||||
if (isset($params->group_id) && ($params->group_id !== $plan->group_id)) {
|
|
||||||
if (!User::where('plan_id', $plan->id)
|
if (!User::where('plan_id', $plan->id)
|
||||||
->get()
|
->get()
|
||||||
->update(['group_id', $plan->group_id])
|
->update(['group_id', $plan->group_id])
|
||||||
@ -37,7 +36,6 @@ class PlanController extends Controller
|
|||||||
DB::rollBack();
|
DB::rollBack();
|
||||||
abort(500, '保存失败');
|
abort(500, '保存失败');
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (!$plan->update($params)) {
|
if (!$plan->update($params)) {
|
||||||
DB::rollBack();
|
DB::rollBack();
|
||||||
abort(500, '保存失败');
|
abort(500, '保存失败');
|
||||||
|
Loading…
Reference in New Issue
Block a user