Commit 73082306 by 杨树贤

修复兼容

parent 0051280e
Showing with 1 additions and 1 deletions
...@@ -176,7 +176,7 @@ class SyncSupplierService ...@@ -176,7 +176,7 @@ class SyncSupplierService
$groupCode = array_get($syncResult, 'group_code'); $groupCode = array_get($syncResult, 'group_code');
$sourceSn = array_get($syncResult, 'source_sn'); $sourceSn = array_get($syncResult, 'source_sn');
$companyCategory = array_get($syncResult, 'company_category', ''); $companyCategory = array_get($syncResult, 'company_category', '');
$isEntity = array_get($syncResult, 'is_entity', 0); $isEntity = $companyCategory == "实体名单供应商";
$supplier = SupplierChannelModel::where('supplier_id', $sourceSn)->orWhere('group_code', $groupCode)->first(); $supplier = SupplierChannelModel::where('supplier_id', $sourceSn)->orWhere('group_code', $groupCode)->first();
$supplier = !empty($supplier) ? $supplier->toArray() : []; $supplier = !empty($supplier) ? $supplier->toArray() : [];
$supplierId = $supplier['supplier_id']; $supplierId = $supplier['supplier_id'];
......
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