ConfigService::get('transaction', 'cancel_unpaid_orders', 1), 'cancel_unpaid_orders_times' => ConfigService::get('transaction', 'cancel_unpaid_orders_times', 30), 'verification_orders' => ConfigService::get('transaction', 'verification_orders', 1), 'verification_orders_times' => ConfigService::get('transaction', 'verification_orders_times', 24), ]; return $config; } /** * @notes 设置交易设置 * @param $params * @author ljj * @date 2022/2/15 11:49 上午 */ public static function setConfig($params) { ConfigService::set('transaction', 'cancel_unpaid_orders', $params['cancel_unpaid_orders']); ConfigService::set('transaction', 'verification_orders', $params['verification_orders']); if (isset($params['cancel_unpaid_orders_times'])) { ConfigService::set('transaction', 'cancel_unpaid_orders_times', $params['cancel_unpaid_orders_times']); } if (isset($params['verification_orders_times'])) { ConfigService::set('transaction', 'verification_orders_times', $params['verification_orders_times']); } } }