Compare commits

..

2 Commits

Author SHA1 Message Date
陈狼 595e8b3cdd Merge branch 'master' of https://git.shagain.club/shulang/webman 2025-02-17 23:27:51 +08:00
陈狼 4a2a4e1dd6 feat: 新增 2025-02-17 23:27:45 +08:00
2 changed files with 8 additions and 10 deletions

View File

@ -60,8 +60,6 @@ class UserbankController
'remark' => $remark, 'remark' => $remark,
]); ]);
}else{ }else{
var_dump(22);
Userbank::create([ Userbank::create([
'user_id' => $user_id, 'user_id' => $user_id,
'account' => $account, 'account' => $account,

View File

@ -144,19 +144,19 @@ class WithdrawController
$res = Payment::pushMoney($amount,$bank_username,$account,$bank_name); $res = Payment::pushMoney($amount,$bank_username,$account,$bank_name);
var_dump($res); var_dump($res);
if ($res['Success'] == 200) { if ($res['Success'] == 200) {
$userbank = Userbank::where('id',$id)->first(); $Withdraw = Withdraw::where('id',$id)->first();
$userbank->status = 2; $Withdraw->status = 2;
$userbank->status_text = '已到账'; $Withdraw->status_text = '已到账';
$userbank->save(); $Withdraw->save();
return ApiResponseApp::success(null,'转账成功'); return ApiResponseApp::success(null,'转账成功');
}else{ }else{
return ApiResponseApp::error(null,'转账失败'); return ApiResponseApp::error(null,'转账失败');
} }
}else{ }else{
$userbank = Userbank::where('id',$id)->first(); $Withdraw = Withdraw::where('id',$id)->first();
$userbank->status = 3; $Withdraw->status = 3;
$userbank->status_text = '已驳回'; $Withdraw->status_text = '已驳回';
$userbank->save(); $Withdraw->save();
$rate = ExchangeRate::where('type','BDT')->get(); $rate = ExchangeRate::where('type','BDT')->get();
//计算积分 //计算积分
$money = $amount*100/$rate[0]['points']+300; $money = $amount*100/$rate[0]['points']+300;