<?php
$nationParams = require_once __DIR__ . '/params-nation.php';
return [
    'adminEmail' => 'admin@example.com',
    'supportEmail' => 'support@example.com',
    'nation' => $nationParams,
    'backAccessTokenExpiresIn' => 3000 * 60,
    'backRefreshTokenExpiresIn' => 3000 * 60 * 60,
    'frontAccessTokenExpiresIn' => 3000 * 60,
    'frontRefreshTokenExpiresIn' => 3000 * 60 * 60,
    'user.passwordResetTokenExpire' => 3600,
    'operationTimeOut' => 60 * 60 * 24,     // 这里设置的15分钟超时
    'pageSize' => 20,
    'http' => [
        'shopApi' => [
            'authKey' => 'sErypUtORfuloNdiTYLINArdtHErSAnDkiRPRElTaiNgIneUSEardopEnTAcErNO',
            'timeDiff' => 0,
        ],
        'remoteUploadApi' => [
            'authKey' => 'k4Ao7KWVbvg3Z2L6KLwN9OoDjQL5SioJffIPoODATxCynuEVEAt0278kg7r9FHiS',
            'host' => $mainConfig['remoteUploadHost'],
            'remoteUploadNotifyUrl' => '',
        ],
        'backendToFrontendApi' => [
            'authKey' => 'hYkDsjhj6CfGMKbRMjoKtMauMEHiufyikGmziqy2anXYTMXhsUkrPC6YbvyHmdLD',
            'timeDiff' => 0,
        ],
        'lingYunGongApi' => [
            'host' => $mainConfig['idCardVerify']['host'],
            'authToken' => [
                'path' => '/uaa/v1/auth/tokens',
                'clientId' => $mainConfig['idCardVerify']['clientId'],
            ],
            'hasIdCardInfoPath' => '/socialwork/v1/external/freedom-emps/has-idcard-info/%s',
        ]
//        'requestShop' => [
//            'url' => $mainConfig['requestShopUrl'],
//            'username' => 'bonus_api',
//            'password' => 'bonus_api',
//        ]

    ],
    'shopWalletType' => [
        'cash' =>[
            'value'=>'cash',
            'title'=>'Cash wallet',//现金钱包
        ],
    ],
    'shopFlowType' => [
        'remit' => [
            'value' => 'remit',
            'label' => 'Remittance recharge',//汇款充值
        ],
        'recharge' => [
            'value' => 'recharge',
            'label' => 'Rhird-party recharge',//第三方充值
        ],
        'transfer_out' => [
            'value' => 'transfer_out',
            'label' => 'Transfer out',//转出
        ],
        'transfer_in' => [
            'value' => 'transfer_in',
            'label' => 'Rransfer into',//转入
        ],
        'pay' => [
            'value' => 'pay',
            'label' => 'Pay',//支付
        ],
        'decRecharge' => [
            'value' => 'decRecharge',
            'label' => 'Welcome pack recharge',//报单充入
        ],
        'orderRecharge' => [
            'value' => 'orderRecharge',
            'label' => 'Order recharge',//订货充入
        ],
        'freight' => [
            'value' => 'freight',
            'label' => 'Freight payment',//支付运费
        ],
        'adjust_recharge' => [
            'value' => 'adjust_recharge',
            'label' => 'Adjusted recharge',//待调整充入
        ],
        'adjust_deduct' => [
            'value' => 'adjust_deduct',
            'label' => 'Adjusted deduct',//待调整扣除
        ],
        'adjust_transfer_out' => [
            'value' => 'adjust_transfer_out',
            'label' => 'Adjusted transfer out',//待调整转出
        ],
        'adjust_transfer_in' => [
            'value' => 'adjust_transfer_in',
            'label' => 'Adjusted transfer in',//待调整转入
        ],
        'exchange_recharge' => [
            'value' => 'exchange_recharge',
            'label' => 'Exchange recharge',//换货充入
        ],
        'exchange_deduct' => [
            'value' => 'exchange_deduct',
            'label' => 'Exchange deduct',//换货扣除
        ],
        'delete_order_deduct' => [
            'value' => 'delete_order_deduct',
            'label' => 'Delete order deduct',//删单自动扣除
        ],
        'delete_order_recharge' => [
            'value' => 'delete_order_recharge',
            'label' => 'Delete order recharge',//删单自动充入
        ],
        'delete_order_return' => [
            'value' => 'delete_order_return',
            'label' => 'Delete order return',//删单扣回
        ],
        'repair_pay' => [
            'value' => 'repair_pay',
            'label' => 'Repair payment',//支付维修费
        ],
        'after_sale_exchange_recharge' => [
            'value' => 'after_sale_exchange_recharge',
            'label' => 'After-sale exchange recharge',//售后调货充入
        ],
        'after_sale_exchange_deduct' => [
            'value' => 'after_sale_exchange_deduct',
            'label' => 'After-sale exchange deduct',//售后调货扣费
        ],
        'oms_deduct' => [
            'value' => 'oms_deduct',
            'label' => 'OMS deduct',//OMS扣款
        ],
        'deduct' => [
            'value' => 'deduct',
            'label' => 'Deduct',//扣除
        ],
        'incr' => [
            'value' => 'incr',
            'label' => 'Increase',//增加
        ],
        'other' => [
            'value' => 'other',
            'label' => 'Other',//其它
        ],
        'handle' => [
            'value' => 'handle',
            'label' => 'Administrator manual adjustment',//管理员手动调整
        ],
    ],
    'enableLog' => true,
    'isRemoteUpload' => false, // 是否上传至远程
    'excelLocalDir' => 'excel_export', // 是否上传至远程
    'superAdminRoleId' => '666A7F102B8D6C66E055736AECE8644D',
    'mainAdminId' => '65F27BCE7FD278FFE055736AECE8644D',
    'mainUserId' => '670B84FD7C216D4EE055736AECE8644D',
    'hbCouponsProId' => '1000000000', // 货补优惠券
    'storeDecRoleId' => '8976C62F40064D8AB357BE07C8A3CA8F', // 报单中心里面店铺的ID
    'countyStoreDecRoleId' => '810916A06B304162902408A6B9E5D177', // 报单中心里面区级店的ID
    'daysDiff' => 0,
    'userStatus' => [
        0 => [
            'value' => '0',
            'label' => 'Inactive',//未激活
        ],
        1 => [
            'value' => '1',
            'label' => 'Normal',//正常
        ],
        2 => [
            'value' => '2',
            'label' => 'Logout',//注销
        ],
        3 => [
            'value' => '3',
            'label' => 'Blacklist',//黑名单
        ],
        4 => [
            'value' => '4',
            'label' => 'Suspended',//停发
        ],
        9 => [
            'value' => '9',
            'label' => 'Permanent shut down',//永久关停
        ],
    ],
    'bonusWalletType' => [
        'bonus' => [
            'name' => 'bonus',
            'label' => 'Account bonus',//会员账户奖金
        ],
        'reconsume_points' => [
            'name' => 'bonus',
            'label' => 'Reselling points balance',//复销积分余额
        ],
        'cash' => [
            'name' => 'cash',
            'label' => 'Account Ecoin',//会员账户余额
        ],
        'exchange_points' => [
            'name' => 'bonus',
            'label' => 'Exchange points balance',//兑换积分余额
        ],
//        'cf' => [
//            'name' => 'cf',
//            'label' => '车房养老奖余额',
//        ],
//        'lx' => [
//            'name' => 'lx',
//            'label' => '领袖分红奖余额',
//        ],
        'tourism_points' => [
            'name' => 'tourism_points',
            'label' => 'Travel points balance',//旅游积分余额
        ],
        'garage_points' => [
            'name' => 'garage_points',
            'label' => 'Car points balance',//名车积分余额
        ],
        'villa_points' => [
            'name' => 'villa_points',
            'label' => 'Villa points balance',//豪宅积分余额
        ],
    ],
    'auditStatus' => [
        'un' => [
            'value' => 0,
            'label' => 'Unaudited'//未审核
        ],
        'true' => [
            'value' => 1,
            'label' => 'Audited'//已审核
        ],
        'false' => [
            'value' => 2,
            'label' => 'Audit failure'//审核失败
        ],
        'reject' => [
            'value' => 3,
            'label' => 'Refused'//已拒绝
        ],
    ],
    // 发货状态
    'deliveryStatus' => [
        '0' => [
            'value' => 0,
            'label' => 'Undelivered'//未发货
        ],
        'notDelivery' => [
            'value' => 0,
            'label' => 'Undelivered'//未发货
        ],
        '1' => [
            'value' => 1,
            'label' => 'Delivered'//已发货
        ],
        'delivered' => [
            'value' => 1,
            'label' => 'Delivered'//已发货
        ],
        '2' => [
            'value' => 2,
            'label' => 'Confirm receipt'//确认收货
        ],
        'confirm' => [
            'value' => 2,
            'label' => 'Confirm receipt'//确认收货
        ],
    ],
    'orderStatus' => [
        '0' => [
            'value' => 0,
            'label' => 'Unpaid'//待支付
        ],
        'notPaid' => [
            'value' => 0,
            'label' => 'Unpaid'//待支付
        ],
        '1' => [
            'value' => 1,
            'label' => 'Paid'//已支付
        ],
        'paid' => [
            'value' => 1,
            'label' => 'Paid'//已支付
        ],
        // 此时进入发货流程参考发货状态
        '3' => [
            'value' => 3,
            'label' => 'Logistics status'//物流状态
        ],
        'delivery' => [
            'value' => 3,
            'label' => 'Logistics status'//物流状态
        ],
        '4' => [
            'value' => 4,
            'label' => 'Order completion'//订单完成
        ],
        'complete' => [
            'value' => 4,
            'label' => 'Order completion'//订单完成
        ],
        '5' => [
            'value' => 5,
            'label' => 'Order cancellation',//订单取消
        ],
        'cancel' => [
            'value' => 5,
            'label' => 'Order cancellation',//订单取消
        ],
        '6' => [
            'value' => 6,
            'label' => 'Order deletion',//订单删除
        ],
        'del' => [
            'value' => 6,
            'label' => 'Order deletion',//订单删除
        ],
        '7' => [
            'value' => 7,
            'label' => 'Order refund',//订单退款
        ],
        'refund' => [
            'value' => 7,
            'label' => 'Order refund',//订单退款
        ],
        '-1' => [
            'value' => -1,
            'label' => 'Payment failed',//支付失败
        ],
        'failPaid' => [
            'value' => -1,
            'label' => 'Payment failed',//支付失败
        ],
    ],
    'exportModule' => [
        'shop' => ['label' => 'Mall management', 'value'=>'shop'],//商城管理
        'user' => ['label' => 'Member management', 'value'=>'user'],//会员管理
        'atlas' => ['label' => 'Network Chart', 'value'=>'atlas'],//网络图谱
        'reconsume' => ['label' => 'Resale management', 'value'=>'reconsume'],//复销管理
        'bonus' => ['label' => 'Bonus management', 'value'=>'bonus'],//奖金管理
        //'report' => ['label' => '报表管理', 'value'=>'report'],
        'finance' => ['label' => 'financial management', 'value'=>'finance'],//财务管理
        //'log' => ['label' => '日志管理', 'value'=>'log'],
    ],
    'snowFake' => [
        'dataCenterId' => 1,//
        'workerId' => 1,
    ],
    'pageSnowFake' => [
        'dataCenterId' => 2,//
        'workerId' => 2,
    ],
];
