提交 9f668cbc authored 作者: gukai's avatar gukai

Merge branch 'alibaba'

...@@ -5,6 +5,7 @@ import ( ...@@ -5,6 +5,7 @@ import (
"github.com/gogf/gf/encoding/gjson" "github.com/gogf/gf/encoding/gjson"
"github.com/gogf/gf/frame/g" "github.com/gogf/gf/frame/g"
"github.com/gogf/gf/util/gconv" "github.com/gogf/gf/util/gconv"
"gitlab.jxhh.com/stbz/library.git/upstream/ali"
) )
type orderAli struct { type orderAli struct {
...@@ -238,11 +239,9 @@ func (s *orderAli) Pay(ctx context.Context, orderSn string) (res *CommonRes, err ...@@ -238,11 +239,9 @@ func (s *orderAli) Pay(ctx context.Context, orderSn string) (res *CommonRes, err
//更换接口临时过渡 //更换接口临时过渡
if !res.Success{ if !res.Success{
result, err = server.Post(ctx, "com.alibaba.trade/alibaba.trade.pay.protocolPay", g.Map{ var aliRes *ali.CommonRes
"access_token": server.AccessToken, aliRes,err = ali.Order.Pay(ctx,orderSn)
"orderId": orderSn, _ = gconv.Struct(aliRes,&res)
})
_ = gjson.New(result).Scan(&res)
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论