mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 09:39:10 +08:00
update onetime package
This commit is contained in:
parent
e2b73094c0
commit
60b197410c
@ -64,13 +64,10 @@ class CheckOrder extends Command
|
||||
{
|
||||
$user = User::find($order->user_id);
|
||||
$plan = Plan::find($order->plan_id);
|
||||
switch ($plan->type) {
|
||||
// cycle
|
||||
case 0: return $this->buyByCycle($order, $user, $plan);
|
||||
// onetime
|
||||
case 1: return $this->buyByOneTime($order, $user, $plan);
|
||||
if ($order->cycle === 'onetime_price') {
|
||||
return $this->buyByOneTime($order, $user, $plan);
|
||||
}
|
||||
return $this->buy($order, $user, $plan);
|
||||
return $this->buyByCycle($order, $user, $plan);
|
||||
}
|
||||
|
||||
private function buyByCycle(Order $order, User $user, Plan $plan)
|
||||
|
@ -10,7 +10,6 @@ class PlanSave extends FormRequest
|
||||
'name' => 'required',
|
||||
'content' => '',
|
||||
'group_id' => 'required',
|
||||
'type' => 'required|in:0,1',
|
||||
'transfer_enable' => 'required',
|
||||
'month_price' => 'nullable|integer',
|
||||
'quarter_price' => 'nullable|integer',
|
||||
|
@ -169,9 +169,6 @@ ADD `category_id` int(11) NOT NULL AFTER `id`;
|
||||
ALTER TABLE `v2_tutorial`
|
||||
DROP `description`;
|
||||
|
||||
ALTER TABLE `v2_plan`
|
||||
ADD `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0: 周期 1:一次性' AFTER `name`;
|
||||
|
||||
ALTER TABLE `v2_plan`
|
||||
CHANGE `month_price` `month_price` int(11) NULL AFTER `content`,
|
||||
CHANGE `quarter_price` `quarter_price` int(11) NULL AFTER `month_price`,
|
||||
|
2
public/assets/admin/umi.js
vendored
2
public/assets/admin/umi.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user