5.0.0 - 普通 - 未处理
获取器内如果返回布尔值 且值不为true 就不会显示!public function getIsBindEmailAttr($val, $data) : bool
{
return empty($data['email']) ? false : true;
}
$user->appedn(['isBindEmail']);用 $result->append(['xxxx']); 就不行的namespace think\model\concern\Conversion;
就在这里 $value 返回的确实是一个 false
$value = $this->getAttr($name, $item);
if (false !== $value) {
$item[$name] = $value;
} 