pub fn read_or_generate_device_id(
account: &str,
override_value: Option<&str>,
) -> Result<String, DeviceStoreError>Expand description
读取 device_id;文件不存在则生成新的 16-hex 随机值并持久化。
如果 override_value 是 Some(hex)(来自 --device-id CLI 参数),
直接用并更新文件。