mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 09:39:10 +08:00
update
This commit is contained in:
parent
1b9241ad90
commit
82146a79b8
@ -70,6 +70,13 @@ class OrderController extends Controller
|
||||
$order->cycle = $request->input('cycle');
|
||||
$order->trade_no = Helper::guid();
|
||||
$order->total_amount = $plan[$request->input('cycle')];
|
||||
if ($user->expired_at > time() && $order->plan_id !== $user->plan_id) {
|
||||
$order->type = 3;
|
||||
} else if ($user->expired_at > time() && $order->plan_id == $user->plan_id) {
|
||||
$order->type = 2;
|
||||
} else {
|
||||
$order->type = 1;
|
||||
}
|
||||
if ($user->invite_user_id) {
|
||||
$order->invite_user_id = $user->invite_user_id;
|
||||
$order->commission_balance = $order->total_amount * (config('v2board.invite_commission', 10) / 100);
|
||||
|
2
public/p__admin__config__payment.async.js
vendored
2
public/p__admin__config__payment.async.js
vendored
File diff suppressed because one or more lines are too long
2
public/p__admin__config__site.async.js
vendored
2
public/p__admin__config__site.async.js
vendored
File diff suppressed because one or more lines are too long
2
public/p__admin__dashboard.async.js
vendored
2
public/p__admin__dashboard.async.js
vendored
File diff suppressed because one or more lines are too long
2
public/p__admin__order.async.js
vendored
2
public/p__admin__order.async.js
vendored
File diff suppressed because one or more lines are too long
2
public/p__admin__plan.async.js
vendored
2
public/p__admin__plan.async.js
vendored
File diff suppressed because one or more lines are too long
2
public/p__admin__server.async.js
vendored
2
public/p__admin__server.async.js
vendored
File diff suppressed because one or more lines are too long
2
public/p__admin__server__group.async.js
vendored
2
public/p__admin__server__group.async.js
vendored
File diff suppressed because one or more lines are too long
2
public/p__admin__user.async.js
vendored
2
public/p__admin__user.async.js
vendored
File diff suppressed because one or more lines are too long
2
public/p__dashboard.async.js
vendored
2
public/p__dashboard.async.js
vendored
File diff suppressed because one or more lines are too long
2
public/p__index.async.js
vendored
2
public/p__index.async.js
vendored
File diff suppressed because one or more lines are too long
2
public/p__invite.async.js
vendored
2
public/p__invite.async.js
vendored
File diff suppressed because one or more lines are too long
2
public/p__order.async.js
vendored
2
public/p__order.async.js
vendored
File diff suppressed because one or more lines are too long
2
public/p__order__$trade_no.async.js
vendored
2
public/p__order__$trade_no.async.js
vendored
File diff suppressed because one or more lines are too long
2
public/p__plan.async.js
vendored
2
public/p__plan.async.js
vendored
File diff suppressed because one or more lines are too long
2
public/p__plan__$plan_id.async.js
vendored
2
public/p__plan__$plan_id.async.js
vendored
File diff suppressed because one or more lines are too long
2
public/p__profile.async.js
vendored
2
public/p__profile.async.js
vendored
File diff suppressed because one or more lines are too long
2
public/p__subscribe.async.js
vendored
2
public/p__subscribe.async.js
vendored
File diff suppressed because one or more lines are too long
2
public/p__tutorial.async.js
vendored
2
public/p__tutorial.async.js
vendored
File diff suppressed because one or more lines are too long
2
public/umi.js
vendored
2
public/umi.js
vendored
File diff suppressed because one or more lines are too long
6
public/vendors.chunk.css
vendored
6
public/vendors.chunk.css
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user