fix(admin): Fix order assignment issue in admin panel

This commit is contained in:
xboard
2025-05-08 22:14:56 +08:00
parent 1db1e885c2
commit b614117bd2
4 changed files with 7 additions and 7 deletions
@@ -221,7 +221,7 @@ class OrderController extends Controller
$order->user_id = $user->id;
$order->plan_id = $plan->id;
$period = $request->input('period');
$order->period = (int) PlanService::getPeriodKey((string) $period);
$order->period = PlanService::getPeriodKey((string) $period);
$order->trade_no = Helper::guid();
$order->total_amount = $request->input('total_amount');
+1 -1
View File
@@ -13,7 +13,7 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
* @property int $user_id
* @property int $plan_id
* @property int|null $payment_id
* @property int $period
* @property string $period
* @property string $trade_no
* @property int $total_amount
* @property int|null $handling_amount
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long