You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
453 B

package main
import (
"git.oa00.com/go/alipay"
"log"
"recook/configs"
)
// 初始化
func initApp() (closes []func()) {
// 关闭资源
closes = []func(){}
// 支付宝初始化
if err := alipay.InitAlipay(alipay.Config{
AppId: configs.AlipayAppid,
PrivateKey: configs.AlipayPrivateKey,
AliPublicKey: configs.AlipayAliPublicKey,
IsProduction: true,
}); err != nil {
log.Panicln("支付宝初始化错误", err)
}
return
}