插件通信,demo

This commit is contained in:
李子铭 2024-07-01 17:59:49 +08:00
parent a6c715df8f
commit 51d7207847
1 changed files with 8 additions and 5 deletions

View File

@ -7,13 +7,12 @@ import (
"log"
)
var appId = "23329"
var appKey = "8db16e8cc8363ed4eb4c14f9520bcc32"
var baseUri = "http://test.openapi.1688sup.cn"
var notifyUrl = "http://test.openapi.1688sup.cn"
// main 这只是一个演示
func main() {
zltx()
}
func zltx() {
conf := &instance.PkgConf{
Cmd: "pkg/zltx",
Tag: "zltx",
@ -33,6 +32,10 @@ func main() {
}
func getOrderRequest() *proto.OrderRequest {
var appId = "23329"
var appKey = "8db16e8cc8363ed4eb4c14f9520bcc32"
var baseUri = "http://test.openapi.1688sup.cn"
var notifyUrl = "http://test.openapi.1688sup.cn"
return &proto.OrderRequest{
Config: &proto.Config{
AppId: appId,