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

This commit is contained in:
xboard 2025-05-08 22:14:56 +08:00
parent 61d8c0ed66
commit 7b45351f99
4 changed files with 7 additions and 7 deletions

View File

@ -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');

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