diff --git a/plugins/zltx_card/internal/transform.go b/plugins/zltx_card/internal/transform.go index 9430b69..cbf8b4d 100644 --- a/plugins/zltx_card/internal/transform.go +++ b/plugins/zltx_card/internal/transform.go @@ -60,7 +60,7 @@ func (c *Config) queryReq(in *proto.QueryRequest) *po.QueryReq { } } -func queryResp(request *proto.QueryRequest, resp po.QueryResp, appKey string) (*proto.QueryResponse, error) { +func queryResp(request *proto.QueryRequest, resp po.QueryResp) (*proto.QueryResponse, error) { data, _ := json.Marshal(resp) pb := &proto.QueryResponse{ Result: &proto.Result{ diff --git a/plugins/zltx_card/internal/zltx_card.go b/plugins/zltx_card/internal/zltx_card.go index 3eaa589..fef9191 100644 --- a/plugins/zltx_card/internal/zltx_card.go +++ b/plugins/zltx_card/internal/zltx_card.go @@ -70,7 +70,7 @@ func (p *ZLTXCardService) Query(ctx context.Context, request *proto.QueryRequest return nil, errors.New("请求错误,msg:" + response.Message) } - return queryResp(request, response, c.AppKey) + return queryResp(request, response) } func (p *ZLTXCardService) Notify(_ context.Context, request *proto.NotifyRequest) (*proto.NotifyResponse, error) {