优化推送订单功能
This commit is contained in:
@@ -33,4 +33,22 @@ return [
|
||||
'balance_credit_url' => '/api/v1/balance/credit',
|
||||
'transaction_status_url' => '/api/v1/transaction/status',
|
||||
],
|
||||
// Angpow Import API(商城调用对方 cashmarket/merchant-api 时使用)
|
||||
'angpow_import' => [
|
||||
// 对方 base_url,例如 https://ss2-staging2.ttwd8.com
|
||||
'base_url' => strval(env('PLAYX_ANGPOW_IMPORT_BASE_URL', '')),
|
||||
// 路径:文档示例为 /api/v3/merchant/angpow-imports;对方 curl 示例为 /cashmarket/v3/merchant-api/angpow-imports
|
||||
'path' => strval(env('PLAYX_ANGPOW_IMPORT_PATH', '/api/v3/merchant/angpow-imports')),
|
||||
// merchant_code(固定 plx 或按环境配置)
|
||||
'merchant_code' => strval(env('PLAYX_ANGPOW_MERCHANT_CODE', 'plx')),
|
||||
// HMAC-SHA1 的 auth key(生产环境由 BA 提供)
|
||||
'auth_key' => strval(env('PLAYX_ANGPOW_IMPORT_AUTH_KEY', '')),
|
||||
// HTTPS:指定 CA 证书包路径(推荐,下载 https://curl.se/ca/cacert.pem 后填绝对路径,可避免 cURL error 60)
|
||||
'ca_file' => strval(env('PLAYX_ANGPOW_IMPORT_CACERT', '')),
|
||||
// 是否校验 SSL(生产必须为 true;本地无 CA 时可临时 false,勿用于生产)
|
||||
'verify_ssl' => filter_var(env('PLAYX_ANGPOW_IMPORT_VERIFY_SSL', '1'), FILTER_VALIDATE_BOOLEAN),
|
||||
// 固定货币展示映射
|
||||
'currency' => 'MYR',
|
||||
'visual_name' => 'Angpow',
|
||||
],
|
||||
];
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
use support\Log;
|
||||
use support\Request;
|
||||
use app\process\Http;
|
||||
use app\process\AngpowImportJobs;
|
||||
|
||||
global $argv;
|
||||
|
||||
@@ -65,4 +66,9 @@ return [
|
||||
'handler' => app\process\PlayxJobs::class,
|
||||
'reloadable' => false,
|
||||
],
|
||||
// Angpow 导入推送任务:订单兑换后推送到对方平台
|
||||
'angpow_import_jobs' => [
|
||||
'handler' => AngpowImportJobs::class,
|
||||
'reloadable' => false,
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user