@@ -568,7 +568,7 @@ func GetOrderCountByPIdAndWxUId(pId, wxUId int64) int64 {
FROM
order_details
WHERE
- order_id in (select order_id from orders where wx_user_id = %d and status in ('processing','complete','dispatch','unconfirmed'))
+ order_id in (select order_id from orders where wx_user_id = %d and status in ('processing','complete','dispatch','unconfirmed','unpay'))
and
product_id = ?
`