|
|
|
|
@ -3,6 +3,7 @@ package main
|
|
|
|
|
import (
|
|
|
|
|
"WechatGateWay/global"
|
|
|
|
|
"WechatGateWay/handle"
|
|
|
|
|
"WechatGateWay/third_part"
|
|
|
|
|
"fmt"
|
|
|
|
|
"github.com/spf13/viper"
|
|
|
|
|
"log"
|
|
|
|
|
@ -28,7 +29,7 @@ func init() {
|
|
|
|
|
global.WechatSendAid = viper.GetString("wechat.SendAid")
|
|
|
|
|
// receive_id 企业应用的回调,表示corpid
|
|
|
|
|
global.WxCrypt = global.NewWXBizMsgCrypt(global.WechatToken, global.WechatEncodingAesKey, global.WechatCorpId, global.XmlType)
|
|
|
|
|
//go third_part.GetRemoteToken(global.WechatCorpId, global.WechatSendSecret)
|
|
|
|
|
third_part.GetRemoteToken(global.WechatCorpId, global.WechatSendSecret)
|
|
|
|
|
log.Println("server init success")
|
|
|
|
|
}
|
|
|
|
|
func main() {
|
|
|
|
|
|