mirror of
https://gitee.com/openharmony/telephony_cellular_data
synced 2024-11-23 16:00:12 +00:00
卡账户问题对齐
Signed-off-by: liuxiyao223 <liuxiyao223@huawei.com>
This commit is contained in:
parent
04554b2a34
commit
8f73da5924
@ -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
|
||||
|
14
interfaces/kits/js/@ohos.telephony.data.d.ts
vendored
14
interfaces/kits/js/@ohos.telephony.data.d.ts
vendored
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user