Commit 30675b42 by 杨树贤

fix

parent 3f24f7c2
...@@ -21,7 +21,6 @@ class SkuListFilter ...@@ -21,7 +21,6 @@ class SkuListFilter
$map = array_map(function ($item) { $map = array_map(function ($item) {
return trim($item); return trim($item);
}, $map); }, $map);
//dd($map);
//只获取专卖的数据 //只获取专卖的数据
$map['supplier_id'] = 17; $map['supplier_id'] = 17;
if ((!empty($map['create_time']))) { if ((!empty($map['create_time']))) {
...@@ -46,6 +45,7 @@ class SkuListFilter ...@@ -46,6 +45,7 @@ class SkuListFilter
$query->whereIn('purchase_uid', $subordinateCodeIds) $query->whereIn('purchase_uid', $subordinateCodeIds)
->orWhereRaw("channel_uid REGEXP '" . implode('|', $subordinateCodeIds) . "'"); ->orWhereRaw("channel_uid REGEXP '" . implode('|', $subordinateCodeIds) . "'");
})->whereNotNull('supplier_code')->where('supplier_code', '!=', '')->pluck('supplier_code')->toArray(); })->whereNotNull('supplier_code')->where('supplier_code', '!=', '')->pluck('supplier_code')->toArray();
if (!empty($supplierCodes)) { if (!empty($supplierCodes)) {
$map['canal_new/eqs'] = implode(',', $supplierCodes); $map['canal_new/eqs'] = implode(',', $supplierCodes);
} else { } else {
......
...@@ -44,9 +44,7 @@ class SkuService extends BaseService ...@@ -44,9 +44,7 @@ class SkuService extends BaseService
die(); die();
} }
try { try {
// $return = curl($url, $map, 1); $return = curl($url, $map, 1);
$url = base64_encode($url . '?' . http_build_query($map));
$return = curl(config('website.FootstoneCurlUrl') . $url);
} catch (\Exception $e) { } catch (\Exception $e) {
return $e->getMessage(); return $e->getMessage();
} }
......
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