1
This commit is contained in:
@@ -7,8 +7,8 @@ import (
|
||||
"git.rosy.net.cn/jx-callback/business/model"
|
||||
"git.rosy.net.cn/jx-callback/business/model/dao"
|
||||
"git.rosy.net.cn/jx-callback/business/partner/purchase/jx/localjx"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"github.com/astaxie/beego/server/web"
|
||||
"time"
|
||||
)
|
||||
|
||||
type JxOrderController struct {
|
||||
@@ -103,17 +103,14 @@ func (c *JxOrderController) Pay4StoreMyselfDeliverOrder() {
|
||||
UserID: params.Ctx.GetUserID(),
|
||||
}
|
||||
outJxOrder, err := localjx.CreateOrder(params.Ctx, jxOrder, int64(142), 1, 0, true, nil)
|
||||
globals.SugarLogger.Debugf("outJxOrder := %s", utils.Format4Output(outJxOrder, false))
|
||||
if err != nil {
|
||||
globals.SugarLogger.Debugf(" localjx.CreateOrder err := %s", utils.Format4Output(err, false))
|
||||
return nil, "", err
|
||||
}
|
||||
if outJxOrder.OrderID == 0 {
|
||||
return nil, "", errors.New("orderId 不能为空")
|
||||
}
|
||||
time.Sleep(200 * time.Millisecond)
|
||||
retVal, err := localjx.Pay4Order(params.Ctx, outJxOrder.OrderID, params.PayType, params.VendorPayType, params.SubAppID)
|
||||
globals.SugarLogger.Debugf("retVal :=========%s", utils.Format4Output(retVal, false))
|
||||
globals.SugarLogger.Debugf("errrrr :=========%s", utils.Format4Output(err, false))
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user