weizong song 5 years ago
parent a9b8422d1e
commit ce557579a6

@ -157,7 +157,7 @@ class StatisticsController extends CommonController
if ($request->last_id) {
$model = $model->where("id", ">", $request->last_id);
}
$orderItems = $model->with("order")->limit(20)->get();
$orderItems = $model->with("order")->limit(50)->get();
if (!$orderItems->count()) {
dd("已处理完毕");
@ -165,8 +165,6 @@ class StatisticsController extends CommonController
DB::beginTransaction();
try {
foreach ($orderItems as $orderItem) {
$factors = json_decode($orderItem->factors);
foreach ($factors as $factor) {

Loading…
Cancel
Save