diff --git a/app/Http/Controllers/Admin/CategoryController.php b/app/Http/Controllers/Admin/CategoryController.php
index d277ad3..6c2fcb9 100644
--- a/app/Http/Controllers/Admin/CategoryController.php
+++ b/app/Http/Controllers/Admin/CategoryController.php
@@ -74,7 +74,7 @@ class CategoryController extends CommonController
$data['id'] = $id;
$post = object_to_array(DB::table('arctype')->where('id', $id)->first(), 1);
- $reid = $post['reid'];
+ $reid = $post['pid'];
if($reid!=0){$data['postone'] = object_to_array(DB::table('arctype')->where('id', $reid)->first());}
$data['post'] = $post;
diff --git a/resources/views/admin/product/index.blade.php b/resources/views/admin/product/index.blade.php
index 6cea8b0..7a6521d 100644
--- a/resources/views/admin/product/index.blade.php
+++ b/resources/views/admin/product/index.blade.php
@@ -22,7 +22,7 @@
|
title; ?> litpic)){echo "[图]";}if($row->tuijian==1){echo "[荐]";} ?> |
pubdate); ?> |
- name; ?> | click; ?> | 预览 修改 删除 |
+ name; ?> | click; ?> | 预览 修改 删除 |
diff --git a/routes/web.php b/routes/web.php
index ddd624d..3b924fe 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -25,7 +25,7 @@ Route::group(['domain' => env('APP_SUBDOMAIN'), 'namespace' => 'Wap'], function
Route::get('/page/{id}', 'IndexController@page')->name('wap_singlepage'); //单页
Route::get('/goods/{id}', 'IndexController@product')->name('wap_product'); //商品详情页
Route::get('/product{cat}/{page}', 'IndexController@productcat'); //产品分类页,分页
- Route::get('/product{cat}', 'IndexController@productcat')->name('productcat'); //产品分类页
+ Route::get('/product{cat}', 'IndexController@productcat')->name('wap_productcat'); //产品分类页
Route::get('/sitemap.xml', 'IndexController@sitemap')->name('wap_sitemap');//sitemap
});
@@ -44,7 +44,7 @@ Route::group(['namespace' => 'Home'], function () {
Route::get('/page/{id}', 'IndexController@page')->name('home_singlepage'); //单页
Route::get('/goods/{id}', 'IndexController@product')->name('home_product'); //商品详情页
Route::get('/product{cat}/{page}', 'IndexController@productcat'); //产品分类页,分页
- Route::get('/product{cat}', 'IndexController@productcat')->name('productcat'); //产品分类页
+ Route::get('/product{cat}', 'IndexController@productcat')->name('home_productcat'); //产品分类页
Route::get('/sitemap.xml', 'IndexController@sitemap')->name('home_sitemap');//sitemap
Route::get('/aaa', function () {