$token = Request::instance()->header();,我打印出来之后并没有token值
来源:9-5 实现Token身份权限体系三
章鱼只喝水
2018-05-29
结果如下:
array(10) { ["connection"] => string(5) "close" ["content-length"] => string(3) "103" ["accept-encoding"] => string(13) "gzip, deflate" ["host"] => string(9) "localhost" ["accept"] => string(3) "*/*" ["user-agent"] => string(20) "PostmanRuntime/7.1.5" ["postman-token"] => string(36) "145a8130-0b2a-4e84-8168-5e4e3f858dc9" ["cache-control"] => string(8) "no-cache" ["content-type"] => string(16) "application/json" ["name"] => string(32) "023WnNvW0GMcFU11LDvW0W45wW0WnNvW" }
写回答
1回答
-
7七月
2018-05-29
那就是你客户端么有传token啊。
012022-11-20
相似问题