mirror of
https://github.com/v2board/v2board.git
synced 2025-09-19 12:43:05 +08:00
测试:增加设备数限制功能
This commit is contained in:
@ -269,6 +269,7 @@ class OrderService
|
||||
$this->user->expired_at = time();
|
||||
}
|
||||
$this->user->transfer_enable = $plan->transfer_enable * 1073741824;
|
||||
$this->user->device_limit = $plan->device_limit;
|
||||
// 从一次性转换到循环
|
||||
if ($this->user->expired_at === NULL) $this->buyByResetTraffic();
|
||||
// 新购
|
||||
@ -282,6 +283,7 @@ class OrderService
|
||||
{
|
||||
$this->buyByResetTraffic();
|
||||
$this->user->transfer_enable = $plan->transfer_enable * 1073741824;
|
||||
$this->user->device_limit = $plan->device_limit;
|
||||
$this->user->plan_id = $plan->id;
|
||||
$this->user->group_id = $plan->group_id;
|
||||
$this->user->expired_at = NULL;
|
||||
|
Reference in New Issue
Block a user