<?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,
    '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'=>'现金钱包',
        ],
    ],
    'shopFlowType' => [
        'remit' => [
            'value' => 'remit',
            'label' => '汇款充值',
        ],
        'recharge' => [
            'value' => 'recharge',
            'label' => '第三方充值',
        ],
        'transfer_out' => [
            'value' => 'transfer_out',
            'label' => '转出',
        ],
        'transfer_in' => [
            'value' => 'transfer_in',
            'label' => '转入',
        ],
        'pay' => [
            'value' => 'pay',
            'label' => '支付',
        ],
        'decRecharge' => [
            'value' => 'decRecharge',
            'label' => '报单充入',
        ],
        'orderRecharge' => [
            'value' => 'orderRecharge',
            'label' => '订货充入',
        ],
        'freight' => [
            'value' => 'freight',
            'label' => '支付运费',
        ],
        'adjust_recharge' => [
            'value' => 'adjust_recharge',
            'label' => '待调整充入',
        ],
        'adjust_deduct' => [
            'value' => 'adjust_deduct',
            'label' => '待调整扣除',
        ],
        'adjust_transfer_out' => [
            'value' => 'adjust_transfer_out',
            'label' => '待调整转出',
        ],
        'adjust_transfer_in' => [
            'value' => 'adjust_transfer_in',
            'label' => '待调整转入',
        ],
        'exchange_recharge' => [
            'value' => 'exchange_recharge',
            'label' => '换货充入',
        ],
        'exchange_deduct' => [
            'value' => 'exchange_deduct',
            'label' => '换货扣除',
        ],
        'delete_order_deduct' => [
            'value' => 'delete_order_deduct',
            'label' => '删单自动扣除',
        ],
        'delete_order_recharge' => [
            'value' => 'delete_order_recharge',
            'label' => '删单自动充入',
        ],
        'delete_order_return' => [
            'value' => 'delete_order_return',
            'label' => '删单扣回',
        ],
        'repair_pay' => [
            'value' => 'repair_pay',
            'label' => '支付维修费',
        ],
        'after_sale_exchange_recharge' => [
            'value' => 'after_sale_exchange_recharge',
            'label' => '售后调货充入',
        ],
        'after_sale_exchange_deduct' => [
            'value' => 'after_sale_exchange_deduct',
            'label' => '售后调货扣费',
        ],
        'oms_deduct' => [
            'value' => 'oms_deduct',
            'label' => 'OMS扣款',
        ],
        'deduct' => [
            'value' => 'deduct',
            'label' => '扣除',
        ],
        'incr' => [
            'value' => 'incr',
            'label' => '增加',
        ],
        'other' => [
            'value' => 'other',
            'label' => '其它',
        ],
        'handle' => [
            'value' => 'handle',
            'label' => '管理员手动调整',
        ],
    ],
    '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' => '未激活',
        ],
        1 => [
            'value' => '1',
            'label' => '正常',
        ],
        2 => [
            'value' => '2',
            'label' => '注销',
        ],
        3 => [
            'value' => '3',
            'label' => '黑名单',
        ],
        4 => [
            'value' => '4',
            'label' => '停发',
        ],
        9 => [
            'value' => '9',
            'label' => '永久关停',
        ],
    ],
    'bonusWalletType' => [
        'bonus' => [
            'name' => 'bonus',
            'label' => '会员账户奖金',
        ],
        'reconsume_points' => [
            'name' => 'bonus',
            'label' => '复消积分余额',
        ],
        'cash' => [
            'name' => 'cash',
            'label' => '会员账户余额',
        ],
//        'cf' => [
//            'name' => 'cf',
//            'label' => '车房养老奖余额',
//        ],
//        'lx' => [
//            'name' => 'lx',
//            'label' => '领袖分红奖余额',
//        ],
    ],
    'auditStatus' => [
        'un' => [
            'value' => 0,
            'label' => '未审核'
        ],
        'true' => [
            'value' => 1,
            'label' => '已审核'
        ],
        'false' => [
            'value' => 2,
            'label' => '审核失败'
        ],
        'reject' => [
            'value' => 3,
            'label' => '已拒绝'
        ],
    ],
    // 发货状态
    'deliveryStatus' => [
        '0' => [
            'value' => 0,
            'label' => '未发货'
        ],
        'notDelivery' => [
            'value' => 0,
            'label' => '未发货'
        ],
        '1' => [
            'value' => 1,
            'label' => '已发货'
        ],
        'delivered' => [
            'value' => 1,
            'label' => '已发货'
        ],
        '2' => [
            'value' => 2,
            'label' => '确认收货'
        ],
        'confirm' => [
            'value' => 2,
            'label' => '确认收货'
        ],
    ],
    'orderStatus' => [
        '0' => [
            'value' => 0,
            'label' => '待支付'
        ],
        'notPaid' => [
            'value' => 0,
            'label' => '待支付'
        ],
        '1' => [
            'value' => 1,
            'label' => '已支付'
        ],
        'paid' => [
            'value' => 1,
            'label' => '已支付'
        ],
        // 此时进入发货流程参考发货状态
        '3' => [
            'value' => 3,
            'label' => '物流状态'
        ],
        'delivery' => [
            'value' => 3,
            'label' => '物流状态'
        ],
        '4' => [
            'value' => 4,
            'label' => '订单完成'
        ],
        'complete' => [
            'value' => 4,
            'label' => '订单完成'
        ],
        '5' => [
            'value' => 5,
            'label' => '订单取消'
        ],
        'cancel' => [
            'value' => 5,
            'label' => '订单取消'
        ],
        '6' => [
            'value' => 6,
            'label' => '订单删除'
        ],
        'del' => [
            'value' => 6,
            'label' => '订单删除'
        ],
    ],
    'exportModule' => [
        'shop' => ['label' => '商城管理', 'value'=>'shop'],
        'user' => ['label' => '会员管理', 'value'=>'user'],
        'atlas' => ['label' => '网络图谱', 'value'=>'atlas'],
        'reconsume' => ['label' => '复销管理', 'value'=>'reconsume'],
        'bonus' => ['label' => '奖金管理', 'value'=>'bonus'],
        //'report' => ['label' => '报表管理', 'value'=>'report'],
        'finance' => ['label' => '财务管理', 'value'=>'finance'],
        //'log' => ['label' => '日志管理', 'value'=>'log'],
    ],
    'snowFake' => [
        'dataCenterId' => 1,//
        'workerId' => 1,
    ],
    'pageSnowFake' => [
        'dataCenterId' => 2,//
        'workerId' => 2,
    ],
];
