mirror of
https://github.com/v2board/v2board.git
synced 2025-02-10 23:49:12 +08:00
fix
This commit is contained in:
parent
e97f6c64a0
commit
c3898ec795
@ -29,12 +29,9 @@ class PlanController extends Controller
|
|||||||
abort(500, '该订阅不存在');
|
abort(500, '该订阅不存在');
|
||||||
}
|
}
|
||||||
DB::beginTransaction();
|
DB::beginTransaction();
|
||||||
if (!User::where('plan_id', $plan->id)
|
// update user group id
|
||||||
->update(['group_id' => $plan->group_id])
|
User::where('plan_id', $plan->id)
|
||||||
) {
|
->update(['group_id' => $plan->group_id]);
|
||||||
DB::rollBack();
|
|
||||||
abort(500, '保存失败');
|
|
||||||
}
|
|
||||||
if (!$plan->update($params)) {
|
if (!$plan->update($params)) {
|
||||||
DB::rollBack();
|
DB::rollBack();
|
||||||
abort(500, '保存失败');
|
abort(500, '保存失败');
|
||||||
|
@ -236,5 +236,5 @@ return [
|
|||||||
| The only modification by laravel config
|
| 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