github.com/lianghucheng/zrddz@v0.0.0-20200923083010-c71f680932e2/src/temp-edy/sendgoods.go (about) 1 package temp_edy 2 3 import ( 4 "conf" 5 "fmt" 6 "github.com/name5566/leaf/log" 7 "net/http" 8 "strconv" 9 ) 10 11 func RpcPayOK(accountid, amount int) { 12 fmt.Println("远程调用支付成功", conf.Server.GameHttpAddress) 13 //123.207.12.67 14 resp, err := http.Get(conf.Server.GameHttpAddress+"/temppay?secret=123456&aid="+strconv.Itoa(accountid)+"&fee="+strconv.Itoa(amount)) 15 if err != nil { 16 log.Error(err.Error()) 17 } 18 19 _ = resp 20 } 21