plugin name rename becuse one plugin mabey more product
This commit is contained in:
parent
516d03c267
commit
2d06a4acfa
|
@ -6,6 +6,6 @@ build:
|
|||
zltx:
|
||||
make build name=zltx
|
||||
|
||||
.PHONY: union_pay
|
||||
union_pay:
|
||||
make build name=union_pay
|
||||
.PHONY: union_pay_cpn
|
||||
union_pay_cpn:
|
||||
make build name=union_pay_cpn
|
|
@ -1,4 +1,4 @@
|
|||
module plugins/union_pay
|
||||
module plugins/union_pay_cpn
|
||||
|
||||
go 1.21
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
package po
|
||||
|
||||
import "plugins/union_pay/internal/vo"
|
||||
import "plugins/union_pay_cpn/internal/vo"
|
||||
|
||||
type Headers struct {
|
||||
SignMethod string `json:"signmethod" validate:"required"`
|
|
@ -2,7 +2,7 @@ package po
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"plugins/union_pay/internal/vo"
|
||||
"plugins/union_pay_cpn/internal/vo"
|
||||
)
|
||||
|
||||
type OrderReq struct {
|
|
@ -2,7 +2,7 @@ package po
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"plugins/union_pay/internal/vo"
|
||||
"plugins/union_pay_cpn/internal/vo"
|
||||
)
|
||||
|
||||
type QueryReq struct {
|
|
@ -3,9 +3,9 @@ package internal
|
|||
import (
|
||||
"codeup.aliyun.com/6552e56cc3b2728a4557fc18/plugin/proto"
|
||||
"encoding/json"
|
||||
"plugins/union_pay/internal/po"
|
||||
"plugins/union_pay/internal/utils"
|
||||
"plugins/union_pay/internal/vo"
|
||||
"plugins/union_pay_cpn/internal/po"
|
||||
"plugins/union_pay_cpn/internal/utils"
|
||||
"plugins/union_pay_cpn/internal/vo"
|
||||
"strings"
|
||||
)
|
||||
|
|
@ -5,15 +5,15 @@ import (
|
|||
"context"
|
||||
"fmt"
|
||||
"github.com/carlmjohnson/requests"
|
||||
"plugins/union_pay/internal/po"
|
||||
"plugins/union_pay_cpn/internal/po"
|
||||
)
|
||||
|
||||
// 插件通信信息,若不对应则会报错panic
|
||||
const (
|
||||
Tag = "union_pay"
|
||||
Tag = "union_pay_cpn"
|
||||
Version = 1
|
||||
CookieKey = "union_pay"
|
||||
CookieValue = "union_pay"
|
||||
CookieKey = "union_pay_cpn"
|
||||
CookieValue = "union_pay_cpn"
|
||||
)
|
||||
|
||||
const (
|
|
@ -3,9 +3,9 @@ package internal
|
|||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
"plugins/union_pay/internal/po"
|
||||
"plugins/union_pay/internal/utils"
|
||||
"plugins/union_pay/internal/vo"
|
||||
"plugins/union_pay_cpn/internal/po"
|
||||
"plugins/union_pay_cpn/internal/utils"
|
||||
"plugins/union_pay_cpn/internal/vo"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
|
@ -3,7 +3,7 @@ package main
|
|||
import (
|
||||
"codeup.aliyun.com/6552e56cc3b2728a4557fc18/plugin/shared"
|
||||
"github.com/hashicorp/go-plugin"
|
||||
"plugins/union_pay/internal"
|
||||
"plugins/union_pay_cpn/internal"
|
||||
)
|
||||
|
||||
func main() {
|
Loading…
Reference in New Issue