瀏覽代碼

更新

three
huangjiajun 11 月之前
父節點
當前提交
871a9a6fbd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      app/db/db_order.go

+ 1
- 1
app/db/db_order.go 查看文件

@@ -456,7 +456,7 @@ func OrderListCountByPriceType(sess *xorm.Session, uid string, priceType, day in

// OrderListCountByItemId is 计算免单单个商品购买的次数
func OrderListCountByItemId(sess *xorm.Session, uid string, itemId string, day int) (int64, error) {
sess = sess.Where(" uid = ? AND state != 4 AND item_id = ?", uid, itemId)
sess = sess.Where(" uid = ? AND state != 4 AND item_id = ? and price_type>0", uid, itemId)
if day > 0 {
sess = sess.And("create_at>=?", time.Now().Unix()-int64(day*86400))
}


Loading…
取消
儲存