From 96fd219585129e8af6bd1d30da6eed7e3043f544 Mon Sep 17 00:00:00 2001 From: ljl <17743125563@163.com> Date: Sat, 20 Jan 2024 17:29:35 +0800 Subject: [PATCH] iam:fix . --- support/iam/src/console_passport/api/iam_cp_account_api.rs | 2 +- support/iam/src/console_passport/api/iam_cp_app_api.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/support/iam/src/console_passport/api/iam_cp_account_api.rs b/support/iam/src/console_passport/api/iam_cp_account_api.rs index 7e58fca16..c8d8b0848 100644 --- a/support/iam/src/console_passport/api/iam_cp_account_api.rs +++ b/support/iam/src/console_passport/api/iam_cp_account_api.rs @@ -88,7 +88,7 @@ impl IamCpAccountApi { ) .await? .into_iter() - .map(|resp| resp.rel_rbum_set_cate_sys_code) + .map(|resp| resp.rel_rbum_set_cate_sys_code.unwrap_or("".to_string())) .collect::>(); if cate_codes.is_empty() { return TardisResp::ok(vec![]); diff --git a/support/iam/src/console_passport/api/iam_cp_app_api.rs b/support/iam/src/console_passport/api/iam_cp_app_api.rs index 6abb1eb0d..881357b3b 100644 --- a/support/iam/src/console_passport/api/iam_cp_app_api.rs +++ b/support/iam/src/console_passport/api/iam_cp_app_api.rs @@ -103,7 +103,7 @@ impl IamCpAppApi { ) .await? .into_iter() - .map(|resp| resp.rel_rbum_set_cate_sys_code) + .map(|resp| resp.rel_rbum_set_cate_sys_code.unwrap_or("".to_string())) .collect::>(); if cate_codes.is_empty() { return TardisResp::ok(vec![]);