🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
**伪静态规则** 方法一:application\route.php 添加到其中 ``` Route::group(['name'=>'mall','ext'=>'html'],[ 'show-<id>-?<storeid?>'=>['mall/content/show',['method'=>'get'],['id'=>'\d+','storeid'=>'\d+']], 'coupon-<id>'=>['mall/content/coupon',['method'=>'get'],['id'=>'\d+']], 'miaosha-<id>'=>['mall/miaosha/show',['method'=>'get'],['id'=>'\d+']], 'list-<fid>-?<order?>'=>['mall/content/index',['method'=>'get'],['fid'=>'\d+','order'=>'\d+']], 'help$'=>['mall/help/index'], 'help-<id>$'=>['mall/help/show',['method'=>'get'],['id'=>'\d+']], 'store/index$'=>['mall/store/index'], 'store$'=>['mall/store/index'], 'store-<id>'=>['mall/store/show',['method'=>'get'],['id'=>'\d+']], 'store-about-<id>'=>['mall/store/about',['method'=>'get'],['id'=>'\d+']], 'store-shop-<id>-?<fid?>'=>['mall/store/shop',['method'=>'get'],['id'=>'\d+','fid'=>'\d+']], 'store-contact-<id>'=>['mall/store/contact',['method'=>'get'],['id'=>'\d+']], 'show'=>'mall/content/show', 'list'=>'mall/content/index', 'index-?<order?>$'=>['mall/index/index',['method'=>'get'],['order'=>'\d+']], ]); ``` 方法二: application\routemy.php 没有的新建一个 ``` <?php use think\Route; Route::group(['name'=>'mall','ext'=>'html'],[ 'show-<id>-?<storeid?>'=>['mall/content/show',['method'=>'get'],['id'=>'\d+','storeid'=>'\d+']], 'coupon-<id>'=>['mall/content/coupon',['method'=>'get'],['id'=>'\d+']], 'miaosha-<id>'=>['mall/miaosha/show',['method'=>'get'],['id'=>'\d+']], 'list-<fid>-?<order?>'=>['mall/content/index',['method'=>'get'],['fid'=>'\d+','order'=>'\d+']], 'help$'=>['mall/help/index'], 'help-<id>$'=>['mall/help/show',['method'=>'get'],['id'=>'\d+']], 'store/index$'=>['mall/store/index'], 'store$'=>['mall/store/index'], 'store-<id>'=>['mall/store/show',['method'=>'get'],['id'=>'\d+']], 'store-about-<id>'=>['mall/store/about',['method'=>'get'],['id'=>'\d+']], 'store-shop-<id>-?<fid?>'=>['mall/store/shop',['method'=>'get'],['id'=>'\d+','fid'=>'\d+']], 'store-contact-<id>'=>['mall/store/contact',['method'=>'get'],['id'=>'\d+']], 'show'=>'mall/content/show', 'list'=>'mall/content/index', 'index-?<order?>$'=>['mall/index/index',['method'=>'get'],['order'=>'\d+']], ]); ```