mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 09:21:46 +08:00 
			
		
		
		
	fix
This commit is contained in:
		| @@ -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
											
										
									
								
							
		Reference in New Issue
	
	Block a user