We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在后台端和商户端生成的HTML5地址时URL美化规则未生效.
插件名: ad
在后台端和商户端生成Html5地址:
生成地址为: http://a.com/html5/ad/qrcode/view?merchant_id=1&id=3 在html5端设置URL美化时: 'urlManager' => [ 'enablePrettyUrl' => true, 'showScriptName' => false, 'suffix' => '.html', 'rules' => [ 'q/<merchant_id:\d+>-<id:\d+>' => 'ad/qrcode/view', ], ], 生成的地址为: http://a.com/html5/q/1-3.html // 已成功. 后台生成html5网址时, 应该是返回重写地址.
http://a.com/html5/ad/qrcode/view?merchant_id=1&id=3
'urlManager' => [ 'enablePrettyUrl' => true, 'showScriptName' => false, 'suffix' => '.html', 'rules' => [ 'q/<merchant_id:\d+>-<id:\d+>' => 'ad/qrcode/view', ], ],
http://a.com/html5/q/1-3.html // 已成功.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
在后台端和商户端生成的HTML5地址时URL美化规则未生效.
插件名: ad
在后台端和商户端生成Html5地址:
$model->id,'agent_id'=>$item->id])?>生成地址为:
http://a.com/html5/ad/qrcode/view?merchant_id=1&id=3
在html5端设置URL美化时:
'urlManager' => [ 'enablePrettyUrl' => true, 'showScriptName' => false, 'suffix' => '.html', 'rules' => [ 'q/<merchant_id:\d+>-<id:\d+>' => 'ad/qrcode/view', ], ],
生成的地址为:
http://a.com/html5/q/1-3.html // 已成功.
后台生成html5网址时, 应该是返回重写地址.
The text was updated successfully, but these errors were encountered: