|
|
@@ -4,6 +4,7 @@ namespace App\Http\logic\api;
|
|
|
|
|
|
use App\Constant\Payment;
|
|
|
use App\dao\Estatisticas\RechargeWithDraw;
|
|
|
+use App\Http\helper\NumConfig;
|
|
|
use App\Inter\CashierInterFace;
|
|
|
use App\Models\PrivateMail;
|
|
|
use App\Models\RecordUserDataStatistics;
|
|
|
@@ -190,6 +191,7 @@ class StarPayCashierLogic implements CashierInterFace
|
|
|
'State' => 2,
|
|
|
'agent' => $agentID,
|
|
|
'finishDate' => $now,
|
|
|
+ 'withdraw_fee' => $realityFee * NumConfig::NUM_VALUE,
|
|
|
];
|
|
|
|
|
|
// 增加提现记录
|
|
|
@@ -235,9 +237,7 @@ class StarPayCashierLogic implements CashierInterFace
|
|
|
|
|
|
$ServiceFee = $query->ServiceFee;
|
|
|
RecordUserDataStatistics::updateOrAdd($UserID, $TakeMoney, 0, $ServiceFee);
|
|
|
- $fee = DB::table('QPAccountsDB.dbo.OrderWithDraw')->where('OrderId', $OrderId)
|
|
|
- ->value('withdraw_fee');
|
|
|
- (new RechargeWithDraw())->withDraw($UserID, $TakeMoney, $fee, $ServiceFee);
|
|
|
+ (new RechargeWithDraw())->withDraw($UserID, $TakeMoney, $realityFee * NumConfig::NUM_VALUE, $ServiceFee);
|
|
|
|
|
|
$redis = Redis::connection();
|
|
|
$redis->incr('draw_'.date('Ymd').$UserID);
|