路由配置文件模式如果修改??

浏览:2022 发布日期:2018/09/21 分类:ThinkPHP5专区
return [
    'v1/wechat/oath' => ['v1/wechat/oath', ['method' => 'post']],
];
这种模式如何改成use think\Route;

Route::get('v1/wechat/oath','v1/wechat/oath');
一直报错。。[think\exception\ErrorException]
  Non-static method think\Route::get() should not be called statically
最佳答案
评论( 相关
后面还有条评论,点击查看>>