Skip to content

Commit

Permalink
Merge branch 'feat/coupon' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
sjatsh committed Nov 10, 2023
2 parents ed1241f + 3353336 commit 6e34f07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dao/t_order_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ func (d *DbDao) UpdateOrderStatusToFailForUnconfirmedPayHash(orderId, payHash st
}

func (d *DbDao) GetPendingOrderByAccIdAndActionType(accountId string, actionType tables.ActionType) (order tables.OrderInfo, err error) {
err = d.db.Where("accountId=? and action_type=? and order_status=?", accountId, actionType, tables.OrderStatusDefault).First(&order).Error
err = d.db.Where("account_id=? and action_type=? and order_status=?", accountId, actionType, tables.OrderStatusDefault).First(&order).Error
if errors.Is(err, gorm.ErrRecordNotFound) {
err = nil
}
Expand Down
2 changes: 1 addition & 1 deletion http_server/handle/coupon_order_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func (h *HttpHandle) doCouponOrderCreate(req *ReqCouponOrderCreate, apiResp *api
return fmt.Errorf("GetPendingOrderByAccIdAndActionType err: %s", err.Error())
}
if order.Id > 0 {
apiResp.ApiRespErr(api_code.ApiCodeOperationFrequent, "have pending order: "+order.OrderId)
apiResp.ApiRespErr(api_code.ApiCodeOperationFrequent, "have pending order")
apiResp.Data = map[string]interface{}{
"order_id": order.OrderId,
}
Expand Down

0 comments on commit 6e34f07

Please sign in to comment.