3他这样判断呀empty
if(empty($cookie)===falseorempty(session('member'))===false){
session机制
session(['key' => 'value']);
(empty($member->description)===false
if(empty($data)===false){
$content['data']=$data;
}
转载于:https://www.cnblogs.com/keiweila/p/7989747.html