Example #1
0
func RunFFCM_S_V(fcfg *util.Fcfg) error {
	if SRV == nil {
		return util.Err("server is not running")
	}
	var listen = fcfg.Val("listen")
	SRV.Hand("", routing.Shared)
	routing.Shared.Print()
	log.D("listen web server on %v", listen)
	return routing.ListenAndServe(listen)
}
Example #2
0
func main() {
	var client = alipay.NewClient("https://mapi.alipay.com/gateway.do", nil)
	client.Web.Load(
		"",
		"",
		"",
		`
	`,
		"",
		`
	`)
	fmt.Println(client.CreateWebUrl("http://cny.dev.gdy.io/notify", "http://cny.dev.gdy.io/return", "6843192280647512", "abcc", "223", 0.01))
	routing.HFunc("^/return(\\?.*)?$", client.Return)
	routing.HFunc("^/notify(\\?.*)?$", client.Notify)
	routing.ListenAndServe(":9834")

}