feat: 新增

This commit is contained in:
陈狼 2025-02-16 22:44:10 +08:00
parent afaccea23d
commit 23ebe87caf
2 changed files with 6 additions and 6 deletions

View File

@ -85,7 +85,7 @@ class WithdrawController
$user=User::find($user_id); $user=User::find($user_id);
//提现金额 //提现金额
$rate = ExchangeRate::where('type','BDT')->get(); $rate = ExchangeRate::where('type','BDT')->get();
$money = $money_no/100*$rate[0]['points']; $money = $money_no/100*$rate[0]['points']+500;
//用户积分减少$money //用户积分减少$money
UserRewardDao::base($user_id, 1, -$money_no, '提现'); UserRewardDao::base($user_id, 1, -$money_no, '提现');
//大于1000等待管理员审核 //大于1000等待管理员审核
@ -158,7 +158,7 @@ class WithdrawController
$userbank->save(); $userbank->save();
$rate = ExchangeRate::where('type','BDT')->get(); $rate = ExchangeRate::where('type','BDT')->get();
//计算积分 //计算积分
$money = $amount*100/$rate[0]['points']; $money = $amount*100/$rate[0]['points']+500;
//用户id //用户id
$user_id=$request->data['id']; $user_id=$request->data['id'];
//用户积分增加$money //用户积分增加$money

View File

@ -33,10 +33,10 @@ return [
'host' => '127.0.0.1', 'host' => '127.0.0.1',
'port' => '3306', 'port' => '3306',
'database' => 'app_hd', 'database' => 'app_hd',
'username' => 'app_hd', // 'username' => 'app_hd',
'password' => 'fmW4NwwXMxN8ShSM', // 'password' => 'fmW4NwwXMxN8ShSM',
// 'username' => 'root', 'username' => 'root',
// 'password' => '123456', 'password' => '123456',
'charset' => 'utf8mb4', 'charset' => 'utf8mb4',
'collation' => 'utf8mb4_general_ci', 'collation' => 'utf8mb4_general_ci',
'prefix' => '', 'prefix' => '',