mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 09:21:46 +08:00 
			
		
		
		
	update: order fetch speed limit
This commit is contained in:
		| @@ -71,6 +71,8 @@ class OrderService | |||||||
|                 break; |                 break; | ||||||
|         } |         } | ||||||
|  |  | ||||||
|  |         $this->setSpeedLimit($plan->speed_limit); | ||||||
|  |  | ||||||
|         if (!$this->user->save()) { |         if (!$this->user->save()) { | ||||||
|             DB::rollBack(); |             DB::rollBack(); | ||||||
|             abort(500, '开通失败'); |             abort(500, '开通失败'); | ||||||
| @@ -253,6 +255,11 @@ class OrderService | |||||||
|         return true; |         return true; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     private function setSpeedLimit($speedLimit) | ||||||
|  |     { | ||||||
|  |         $this->user->speed_limit = $speedLimit; | ||||||
|  |     } | ||||||
|  |  | ||||||
|     private function buyByResetTraffic() |     private function buyByResetTraffic() | ||||||
|     { |     { | ||||||
|         $this->user->u = 0; |         $this->user->u = 0; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user