mirror of
https://github.com/v2board/v2board.git
synced 2024-11-13 02:59:10 +08:00
update
This commit is contained in:
parent
f193f35642
commit
8986ba1d42
@ -73,16 +73,19 @@ class CheckOrder extends Command
|
|||||||
private function buyByCycle(Order $order, User $user, Plan $plan)
|
private function buyByCycle(Order $order, User $user, Plan $plan)
|
||||||
{
|
{
|
||||||
// change plan process
|
// change plan process
|
||||||
if ($order->type == 3) {
|
if ((int)$order->type === 3) {
|
||||||
$user->expired_at = time();
|
$user->expired_at = time();
|
||||||
}
|
}
|
||||||
if ($order->refund_amount) {
|
if ($order->refund_amount) {
|
||||||
$user->balance = $user->balance + $order->refund_amount;
|
$user->balance = $user->balance + $order->refund_amount;
|
||||||
}
|
}
|
||||||
$user->transfer_enable = $plan->transfer_enable * 1073741824;
|
$user->transfer_enable = $plan->transfer_enable * 1073741824;
|
||||||
if ((int)config('v2board.renew_reset_traffic_enable', 1)) {
|
// change plan not reset traffic
|
||||||
$user->u = 0;
|
if (!(int)$order->type === 3) {
|
||||||
$user->d = 0;
|
if ((int)config('v2board.renew_reset_traffic_enable', 1)) {
|
||||||
|
$user->u = 0;
|
||||||
|
$user->d = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$user->plan_id = $plan->id;
|
$user->plan_id = $plan->id;
|
||||||
$user->group_id = $plan->group_id;
|
$user->group_id = $plan->group_id;
|
||||||
|
@ -72,7 +72,7 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="font:14px/19px Open Sans, Arial, Verdana, sans-serif; color:#5c5c5c; font-weight:300; padding:0 0 19px;">
|
<td style="font:14px/19px Open Sans, Arial, Verdana, sans-serif; color:#5c5c5c; font-weight:300; padding:0 0 19px;">
|
||||||
感谢您使用「{{$name}}」,请在 1 分钟内填写验证码完成验证操作。<br><br>
|
感谢您使用「{{$name}}」,请在 5 分钟内填写验证码完成验证操作。<br><br>
|
||||||
<p style="text-align:center">
|
<p style="text-align:center">
|
||||||
<span
|
<span
|
||||||
style="font-size:48px">
|
style="font-size:48px">
|
||||||
|
Loading…
Reference in New Issue
Block a user