mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
fix: plan update
This commit is contained in:
parent
6509091e4f
commit
386c1339f5
@ -52,8 +52,8 @@ class PlanController extends Controller
|
|||||||
// update user group id and transfer
|
// update user group id and transfer
|
||||||
try {
|
try {
|
||||||
User::where('plan_id', $plan->id)->update([
|
User::where('plan_id', $plan->id)->update([
|
||||||
'group_id' => $plan->group_id,
|
'group_id' => $params['group_id'],
|
||||||
'transfer_enable' => $plan->transfer_enable * 1073741824
|
'transfer_enable' => $params['transfer_enable'] * 1073741824
|
||||||
]);
|
]);
|
||||||
$plan->update($params);
|
$plan->update($params);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user