@@ -135,7 +135,7 @@ class LowPriceGoodsDataJobs implements ShouldQueue
}
if ($city_name != '') {
- $city_name = $CitysModel->where([['name', 'like', "%$city_name%"], ['level', '=', '2']])->value('name');
+ $city_name = $CitysModel->where([['id', '=',$product_data['city_id']], ['level', '=', '2']])->value('name');
$insert_product_data = [
@@ -133,7 +133,7 @@ class ViolationProductDataJobs implements ShouldQueue
'company_id' => $company_id,
@@ -126,7 +126,7 @@ class ViolationStoreDataJobs implements ShouldQueue