pay
This commit is contained in:
@@ -179,6 +179,7 @@ func PayByBalance(ctx *jxcontext.Context, orderID string, isChoose, payType int,
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, "获取用户会员账户余额失败", err
|
return nil, "获取用户会员账户余额失败", err
|
||||||
}
|
}
|
||||||
|
|
||||||
if orderInfo.Status == NotPay {
|
if orderInfo.Status == NotPay {
|
||||||
globals.SugarLogger.Debug("进入账单未支付")
|
globals.SugarLogger.Debug("进入账单未支付")
|
||||||
globals.SugarLogger.Debug("user_bill.balance==================", userBill.AccountBalance)
|
globals.SugarLogger.Debug("user_bill.balance==================", userBill.AccountBalance)
|
||||||
@@ -209,6 +210,11 @@ func PayByBalance(ctx *jxcontext.Context, orderID string, isChoose, payType int,
|
|||||||
if _, err := dao.SetOrderStatus(orderInfo.PayPrice, temp_method, temp_status, orderID); err != nil {
|
if _, err := dao.SetOrderStatus(orderInfo.PayPrice, temp_method, temp_status, orderID); err != nil {
|
||||||
return nil, "更新order状态失败", err
|
return nil, "更新order状态失败", err
|
||||||
}
|
}
|
||||||
|
userOrder := model.UserVendorOrder{LocalWayBill: orderInfo.OrderID}
|
||||||
|
userOrder.OrderStatus = 4 //快递单已支付
|
||||||
|
if _, err := dao.UpdateEntity(db, &userOrder, "OrderStatus"); err != nil {
|
||||||
|
return nil, "更新user_vendor_order状态失败", err
|
||||||
|
}
|
||||||
//if _, err := dao.UpdateEntityTx(txDB, order); err != nil {
|
//if _, err := dao.UpdateEntityTx(txDB, order); err != nil {
|
||||||
// dao.Rollback(db, txDB)
|
// dao.Rollback(db, txDB)
|
||||||
// return nil, "", err
|
// return nil, "", err
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ func (c *QBiDaExpressController) CancelWayVendorOrder() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// QueryUserOrderList 获取用户订单列表QueryUserOrderList
|
// pay 获取用户订单列表QueryUserOrderList
|
||||||
// @Title Q必达
|
// @Title Q必达
|
||||||
// @Description 获取用户订单列表
|
// @Description 获取用户订单列表
|
||||||
// @Param token header string true "管理员token"
|
// @Param token header string true "管理员token"
|
||||||
|
|||||||
Reference in New Issue
Block a user