package alipayapi

import (
	"git.rosy.net.cn/baseapi"

	"go.uber.org/zap"
)

var (
	api         *API
	sugarLogger *zap.SugaredLogger
)

func init() {
	logger, _ := zap.NewDevelopment()
	sugarLogger = logger.Sugar()
	baseapi.Init(sugarLogger)
	// 2019110769024042
	// www.jxcs.net_私钥
	//api = New("2019110769024042", []byte(`MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQClwLaawVr/HcVqJUImdjIy7VTpBCqFDYP4Eo/CN3Xm9dEy7DKA83rPMD24U/HjvG/7qxhrL3CvMECC5H5RQjqqV1i0cuYxCkLi+YromYbdC5gQ7AFKJgc35RLoG/7QNv7SaMcyOX1wiAbbkYVrZ5Uv9/BC4ubp8prFurGncmHy3/okttf0n2yk9K9Nzljtf/MxTiEtJOjt/ylXcjIynHFaUX9APicrPOzxg5mG7f+mu1AxXHgozeG0VP6aLouHNcwx486Bcb7IK94OCsGWvzubMr8fqXOYt7HR52O5cpkD/TJmO3IdKs20ohTHhFRAMLd2qaAy7ZItsYJa4/oVbWMLAgMBAAECggEAToHdu6TzdbxjIeht0YvQMQDqY8e+X/DL3fbksmfUZ0VtBcKMFTm9pF7EDQdtnaFGJRyf3zzEEaY4GAcjsVc+NCpU8HsvfnDOx3TMj2kQUKhKKVGvNrCWYKoWb2u7IGG8BmrsVmSWfnNfVCYz3HBeYC7+VJ/mIU7wcdEAjkAGFqOti9FxZ/PxbHV9RR2xeP5LMTwF+Rl6bCEHxwhwMv0OJY970Amip6MOGy3Pnrvw+VPW/68A0kIwM8hI/bbPJZM0qUNMjUtHCOzLvzaHw/7+3A/Fcmvci/xVveBMsTbZa7fZE7msPT07Wl6K7c8GdDZbVnRnB2H1mtiapNG+VPN5yQKBgQDhQK+zhlrvRAA+xZ801y4QfXS1FbuRmMJUwxOtf4ZqhQ22Fb9zzRytOyyPVfv71bN8dXWdaPwU/DvrTY0Veylg60dOqlpKjtbKsd4zAM9rWDgkYvvtAReTXiQ2R3QzgopKLPkh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