package com.thinkgem.jeesite.common.constant;

import com.thinkgem.jeesite.common.config.Global;

import java.text.SimpleDateFormat;

/**
 * 常量数据
 */
public class ComCode {
    /**
     * 加密串
     */
    public static final String signCode = "Y0UKA@2018";

/**
 * 新juhezhong相关url
 * 2018/05/31
 */
/**
 * 域名
 **/
public static final String JUHEZHONG_URL = "http://pay.hezhongpay.com";
/**
 * 快捷B接口
 **/
public static final String QUICK_PAY = "/quick/pay";
/**
 * 查询订单接口
 **/
public static final String ORDER_QUERY = "/order/query";
/**
 * 银联WAP快捷（借）
 **/
public static final String QUICK_WEB_PAY = "/quick/web/pay";


    /**
     * juhezhong相关参数
     */
    public static final String HOST = "http://pay.hezhongpay.com"; // 请求地址
    public static final String MERCHANT_ID = Global.getConfig("pay.merchant_id"); // 商户号
    public static final String MERCHANT_KEY = Global.getConfig("pay.merchant.key");//"670993bf-dd22-4464-9d81-69595d36b794"; // 商户key
    public static final String MERCHANT_SECRET = Global.getConfig("pay.merchant.secret");//"289ada73-27db-49e0-b2ad-3ae1613a665a"; // 商户sescet
    public static final String MERCHANT_REG_URL = "/api/quick/merchant/apply"; // 注册商户
    public static final String ORDER_QUERY_URL = "/order/query"; // 查询订单
    public static final String SETTLE_UPDATE_URL = "/api/quick/settle/card/update"; // 修改结算卡信息
    public static final String MERCHANT_INFO_URL = "/api/quick/merchant/info"; // 查询商户费率
    public static final String RATE_UPDATE_URL = "/api/quick/merchant/update/rate"; // 修改商户费率
    public static final String QUICK_PAY_URL = "/api/quick/pre/pay"; // 快捷支付
    public static final String NO_INTEGRAL_QUICK_PAY_URL = "/quick/pay"; // 无积分快捷支付
    public static final String NO_INTEGRAL_ORDER_QUERY_URL = "/order/query"; // 查询订单
    public static final String NOTIFY_CALLBACK_URL = "http://youkapay.com:8080/youka-api/api/pay/notifyQuickPay";

    public static final String EXTRA_RATE = "200"; // 附加手续费（单位：分）

    public static final String INTEGRAL_MERCHANT_ID = Global.getConfig("pay.integral.merchant_id"); // 商户号
    public static final String INTEGRAL_MERCHANT_KEY = Global.getConfig("pay.integral.merchant.key");//"670993bf-dd22-4464-9d81-69595d36b794"; // 商户key
    public static final String INTEGRAL_MERCHANT_SECRET = Global.getConfig("pay.integral.merchant.secret");//"289ada73-27db-49e0-b2ad-3ae1613a665a"; // 商户sescet
    public static final String INTEGRAL_QUICK_PAY_URL = "/quick/pay"; // 积分快捷支付
    public static final String INTEGRAL_ORDER_QUERY_URL = "/order/query"; // 积分查询订单
    //快捷处理
    public static final String INTEGRAL_MERCHANT_REG_URL ="/api/quick/pay/handle";


    public static final String JFEN_MERCHANT_ID = Global.getConfig("pay.jfen.merchant_id"); // 商户号
    public static final String JFEN_MERCHANT_KEY = Global.getConfig("pay.jfen.merchant.key");//"670993bf-dd22-4464-9d81-69595d36b794"; // 商户key
    public static final String JFEN_MERCHANT_SECRET = Global.getConfig("pay.jfen.merchant.secret");//"289ada73-27db-49e0-b2ad-3ae1613a665a"; // 商户sescet
    //商户入网
    public static final String JFEN_MICRO_HANDLE_URL="/merchant/handle";
    //快捷处理订单
    public static final String JFEN_QUICK_PAY_URL="/api/quick/pay/handle";
    //银联二维码接口
    public static final String JFEN_UNION_PAY_URL = "/union/qrcode";
    //封顶快捷处理
    public static final String JFEN_PEAK_QUICK_PAY_URL="/peak/quick/pay/handle";


    /**
     * HUANQIUHUIJU 快捷支付
     */
    public static final String HUANQIUHUIJU_PAYURL = "http://pay.huanqiuhuiju.com/authsys/api/pay/shanglv/qpay/execute.do";
    public static final String HUANQIUHUIJU_MERCHANT_ID = Global.getConfig("huanqiuhuiju.merchant.id");
    public static final String HUANQIUHUIJU_MERCHANT_KEY = Global.getConfig("huanqiuhuiju.merchant.key");
    /**
     * duolabao相关参数
     *
     */
    public static final String DLB_HOST = "https://openapi.duolabao.com";// 店铺编号（需要用户提供）
    public static final String DLB_ACCESSKEY = "333833aa029449efb8ba37535f7fcaef0ac244ff"; // 公钥
    public static final String DLB_SECRETKEY = "a5dac3f968ee4f3d966eafe1f5f323afa668f9e5"; // 私钥
    public static final String DLB_CUSTOMERNUM = "10001114513826266541863";// 商户编号（需要用户提供）
    public static final String DLB_SHOPNUM = "10001214653797401143127";// 店铺编号（需要用户提供）
    public static final String DLB_MACHINENUM = "10011014593073262477203";// 虚拟机序列（根据商户编号或者店铺编号获得）

    public static final String DLB_CREATE_URL = "/v1/customer/order/pay/create";// 创建支付订单的接口


    /**
     * 微信相关
     */
    public static final String WEIXIN_MERCHANT_ID = Global.getConfig("weixin.merchant.id");// 店铺编号（需要用户提供）
    public static final String WEIXIN_APPID = Global.getConfig("weixin.appid");
    public static final String WEIXIN_APPSECRET = Global.getConfig("weixin.appid");
    public static final String WEIXIN_UNIFIEDPAY_URL = "https://api.mch.weixin.qq.com/pay/unifiedorder";


    /**
     * 时间相关参数
     */
    public static final long mills = 1000;
    public static final long seconds = 60;
    public static final long minutes = 60;
    public static final long hours = 24;
    public static final SimpleDateFormat YYYYMMDD_HHMMSS = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
    public static final SimpleDateFormat YYYYMMDDHHMM = new SimpleDateFormat("yyyyMMddhhmm");
    /**
     * 系统公共
     */
    public static final String STATUS_CODE_2000 = "2000";
    public static final String STATUS_CODE_2000_DESC = "成功";
    public static final String STATUS_CODE_9999 = "9999";
    public static final String STATUS_CODE_9999_DESC = "验证SIGN失败";
    public static final String STATUS_CODE_9998 = "9998";
    public static final String STATUS_CODE_9998_DESC = "通用异常";

    /**
     * 验证码
     */
    public static final String STATUS_CODE_3001 = "3001";
    public static final String STATUS_CODE_3001_DESC = "验证码未输入功能代码或手机号";

    /**
     * 用户相关
     */
    public static final String STATUS_CODE_4001 = "4001";
    public static final String STATUS_CODE_4001_DESC = "必传信息为空";
    public static final String STATUS_CODE_4002 = "4002";
    public static final String STATUS_CODE_4002_DESC = "用户名或密码错误";
    public static final String STATUS_CODE_4003 = "4003";
    public static final String STATUS_CODE_4003_DESC = "用户名或验证码错误";
    public static final String STATUS_CODE_4004 = "4004";
    public static final String STATUS_CODE_4004_DESC = "该手机号尚未注册，请注册后登录";
    public static final String STATUS_CODE_4005 = "4005";
    public static final String STATUS_CODE_4005_DESC = "修改密码失败";
    public static final String STATUS_CODE_4006 = "4006";
    public static final String STATUS_CODE_4006_DESC = "系统中没有该推荐用户";
    public static final String STATUS_CODE_4007 = "4007";
    public static final String STATUS_CODE_4007_DESC = "注册手机号已存在";
    public static final String STATUS_CODE_4008 = "4008";
    public static final String STATUS_CODE_4008_DESC = "注册手机号与推荐手机号重复";
    public static final String STATUS_CODE_4009 = "4009";
    public static final String STATUS_CODE_4009_DESC = "验证码已过期";
    public static final String STATUS_CODE_4010 = "4010";
    public static final String STATUS_CODE_4010_DESC = "验证码场景错误";

    /**
     * 卡片相关
     */
    public static final String STATUS_CODE_5001 = "5001";
    public static final String STATUS_CODE_5001_DESC = "卡片注册异常";

    /**
     * 支付订单相关
     */
    public static final String STATUS_CODE_6001 = "6001";
    public static final String STATUS_CODE_6001_DESC = "订单号不存在";


    /**
     * payChannel 通道
     */
    public static final String PAYCHANNEL_HL1 = "quick_no_integral";
    public static final String PAYCHANNEL_HL2 = "quick_jfen";
    public static final String PAYCHANNEL_HL3 = "quick_integral";
    public static final String PAYCHANNEL_HUANQIUHUIJU = "quick_huanqiuhuiju";

    /**
     * 支付方式
     */
    public static final String PAYMETHOD_QUICK = "quick";
    public static final String PAYMETHOD_WX = "wx";
    public static final String PAYMETHOD_ALI = "ali";
    public static final String PAYMETHOD_PUTFORWARD = "put_forward";

    /**
     * 平安银行
     */
    public static final String PINGANBANK_ENTERPRISECODE = Global.getConfig("pinganbank.enterprisecode");// 企业代码
    public static final String PINGANBANK_ACCOUNT = Global.getConfig("pinganbank.account"); // 企业账号

    public static final String PINGANBANK_OUTACCTNO = Global.getConfig("pinganbank.outacctno"); // 企业的付款人账号
    public static final String PINGANBANK_OUTACCTNAME = Global.getConfig("pinganbank.outacctname"); // 企业的付款人账号
    public static final String PINGANBANK_OUTACCTBANK = Global.getConfig("pinganbank.outacctbank"); // 企业银行代码
    public static final String PINGANBANK_B2BICURL = Global.getConfig("pinganbank.b2bicurl"); // 企业银行代码



}
