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