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";
    /**
     * 时间相关参数
     */
    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 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 = "验证码场景错误";


    /**
     * 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 HOST = "http://pay.hezhongpay.com"; // 请求地址
    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";
}
