|
|
@@ -169,6 +169,16 @@ class AiNewPayCashierLogic implements CashierInterFace
|
|
|
'finishDate' => $now
|
|
|
];
|
|
|
|
|
|
+ $payConfigService = new PayConfig();
|
|
|
+ $config = $payConfigService->getConfig('AiNewPayOut');
|
|
|
+
|
|
|
+ $payRates = $config['pay_rate'];
|
|
|
+ if(is_array($payRates)){
|
|
|
+ $payMethod = $query->PixType??1;
|
|
|
+ $payRate = $payRates[$payMethod] ?? $payRates[1];
|
|
|
+ $withdraw_data['withdraw_fee'] = intval(($query->WithDraw * ($payRate[0] ?? 15))/100)+($payRate[1]??0.3)*NumConfig::NUM_VALUE;
|
|
|
+ }
|
|
|
+
|
|
|
$first = DB::connection('write')->table('QPAccountsDB.dbo.UserTabData')->where('UserID', $UserID)->first();
|
|
|
if ($first) {
|
|
|
DB::connection('write')->table('QPAccountsDB.dbo.UserTabData')->where('UserID', $UserID)->increment('TakeMoney', $TakeMoney);
|