|
|
@@ -5,6 +5,7 @@ namespace App\Console\Commands;
|
|
|
|
|
|
|
|
|
use App\Facade\TableName;
|
|
|
+use App\Http\helper\NumConfig;
|
|
|
use App\Models\AccountsInfo;
|
|
|
use App\Models\Cpf;
|
|
|
use App\Models\SystemStatusInfo;
|
|
|
@@ -131,20 +132,17 @@ class ExemptReview extends Command
|
|
|
continue;
|
|
|
}
|
|
|
// 读取免审配置
|
|
|
- $config = DB::table(TableName::agent().'withdrawal_position_config')->where('status', 1)->first();
|
|
|
- if ($config) {
|
|
|
-
|
|
|
- $agent = $config->agent;
|
|
|
- if (empty($agent)) { // 默认第一家
|
|
|
- $agent = DB::connection('write')->table('agent.dbo.admin_configs')->where('config_value', 1)
|
|
|
- ->where('type', 'cash')->where('status', 1)->first()->config_value;
|
|
|
- }
|
|
|
-
|
|
|
- // 验证用户提现方式
|
|
|
- $verifyAccountWithdrawal = $WithdrawalModel->AccountWithDrawInfo($value->UserID, $agent);
|
|
|
- if (!$verifyAccountWithdrawal) {
|
|
|
- Log::info('不支持的提现格式'.$value->OrderId);
|
|
|
- continue;
|
|
|
+// $config = DB::table(TableName::agent().'withdrawal_position_config')->where('status', 1)->first();
|
|
|
+ if (true) {
|
|
|
+
|
|
|
+ if($value->PixType == 2){
|
|
|
+ $agent = 101;
|
|
|
+ }else{
|
|
|
+ if(($value->WithDraw/NumConfig::NUM_VALUE)<20){
|
|
|
+ $agent = 99;
|
|
|
+ }else{
|
|
|
+ $agent = 101;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
$redis = Redis::connection();
|
|
|
@@ -155,7 +153,7 @@ class ExemptReview extends Command
|
|
|
|
|
|
$redis->set($order_sn.'key1', $order_sn, 3600 * 24);
|
|
|
$log = ['user_id' => $value->UserID,
|
|
|
- 'config_id' => $config->id,
|
|
|
+// 'config_id' => $config->id,
|
|
|
'use_quota' => intval($value->WithDraw),
|
|
|
'order_sn' => $value->OrderId];
|
|
|
DB::connection('write')->table('agent.dbo.withdrawal_position_log')
|
|
|
@@ -184,7 +182,7 @@ class ExemptReview extends Command
|
|
|
$BranchBank = $value->BranchBank;
|
|
|
$BankNO = $value->BankNO;
|
|
|
// 改变状态处理中
|
|
|
- $agentID = DB::connection('write')->table('agent.dbo.admin_configs')->where('config_value', $agent)
|
|
|
+ $agentID = DB::connection('write')->table('agent.dbo.admin_configs')->where('config_value', strval($agent))
|
|
|
->select('id')->first()->id ?? '';
|
|
|
|
|
|
DB::connection('write')->table('QPAccountsDB.dbo.OrderWithDraw')->where('OrderId', $OrderId)
|