fix order assign

This commit is contained in:
Tokumeikoi 2020-05-12 10:08:13 +08:00
parent af71ab8e27
commit 22643f04b1

View File

@ -126,7 +126,6 @@ class OrderController extends Controller
$order->trade_no = Helper::guid(); $order->trade_no = Helper::guid();
$order->total_amount = $request->input('total_amount'); $order->total_amount = $request->input('total_amount');
$order = $this->order;
if ($order->cycle === 'reset_price') { if ($order->cycle === 'reset_price') {
$order->type = 4; $order->type = 4;
} else if ($user->plan_id !== NULL && $order->plan_id !== $user->plan_id) { } else if ($user->plan_id !== NULL && $order->plan_id !== $user->plan_id) {