mirror of
https://github.com/v2board/v2board.git
synced 2025-02-10 15:39:14 +08:00
fix
This commit is contained in:
parent
e97f6c64a0
commit
c3898ec795
@ -29,12 +29,9 @@ class PlanController extends Controller
|
||||
abort(500, '该订阅不存在');
|
||||
}
|
||||
DB::beginTransaction();
|
||||
if (!User::where('plan_id', $plan->id)
|
||||
->update(['group_id' => $plan->group_id])
|
||||
) {
|
||||
DB::rollBack();
|
||||
abort(500, '保存失败');
|
||||
}
|
||||
// update user group id
|
||||
User::where('plan_id', $plan->id)
|
||||
->update(['group_id' => $plan->group_id]);
|
||||
if (!$plan->update($params)) {
|
||||
DB::rollBack();
|
||||
abort(500, '保存失败');
|
||||
|
@ -236,5 +236,5 @@ return [
|
||||
| The only modification by laravel config
|
||||
|
|
||||
*/
|
||||
'version' => '1.2'
|
||||
'version' => '1.2.1'
|
||||
];
|
||||
|
2
public/assets/admin/umi.js
vendored
2
public/assets/admin/umi.js
vendored
File diff suppressed because one or more lines are too long
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