mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
改进cookie助手函数
This commit is contained in:
@@ -330,7 +330,7 @@ if (!function_exists('cookie')) {
|
|||||||
Cookie::clear($value);
|
Cookie::clear($value);
|
||||||
} elseif ('' === $value) {
|
} elseif ('' === $value) {
|
||||||
// 获取
|
// 获取
|
||||||
return 0 === strpos($name, '?') ? Cookie::has(substr($name, 1), $option) : Cookie::get($name);
|
return 0 === strpos($name, '?') ? Cookie::has(substr($name, 1), $option) : Cookie::get($name, $option);
|
||||||
} elseif (is_null($value)) {
|
} elseif (is_null($value)) {
|
||||||
// 删除
|
// 删除
|
||||||
return Cookie::delete($name);
|
return Cookie::delete($name);
|
||||||
|
|||||||
Reference in New Issue
Block a user