mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 09:39:10 +08:00
update: order fetch speed limit
This commit is contained in:
parent
e86ac44b2a
commit
f9e2afe9d1
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user