1
This commit is contained in:
@@ -383,7 +383,10 @@ func CreateOrder2QBiDa(order *model.UserVendorOrder) error {
|
|||||||
makeOrder.ReceiveName = receiveAddress.ConsigneeName
|
makeOrder.ReceiveName = receiveAddress.ConsigneeName
|
||||||
makeOrder.ReceivePhone = receiveAddress.ConsigneeMobile
|
makeOrder.ReceivePhone = receiveAddress.ConsigneeMobile
|
||||||
otherId, err := createOtherOrder(makeOrder)
|
otherId, err := createOtherOrder(makeOrder)
|
||||||
|
if err != nil {
|
||||||
|
globals.SugarLogger.Debug("err==========", err)
|
||||||
|
}
|
||||||
|
order.Remark = fmt.Sprintf("%s", err.Error())
|
||||||
order.OtherWayBill = otherId
|
order.OtherWayBill = otherId
|
||||||
order.OrderStatus = model.OrderStatusWaitPickup
|
order.OrderStatus = model.OrderStatusWaitPickup
|
||||||
order.UpdatedAt = time.Now()
|
order.UpdatedAt = time.Now()
|
||||||
|
|||||||
@@ -24,10 +24,15 @@ func (c *TongLianController) Msg() {
|
|||||||
if c.Ctx.Input.Method() == http.MethodPost {
|
if c.Ctx.Input.Method() == http.MethodPost {
|
||||||
call, err := api.TLpayAPI.GetCallbackMsg(getUsefulRequest2(c.Ctx))
|
call, err := api.TLpayAPI.GetCallbackMsg(getUsefulRequest2(c.Ctx))
|
||||||
globals.SugarLogger.Debugf("tonglianapi callback callbackResponse:%s", utils.Format4Output(call, true))
|
globals.SugarLogger.Debugf("tonglianapi callback callbackResponse:%s", utils.Format4Output(call, true))
|
||||||
if err == nil {
|
if err != nil {
|
||||||
err = financial.OnTLPayCallback(call)
|
c.Abort("404")
|
||||||
|
return
|
||||||
}
|
}
|
||||||
c.Data["json"] = call
|
if err = financial.OnTLPayCallback(call); err != nil {
|
||||||
|
c.Abort("404")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
c.Data["json"] = "success"
|
||||||
c.ServeJSON()
|
c.ServeJSON()
|
||||||
} else {
|
} else {
|
||||||
c.Abort("404")
|
c.Abort("404")
|
||||||
|
|||||||
Reference in New Issue
Block a user