测试:增加设备数限制功能

This commit is contained in:
wyx2685
2023-10-14 18:32:15 +09:00
parent dffe39b6d9
commit ac38036f8e
14 changed files with 113 additions and 4 deletions

View File

@ -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;

View File

@ -167,7 +167,8 @@ class ServerService
->select([
'id',
'uuid',
'speed_limit'
'speed_limit',
'device_limit'
])
->get();
}