feat: 修改了商店控制器以从参数中获取价格

This commit is contained in:
mkm 2024-06-27 14:26:39 +08:00
parent 194db4c3df
commit 72c64d29d9

View File

@ -98,7 +98,7 @@ class StoreController extends BaseApiController
'other_uid'=>$this->userId,
'staff_id'=>0,
'order_id'=>getNewOrderId('CZ'),
'price'=>Config::where('name','recharge')->value('value')??1000,
'price'=>$params['price']??1000,
'recharge_type'=>'INDUSTRYMEMBERS',
];
$order = UserRecharge::create($data);