校验店员识别码
This commit is contained in:
parent
8e25081bb4
commit
2ef3469538
|
@ -113,9 +113,11 @@ func RevertGoods(c *gin.Context) {
|
|||
app.Error(c, http.StatusBadRequest, errors.New("para err"), "参数错误")
|
||||
return
|
||||
}
|
||||
// 更新卡的状态
|
||||
// 门店id 更新
|
||||
//order := &models.Order{}
|
||||
|
||||
if order.RevertShopperCode != "" && !models.CheckCode(order.RevertShopperCode) {
|
||||
app.Error(c, http.StatusBadRequest, errors.New("order revert shopper code err"), "店员码错误")
|
||||
return
|
||||
}
|
||||
|
||||
err := order.Revert()
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue
Block a user