Explorar o código

Weenier 168otc项目部署 0630

wesmiler %!s(int64=3) %!d(string=hai) anos
pai
achega
045d70e390
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Services/Common/AdvertOrderService.php

+ 1 - 1
app/Services/Common/AdvertOrderService.php

@@ -460,8 +460,8 @@ class AdvertOrderService extends BaseService
                     ->where('create_time', '<=', time() - ($cancelTime + $overtime) * 60);
             })
             ->select(['id', 'user_id', 'business_id','advert_id','order_no', 'type', 'num','total'])
+            ->take($catchNum)
             ->get()
-            ->limit($catchNum)
             ->each(function ($item, $k) use($cacheKey, &$fail, &$success){
                 // 客户卖出订单退还
                 $date = date('Y-m-d H:i:s');