Merge branch 'dev_share_card_issue_code' into dev_small_demand
This commit is contained in:
commit
9198f8b648
|
@ -697,6 +697,12 @@ func CardIssueCreate(c *gin.Context) {
|
|||
RespJson(c, status.InternalServerError, nil)
|
||||
return
|
||||
}
|
||||
if !orderCard.ReceiptTime.IsZero() && orderCard.ReceiptTime.
|
||||
Before(time.Now()) {
|
||||
logger.Error("receipt time is over 48 hour:")
|
||||
RespJson(c, status.InternalServerError, nil)
|
||||
return
|
||||
}
|
||||
feedback = &model.CardIssueFeedback{
|
||||
Uid: uint32(orderCard.Uid),
|
||||
GameCardId: uint32(orderCard.GameCardId),
|
||||
|
|
|
@ -972,3 +972,10 @@ func GameCardGoodsStockInspection() {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
func TestTimeZeroData(t *testing.T) {
|
||||
InitTestDB()
|
||||
|
||||
//NewShareCardRetrieveCardQuerySet(DB).IDEq(189).GetUpdater().SetStoreId()
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user