charge.js 705 字节
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getRechargeChannelsList = void 0;
const info_db = require("../../info_mysql/table");
//充值接口控制充值通道
async function getRechargeChannelsList({ root, args, context }) {
    let where = {
        is_enable: 1
    };
    if (process.env.ALPHA) { //灰度
        where = {};
    }
    let ms_recharge_channels_list = JSON.parse(JSON.stringify(await info_db.ms_recharge_channels.findAndCountAll({
        where: where,
        order: [["sort_serial", "DESC"]]
    })));
    return ms_recharge_channels_list.rows;
}
exports.getRechargeChannelsList = getRechargeChannelsList;
//# sourceMappingURL=charge.js.map