Commit fb143b6a by 杨树贤

调试

parent 3e375141
Showing with 3 additions and 1 deletions
...@@ -787,7 +787,9 @@ class DataService ...@@ -787,7 +787,9 @@ class DataService
//倒序供应商 //倒序供应商
$suppliers = SupplierChannelModel::where('is_type', 0)->orderBy('supplier_id', 'desc')->get()->toArray(); $suppliers = SupplierChannelModel::where('is_type', 0)->orderBy('supplier_id', 'desc')->get()->toArray();
$redis = new RedisModel(); $redis = new RedisModel();
$i = 0;
foreach ($suppliers as $key => $supplier) { foreach ($suppliers as $key => $supplier) {
$i++;
//检测cp_time是否为空 //检测cp_time是否为空
$ruler = $redis->hget('supplier_sku_upload_ruler_v2', $supplier['supplier_id']); $ruler = $redis->hget('supplier_sku_upload_ruler_v2', $supplier['supplier_id']);
if (empty($ruler)) { if (empty($ruler)) {
...@@ -800,7 +802,7 @@ class DataService ...@@ -800,7 +802,7 @@ class DataService
if ($isUpdate) { if ($isUpdate) {
$redis->hset('supplier_sku_upload_ruler_v2', $supplier['supplier_id'], json_encode($data)); $redis->hset('supplier_sku_upload_ruler_v2', $supplier['supplier_id'], json_encode($data));
} }
\dump($key, $supplier['supplier_id'], $data); \dump($i, $key, $supplier['supplier_id'], $data);
} }
continue; continue;
} }
......
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