Commit 8907c63b by 杨树贤

fix

parent 3d7ac1b2
......@@ -807,4 +807,13 @@ class DataService
continue;
}
}
public static function repaireSkuUploadRuler()
{
ini_set('memory_limit', '2048M');
$supplierList = SupplierChannelModel::where('is_type', 0)->orderBy('supplier_id', 'desc')->get()->toArray();
foreach ($supplierList as $supplier) {
(new SupplierService())->saveSkuUploadRulerToRedis($supplier['supplier_id'], $supplier['sku_upload_ruler']);
}
}
}
......@@ -91,5 +91,5 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function ()
});
Route::match(['get', 'post'], '/test', function () {
SupplierContractModel::where('id', 22)->update(['recall_time' => 0]);
(new \App\Http\Services\DataService())->repaireSkuUploadRuler();
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment