charge.ts 508 字节
import *  as info_db from '../../info_mysql/table';

//充值接口控制充值通道
export async function getRechargeChannelsList({ root, args, context }: any) {
    let where :any={
        is_enable: 1
    }
    if(process.env.ALPHA){//灰度
        where={}
    }
    let ms_recharge_channels_list: any = JSON.parse(JSON.stringify(await info_db.ms_recharge_channels.findAndCountAll({
        where: where,
        order: [["sort_serial", "DESC"]]
    })))
    return ms_recharge_channels_list.rows;
}