quguofeng 2 years ago
parent
commit
1496b98025
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/common/dao/store/order/StoreOrderDao.php

+ 1 - 1
app/common/dao/store/order/StoreOrderDao.php

@@ -756,7 +756,7 @@ class StoreOrderDao extends BaseDao
      */
     public function expireOrder()
     {
-        $info = StoreOrder::getDB()->where('expire_time','<', date('Y-m-d H:i:s'))->find();
+        $info = StoreOrder::getDB()->where('status',4)->where('expire_time','<', date('Y-m-d H:i:s'))->find();
         if($info->order_id){
             StoreOrder::getDB()->where('order_id',$info->order_id)->update(array('status'=>5));
         }