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