tp5.1中间件被转移

浏览:79 发布日期:2019/10/17 分类:ThinkPHP5专区
本人使用中间件进行加密解密操作
使用get请求后。文本被转义,请问需要怎么解决这个操作(PS:测试POST正常)

因图片无法上传,直接贴中间件request的打印文本

think\Request object
(
[method] => GET
[host] => api.aoyoufeiyu.com
[domain] =>
[subDomain] => api
[panDomain] =>
[url] => /index.php/admin/admin/create?body=HP8vORv1ZsxuOOJNMBs7zqUi7m6gqhBo9JNhf6UMGM8jeS658+ohcN/3/92eYQx3hHlSD6XIGhSmGahtlrzhV8NMnuXoAimCVTtMcqO270Y8XJ0a9aIVoDpfRJCdU4t9yJw/OJHQuq+httM1h/CWyvxflf45YvuHq1QBwCKuDGQ=
[baseUrl] =>
[baseFile] =>
[root] =>
[pathinfo] => admin/admin/create
[path] => admin/admin/create
[routeInfo] => Array
(
[rule] => admin/admin/create
[route] => admin/admin/create
[option] => Array
(
[merge_rule_regex] =>
[middleware] => Array
(
[0] => Array
(
[0] => CheckAes
[1] =>
)

)

)

[var] => Array
(
)

)

[module] => admin
[controller] => Admin
[action] => create
[langset] => zh-cn
[param] => Array
(
[body] => HP8vORv1ZsxuOOJNMBs7zqUi7m6gqhBo9JNhf6UMGM8jeS658 ohcN/3/92eYQx3hHlSD6XIGhSmGahtlrzhV8NMnuXoAimCVTtMcqO270Y8XJ0a9aIVoDpfRJCdU4t9yJw/OJHQuq httM1h/CWyvxflf45YvuHq1QBwCKuDGQ=
)

[get] => Array
(
[body] => HP8vORv1ZsxuOOJNMBs7zqUi7m6gqhBo9JNhf6UMGM8jeS658 ohcN/3/92eYQx3hHlSD6XIGhSmGahtlrzhV8NMnuXoAimCVTtMcqO270Y8XJ0a9aIVoDpfRJCdU4t9yJw/OJHQuq httM1h/CWyvxflf45YvuHq1QBwCKuDGQ=
)

[post] => Array
(
)

[request] => Array
(
)

[route] => Array
(
)

[put] =>
[session] => Array
(
)

[file] => Array
(
)

[cookie] => Array
(
)

[server] => Array
(
[USER] => www
[HOME] => /home/www
[HTTP_COOKIE] => pgv_pvi=6622429184; pgv_si=s2505472000
[HTTP_ACCEPT_LANGUAGE] => zh-CN,zh;q=0.9
[HTTP_ACCEPT_ENCODING] => gzip, deflate
[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3
[HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36
[HTTP_UPGRADE_INSECURE_REQUESTS] => 1
[HTTP_CACHE_CONTROL] => no-cache
[HTTP_PRAGMA] => no-cache
[HTTP_CONNECTION] => keep-alive
[HTTP_HOST] => api.aoyoufeiyu.com
[PATH_INFO] => /admin/admin/create
[REDIRECT_STATUS] => 200
[SERVER_NAME] => api.aoyoufeiyu.com
[SERVER_PORT] => 80
[SERVER_ADDR] => 192.168.2.182
[REMOTE_PORT] => 50233
[REMOTE_ADDR] => 192.168.2.6
[SERVER_SOFTWARE] => nginx/1.15.10
[GATEWAY_INTERFACE] => CGI/1.1
[REQUEST_SCHEME] => http
[SERVER_PROTOCOL] => HTTP/1.1
[DOCUMENT_ROOT] => /www/wwwroot/api.aoyoufeiyu.com/public
[DOCUMENT_URI] => /index.php/admin/admin/create
[REQUEST_URI] => /index.php/admin/admin/create?body=HP8vORv1ZsxuOOJNMBs7zqUi7m6gqhBo9JNhf6UMGM8jeS658+ohcN/3/92eYQx3hHlSD6XIGhSmGahtlrzhV8NMnuXoAimCVTtMcqO270Y8XJ0a9aIVoDpfRJCdU4t9yJw/OJHQuq+httM1h/CWyvxflf45YvuHq1QBwCKuDGQ=
[script_NAME] => /index.php
[CONTENT_LENGTH] =>
[CONTENT_TYPE] =>
[REQUEST_METHOD] => GET
[QUERY_STRING] => body=HP8vORv1ZsxuOOJNMBs7zqUi7m6gqhBo9JNhf6UMGM8jeS658+ohcN/3/92eYQx3hHlSD6XIGhSmGahtlrzhV8NMnuXoAimCVTtMcqO270Y8XJ0a9aIVoDpfRJCdU4t9yJw/OJHQuq+httM1h/CWyvxflf45YvuHq1QBwCKuDGQ=
[script_FILENAME] => /www/wwwroot/api.aoyoufeiyu.com/public/index.php
[FCGI_ROLE] => RESPONDER
[PHP_SELF] => /index.php/admin/admin/create
[REQUEST_TIME_FLOAT] => 1571304697.8668
[REQUEST_TIME] => 1571304697
)

[env] => Array
(
[THINK_PATH] => /www/wwwroot/api.aoyoufeiyu.com/thinkphp/
[ROOT_PATH] => /www/wwwroot/api.aoyoufeiyu.com/
[APP_PATH] => /www/wwwroot/api.aoyoufeiyu.com/application/
[CONFIG_PATH] => /www/wwwroot/api.aoyoufeiyu.com/config/
[ROUTE_PATH] => /www/wwwroot/api.aoyoufeiyu.com/route/
[RUNTIME_PATH] => /www/wwwroot/api.aoyoufeiyu.com/runtime/
[EXTEND_PATH] => /www/wwwroot/api.aoyoufeiyu.com/extend/
[VENDOR_PATH] => /www/wwwroot/api.aoyoufeiyu.com/vendor/
[APP_NAMESPACE] => app
[MODULE_PATH] => /www/wwwroot/api.aoyoufeiyu.com/application/
[APP_DEBUG] => 1
)

[header] => Array
(
[cookie] => pgv_pvi=6622429184; pgv_si=s2505472000
[accept-language] => zh-CN,zh;q=0.9
[accept-encoding] => gzip, deflate
[accept] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3
[user-agent] => Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36
[upgrade-insecure-requests] => 1
[cache-control] => no-cache
[pragma] => no-cache
[connection] => keep-alive
[host] => api.aoyoufeiyu.com
[content-type] =>
[content-length] =>
)

[mimeType] => Array
(
[xml] => application/xml,text/xml,application/x-xml
[json] => application/json,text/x-json,application/jsonrequest,text/json
[js] => text/javascript,application/javascript,application/x-javascript
[css] => text/css
[rss] => application/rss+xml
[yaml] => application/x-yaml,text/yaml
[atom] => application/atom+xml
[pdf] => application/pdf
[text] => text/plain
[image] => image/png,image/jpg,image/jpeg,image/pjpeg,image/gif,image/webp,image/*
[csv] => text/csv
[html] => text/html,application/xhtml+xml,*/*
)

[content] =>
[filter] =>
[hook] => Array
(
)

[input] =>
[cache] =>
[isCheckCache] =>
[secureKey] =>
[mergeParam] => 1
)
最佳答案
评论( 相关
后面还有条评论,点击查看>>