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
oQIDAQAB
-----END PUBLIC KEY-----
`
)

// 私钥文件目录C:\Users\Administrator\Desktop\拉克拉\拉卡拉私钥生成\RSA密钥生成工具V1.0.0\RSAKeys
const (
	AppID      = "OP10001133"               // 接入方唯一ID lakala分配
	SerialNo   = "01970f6b2f33"             // 接入方生成的cer证书序列号 lakala分配
	SM4Key     = "LHo55AjrT4aDhAIBZhb5KQ==" // 国密4-参数加密使用 lakala分配
	MerchantNo = "82229007392000A"          // 商户号 商户进件产生
	TermNo     = "D9296400"                 // 终端号 商户进件产生
	OrgCode    = "983931"                   // 终端号 商户进件产生
)

// 测试参数
const (
	ClientID     = "cdrx"
	ClientSecret = "LBQhKelGi8223ovH"
	//UserName     = "13200000001"
	//Password     = `klik13!@`
	UserName   = "rhwlcs"
	Password   = `Cs123789`
	BusiCode   = "ZPOS4G"
	ActivityId = 4
	UserNo     = "24354409"
	PublicKey  = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCSCWRQiVePGvXp7gUK3GLieXKwSCk80uuI0JbmLE5QCZJU9e+fYNMRPC5xAeGudrxMRuwKCADyWwcsOzqjVwZHP2RqBN8JmoxOhKbDAa/xDJlhCySt33At+dVIy0n7k9SgA5qXom3FN29OQL2gOMQUVhlj/ZHYpmSXsoqnmgkohwIDAQAB"
	PrivateKey = "MIICdQIBADANBgkqhkiG9w0BAQEFAASCAl8wggJbAgEAAoGBAJIJZFCJV48a9enuBQrcYuJ5crBIKTzS64jQluYsTlAJklT1759g0xE8LnEB4a52vExG7AoIAPJbByw7OqNXBkc/ZGoE3wmajE6EpsMBr/EMmWELJK3fcC351UjLSfuT1KADmpeibcU3b05AvaA4xBRWGWP9kdimZJeyiqeaCSiHAgMBAAECgYBenAsLSg8ZvSO4C+XkZWcCxh+RKQ7eQt8o4coBEI8jty/ALxywqm/TaKPFvqxQ9MeEuyXMUecbG/IHq8+PZp+/qj831bIt+v2Or5mZ/grkr/ZPt96sHJwY5GtIGyHrDfiEmAmHazo6clEf8+qC4z7AhqwWmjjRF3Zl404BkeiKUQJBAMJx7UuwpepryKyeHSOWf44nLwAM9Ejmeg6zPPVjQyI02btqWcgVhpwhers7ikyV37eE1WX2gtEM3DSb38o2xVUCQQDARGQqcGPftuygq1aIodBbUwZjhM+A5yBvISaUceqGg0mvb8icaXRmAYPzOt9ehp+S8I8uZU2bgsyFX671cfZrAkA43VSGVCzRd6ACS2M+Kx82lWL7Ys52G2EKt4RWRyc087vRQXLsPs9VDb100B7L8vCwHNrDrOno9RfZEtTJsGbZAkA+2hykgvkjOPlBzMENCVjDgfCkt9XdnbDMo1mpTVQNhP2hjDlYaGDUt8oayTQcAoZH0rv7vsIQBEI3l3/qXMbhAkAnwX9+BfhkN+4e68051kAOcjxJEDd+p9B6oyvv4ln+YswWcNuqjbrgZM1K7WUksBtgV0Zpp5aX/RN6CCVWsb9v"
)

var (
	PrivateKeyBegin = fmt.Sprintf("-----BEGIN RSA PRIVATE KEY-----\n%s\n-----END RSA PRIVATE KEY-----", PrivateKey)
	PublicKeyBegin  = fmt.Sprintf("-----BEGIN PUBLIC KEY-----\n%s\n-----END PUBLIC KEY-----", PublicKey)
)

// token访问路由
const (
	IncomingUrlTest = "https://test.wsmsd.cn/sit/htkauth/oauth" // 进件获取token测试地址,变更接口token测试地址
	TokenActive     = "token"

	IncomingUrlProd = "https://tkapi.lakala.com/auth/oauth"  // 进件获取token正式地址
	ModifiedUrlProd = "https://htkapi.lakala.com/auth/oauth" // 变更接口token正式地址

	PayWayRegister = "register" // 聚合被扫
	PayWayMini     = "mini"     // 小程序聚合主扫
	PayWayAPP      = "app"      // APP收银台支付
)

const (
	OrderStatusCallback           = "http://callback.jxc4.com/lakalaCallback/orderStatus"           // 收银台订单通知(订单状态:app/h5)
	PayStatusCallback             = "http://callback.jxc4.com/lakalaCallback/payStatus"             // 聚合被扫(扫码枪)/聚合主扫
	CallbackLaKaLaShopUrl         = "http://callback.jxc4.com/lakalaCallback/separateMsg"           // 消息通知地址(商户开通)
	ApplyContractByPeopleCallback = "http://callback.jxc4.com/lakalaCallback/applyContractByPeople" // 电子合同人工审核回调
	ApplyContractCallback         = "http://callback.jxc4.com/lakalaCallback/applyContract"         // 电子合同人工审核回调
	CallbackLaKaLaSeparateBindUrl = "http://callback.jxc4.com/lakalaCallback/separateBind"          // 消息通知地址(分账关系绑定回调,解绑回调)
	CallbackLaKaLaSeparateUrl     = "http://callback.jxc4.com/lakalaCallback/separate"              // 消息通知地址(分账申请/撤回/退回 回调)
	BillProdCallbackUrl           = "http://callback.jxc4.com/lakalaCallback/ewalletWithdrawD1"     // 账户D1提现回调

	//CallbackLaKaLaShopUrl         = "http://111.231.218.230:8080/laKaLaCallback/separateMsg"           // 消息通知地址(商户开通)
	//ApplyContractByPeopleCallback = "http://111.231.218.230:8080/lakalaCallback/applyContractByPeople" // 电子合同人工审核回调
	//ApplyContractCallback         = "http://111.231.218.230:8080/lakalaCallback/applyContract"         // 电子合同申请回调
	//CallbackLaKaLaSeparateBindUrl = "http://111.231.218.230:8080/lakalaCallback/separateBind"          // 消息通知地址(分账关系绑定回调,解绑回调)
	//CallbackLaKaLaSeparateUrl     = "http://111.231.218.230:8080/lakalaCallback/separate"              // 消息通知地址(分账申请/撤回/退回 回调)
	//BillProdCallbackUrl           = "http://111.231.218.230:8080/lakalaCallback/ewalletWithdrawD1"     // 账户D1提现回调
	//OrderStatusCallback           = "http://111.231.218.230:8080/lakalaCallback/orderStatus"           // 收银台订单通知(订单状态)
	//PayStatusCallback             = "http://111.231.218.230:8080/lakalaCallback/payStatus"             // 主扫支付状态通知
)
