zhangguidong 2 年之前
父節點
當前提交
1e2a420394
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      application/api/model/order/OrderOper.php

+ 1 - 1
application/api/model/order/OrderOper.php

@@ -541,7 +541,7 @@ trait OrderOper
             foreach ($data as $key => $od) {
                 $data[$key] = self::setOrderItemStatusByOrder($od);
                 $data[$key]['expired_time'] = $od['createtime'] + (15 * 60);
-                $time = $time-$od['createtime'] + (15 * 60);
+                $time = time()-$od['createtime'] + (15 * 60);
                 if($time>0&&$od['status']==0){
                     Db::name('shopro_order')->where('id' ,$od['id'])->update(['status'=>-1]);
                 }