diff --git a/app/Http/Controllers/Admin/ProductController.php b/app/Http/Controllers/Admin/ProductController.php index 8e5a543..4cb103d 100644 --- a/app/Http/Controllers/Admin/ProductController.php +++ b/app/Http/Controllers/Admin/ProductController.php @@ -119,7 +119,7 @@ class ProductController extends SuperController { // $this->getPrice(); // $this->auto_close_open(); - $product = Product::with([])->where('active', 1)->get(); + $product = Product::with(['file'])->where('active', 1)->get(); return response()->json($product); } diff --git a/routes/web.php b/routes/web.php index 0d7a04f..7e6d915 100644 --- a/routes/web.php +++ b/routes/web.php @@ -16,7 +16,7 @@ use Illuminate\Http\Request; Route::get('/refPricer', function () { // $RPrices = Http::get('https://pricing.liman.gold/pricingApi', [])->json(); - $RPrices = Http::get('http://37.32.11.142:4949/api/free', [])->json(); + $RPrices = Http::get('http://109.122.246.48:4949/api/free', [])->json(); $products = Product::with([])->whereNotNull('reading_method')->get(); foreach ($products as $product) {