Signed-off-by: 1439925662@qq.com <1439925662@qq.com>
This commit is contained in:
1439925662@qq.com 2024-11-14 15:41:41 +08:00
parent fe72c1c02f
commit f9ce977576

View File

@ -2162,7 +2162,7 @@ napi_value JudgmentData(napi_env env, sptr<CellInformation> infoItem, CellInform
static void NativeGetCellInformation(napi_env env, void *data) static void NativeGetCellInformation(napi_env env, void *data)
{ {
auto asyncContext = static_cast<CellInformationContext *>(data); auto asyncContext = static_cast<CellInformationContext *>(data);
if (!IsValidSlotId(asyncContext->slotId)) { if (!IsValidSlotIdEx(asyncContext->slotId)) {
TELEPHONY_LOGE("NativeGetCellInformation slotId is invalid"); TELEPHONY_LOGE("NativeGetCellInformation slotId is invalid");
asyncContext->errorCode = ERROR_SLOT_ID_INVALID; asyncContext->errorCode = ERROR_SLOT_ID_INVALID;
return; return;