add onetime plan

This commit is contained in:
Tokumeikoi 2020-02-27 19:39:26 +08:00
parent 637bacd62f
commit a7b3d6e778

View File

@ -29,7 +29,7 @@ class PlanController extends Controller
abort(500, '该订阅不存在');
}
DB::beginTransaction();
if ($params->group_id !== $plan->group_id) {
if (isset($params->group_id) && ($params->group_id !== $plan->group_id)) {
if (!User::where('plan_id', $plan->id)
->get()
->update(['group_id', $plan->group_id])