quguofeng 2 years ago
parent
commit
c6c9293826
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

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