新增订单轮询

This commit is contained in:
qiyunfanbo126.com 2024-09-05 14:01:52 +08:00
parent 261ec08fb4
commit 779b6eb1c0
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ func ClearUnpayOrder() {
session.Begin()
_, err := session.In("id", ids).Update(&ordersmodel.Orders{State: 9})
if err == nil {
_, err = session.Exec("update Products set stock=stock+1 where id in (" + strings.Join(prodIds, ",") + ")")
_, err = session.Exec("update products set stock=stock+1 where id in (" + strings.Join(prodIds, ",") + ")")
if err == nil {
session.Commit()
} else {