Tokumeikoi 5 years ago
parent
commit
c3898ec795

+ 3 - 6
app/Http/Controllers/Admin/PlanController.php

@@ -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, '保存失败');

+ 1 - 1
config/app.php

@@ -236,5 +236,5 @@ return [
     | The only modification by laravel config
     |
     */
-    'version' => '1.2'
+    'version' => '1.2.1'
 ];

File diff suppressed because it is too large
+ 0 - 0
public/assets/admin/umi.js


File diff suppressed because it is too large
+ 0 - 0
public/assets/user/umi.js


Some files were not shown because too many files changed in this diff