卡账户问题对齐

Signed-off-by: liuxiyao223 <liuxiyao223@huawei.com>
This commit is contained in:
liuxiyao223 2023-06-08 18:47:45 +08:00
parent 04554b2a34
commit 8f73da5924
2 changed files with 9 additions and 9 deletions

View File

@ -176,7 +176,7 @@ int32_t CellularDataServiceProxy::GetDefaultCellularDataSimId(int32_t &simId)
MessageOption option;
data.WriteInterfaceToken(CellularDataServiceProxy::GetDescriptor());
if (Remote() == nullptr) {
TELEPHONY_LOGE("remote is null");
TELEPHONY_LOGE("failed: remote is null");
return TELEPHONY_ERR_IPC_CONNECT_STUB_FAIL;
}
int32_t error = Remote()->SendRequest((uint32_t)FuncCode::GET_DEFAULT_SIM_ID, data, reply, option);
@ -325,4 +325,4 @@ int32_t CellularDataServiceProxy::UnregisterSimAccountCallback()
return reply.ReadInt32();
}
} // namespace Telephony
} // namespace OHOS
} // namespace OHOS

View File

@ -366,12 +366,12 @@ declare namespace data {
*/
function disableCellularDataRoaming(slotId: number): Promise<void>;
/**
* Obtains the default cellular data SIM ID.
*
* @returns Returns the SIM ID of the default cellular data sim and SIM ID will increase from 1.
* @since 10
*/
/**
* Obtains the default cellular data SIM ID.
*
* @returns Returns the SIM ID of the default cellular data sim and SIM ID will increase from 1.
* @since 10
*/
function getDefaultCellularDataSimId(): number;
/**
@ -473,4 +473,4 @@ declare namespace data {
}
}
export default data;
export default data;