parent
a6038a78f3
commit
c8fc00cd74
@ -1,23 +0,0 @@
|
|||||||
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
|
|
||||||
}
|
|
Loading…
Reference in new issue