mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 09:39:10 +08:00
update change plan update transfer
This commit is contained in:
parent
71c42765fc
commit
59672a6f2c
@ -30,9 +30,12 @@ class PlanController extends Controller
|
||||
abort(500, '该订阅不存在');
|
||||
}
|
||||
DB::beginTransaction();
|
||||
// update user group id
|
||||
// update user group id and transfer
|
||||
try {
|
||||
User::where('plan_id', $plan->id)->update(['group_id' => $plan->group_id]);
|
||||
User::where('plan_id', $plan->id)->update([
|
||||
'group_id' => $plan->group_id,
|
||||
'transfer_enable' => $plan->transfer_enable * 1073741824
|
||||
]);
|
||||
$plan->update($params);
|
||||
} catch (\Exception $e) {
|
||||
DB::rollBack();
|
||||
|
2
public/assets/user/umi.js
vendored
2
public/assets/user/umi.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user