示例#1
0
文件: ffcm_s.go 项目: Centny/ffcm
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)
}
示例#2
0
文件: test.go 项目: Centny/alipay
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")

}