Commit fe83e5c1 by 杨树贤

redis链接

parent 9ffc9d56
Showing with 1 additions and 1 deletions
...@@ -1571,7 +1571,7 @@ class DataService ...@@ -1571,7 +1571,7 @@ class DataService
'audit_ruler' => ["1" => 1], 'audit_ruler' => ["1" => 1],
]) ])
]); ]);
$redis = Redis::connection('sku'); $redis = Redis::connection();
$supplierIds = SupplierChannelModel::where('supplier_id', '>', 0)->pluck('supplier_id')->toArray(); $supplierIds = SupplierChannelModel::where('supplier_id', '>', 0)->pluck('supplier_id')->toArray();
foreach ($supplierIds as $supplierId) { foreach ($supplierIds as $supplierId) {
$redis->hset('supplier_sku_audit_ruler', $supplierId, json_encode([ $redis->hset('supplier_sku_audit_ruler', $supplierId, json_encode([
......
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