Business processing method and device and storage medium
By detecting supplementary service query events in the terminal device and obtaining query status identifiers, and obtaining service attributes from the local storage space, the problems of poor user experience, network blockage and increased power consumption caused by supplementary service query are solved, and more efficient service processing is achieved.
Patent Information
- Application Number
- CN202311267717.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-27
- Publication Date
- 2025-03-28
AI Technical Summary
In the prior art, supplementary service query requires multiple network interactions, resulting in poor user experience, network blockage and increased power consumption.
By detecting query events that supplement services, the query status identifier is obtained. If the status is valid, the service attributes are obtained from the local storage space to avoid repeated network queries.
It effectively solves the problems of interaction time-consuming waiting, network blocking and increased power consumption, and improves the user experience.
Smart Images

Figure CN119719456A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communications, and in particular to a service processing method, device, and storage medium. Background Art
[0002] In the related technology, when conducting supplementary service inquiries, the terminal is generally required to conduct a series of multiple interactions with the wireless network. For example, the common call forwarding service requires initiating four network requests, including unconditional, busy, no answer, and user unreachable; the common call restriction service requires initiating five network requests, including all outgoing calls, international long-distance outgoing calls, international long-distance roaming outgoing calls, all incoming calls, and incoming calls during roaming.
[0003] For a series of supplementary service requests, if a query is initiated each time, since the request is blocking, a progress box needs to pop up on the user interface (UI) to wait for the network to return the result. The long time consumption will lead to a poor user experience. If the request result is abnormal due to a subscriber identity module (SIM) or network error, other wireless service requests will be blocked, resulting in a delay in obtaining key network service data. On wearable devices that are sensitive to power consumption, a large number of supplementary services interacting with the network side will also seriously increase power consumption. Summary of the invention
[0004] In order to overcome the problems existing in the related art, the present disclosure provides a service processing method, device and storage medium to overcome the problems of long time consumption, network congestion and increased power consumption in supplementary service query.
[0005] According to a first aspect of an embodiment of the present disclosure, a service processing method is provided, including:
[0006] In the case of detecting a query event for a target supplementary service, obtaining a query status identifier of the target supplementary service; wherein the query status identifier is used to indicate a preload result corresponding to the supplementary service;
[0007] If the query status flag of the target supplementary service is in a valid state, obtaining the service attribute of the target supplementary service from the local storage space of the terminal device to complete the query of the target supplementary service;
[0008] The query status flag of the target supplementary service is in a valid state, indicating that the service attributes of the target supplementary service have been successfully preloaded into the local storage space, and the service attributes of the target supplementary service are used to indicate the activation status of the services supported by the target supplementary service.
[0009] In some embodiments, the method further comprises:
[0010] When a power-on event of the terminal device is detected, adjusting the priority of the supplementary service to be lower than the priority of the non-supplementary service;
[0011] When the priority of the supplementary service is the highest, executing a first query request corresponding to the supplementary service;
[0012] In the case where the first query request is executed successfully, the service attribute of the supplementary service is preloaded into the local storage space, and the query status identifier of the supplementary service is determined to be in a valid state.
[0013] In some embodiments, the first query request is multiple, and the first query request corresponds to a sub-service of the supplementary service; and if the first query request is successfully executed, preloading the service attribute of the supplementary service into the local storage space includes:
[0014] Execute each of the first query requests in turn in a round-robin manner;
[0015] During the polling process, if the first query request is executed successfully, the service attributes obtained based on the first query request are preloaded into the local storage space until the service attributes of all sub-services corresponding to the supplementary service are preloaded into the local storage space.
[0016] In some embodiments, when the first query request is successfully executed, determining that the query status identifier of the supplementary service is in a valid state includes:
[0017] In a case where all the first query requests are executed successfully, determining that the query status identifier of the supplementary service is in a valid state;
[0018] The method further comprises:
[0019] In the event that any of the first query requests fails to be executed, it is determined that the query status identifier of the supplementary service is in an invalid state.
[0020] In some embodiments, the method further comprises:
[0021] In case that the update instruction for the update supplementary service is successfully executed, executing a second query request corresponding to the update supplementary service;
[0022] When the second query request is executed successfully, the local storage space is updated using the service attributes obtained based on the second query request.
[0023] In some embodiments, the method further comprises:
[0024] When the query status flag of the target supplementary service is in an invalid state, executing a third query request corresponding to the target supplementary service;
[0025] In the case where the third query request is executed successfully, the service attribute of the target supplementary service is updated to the local storage space, and the query status identifier of the target supplementary service is updated to a valid state.
[0026] In some embodiments, the third query request is multiple, and the third query request corresponds to a sub-service of the target supplementary service; when the third query request is successfully executed, updating the service attribute of the target supplementary service to the local storage space includes:
[0027] Execute each of the third query requests in turn in a polling manner;
[0028] During the polling process, if the third query request is executed successfully, the service attributes obtained based on the third query request are preloaded into the local storage space until the service attributes of all sub-services corresponding to the target supplementary service are updated into the local storage space.
[0029] According to a second aspect of an embodiment of the present disclosure, a service processing device is provided, including:
[0030] A first acquisition module is configured to acquire a query status identifier of the target supplementary service when a query event for the target supplementary service is detected; wherein the query status identifier is used to indicate a preload result corresponding to the supplementary service;
[0031] A second acquisition module is configured to acquire the service attribute of the target supplementary service from the local storage space of the terminal device if the query status identifier of the target supplementary service is in a valid state, so as to complete the query of the target supplementary service;
[0032] The query status flag of the target supplementary service is in a valid state, indicating that the service attributes of the target supplementary service have been successfully preloaded into the local storage space, and the service attributes of the target supplementary service are used to indicate the activation status of the services supported by the target supplementary service.
[0033] In some embodiments, the apparatus further comprises:
[0034] an adjustment module, configured to adjust the priority of the supplementary service to be lower than the priority of the non-supplementary service when a power-on event of the terminal device is detected;
[0035] A first execution module, configured to execute a first query request corresponding to the supplementary service when the priority of the supplementary service is the highest;
[0036] The preloading module is configured to preload the service attribute of the supplementary service into the local storage space and determine that the query status identifier of the supplementary service is a valid state when the first query request is successfully executed.
[0037] In some embodiments, the first query request is multiple, and the first query request corresponds to a sub-service of the supplementary service; the preloading module is configured as follows:
[0038] Execute each of the first query requests in turn in a round-robin manner;
[0039] During the polling process, if the first query request is executed successfully, the service attributes obtained based on the first query request are preloaded into the local storage space until the service attributes of all sub-services corresponding to the supplementary service are preloaded into the local storage space.
[0040] In some embodiments, the preloading module is configured as follows:
[0041] In a case where all the first query requests are executed successfully, determining that the query status identifier of the supplementary service is in a valid state;
[0042] The device also includes:
[0043] The determination module is configured to determine that the query status identifier of the supplementary service is in an invalid state when any execution of the first query request fails.
[0044] In some embodiments, the apparatus further comprises:
[0045] A second execution module is configured to execute a second query request corresponding to the update supplementary service when the update instruction for the update supplementary service is successfully executed;
[0046] The first updating module is configured to update the local storage space using the service attributes obtained based on the second query request when the second query request is successfully executed.
[0047] In some embodiments, the apparatus further comprises:
[0048] A third execution module, configured to execute a third query request corresponding to the target supplementary service when the query state identifier of the target supplementary service is in an invalid state;
[0049] The second updating module is configured to update the service attribute of the target supplementary service to the local storage space and update the query status identifier of the target supplementary service to a valid state if the third query request is executed successfully.
[0050] In some embodiments, the third query request is multiple, and the third query request corresponds to a sub-service of the target supplementary service; the second updating module is configured to:
[0051] Execute each of the third query requests in turn in a polling manner;
[0052] During the polling process, if the third query request is executed successfully, the service attributes obtained based on the third query request are preloaded into the local storage space until the service attributes of all sub-services corresponding to the target supplementary service are updated into the local storage space.
[0053] According to a third aspect of an embodiment of the present disclosure, a service processing device is provided, including:
[0054] processor;
[0055] a memory configured to store processor-executable instructions;
[0056] Wherein, the processor is configured to: implement the steps in any one of the business processing methods in the first aspect mentioned above when executed.
[0057] According to the fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of a business processing device, the device is enabled to execute any one of the business processing methods in the first aspect above.
[0058] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0059] In the disclosed embodiment, when a query event for a target supplementary service is detected, a query status identifier of the target supplementary service is obtained. If the query status identifier of the target supplementary service is in a valid state, the service attributes of the target supplementary service are obtained from the local storage space of the terminal device.
[0060] The service attributes of the target supplementary service can be preloaded into the local storage space, and the preloaded result of the supplementary service can be identified by querying the status mark. In this way, when the user needs to set the target supplementary service, the service attributes of the target supplementary service can be directly obtained from the local storage space of the terminal device, without having to repeatedly obtain the result from the network side, thereby effectively solving the problems of time-consuming interaction, network congestion and increased power consumption, and improving the user experience.
[0061] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0063] Figure 1 The process of a business processing method according to an exemplary embodiment is shown Figure 1 .
[0064] Figure 2 The process of a business processing method according to an exemplary embodiment is shown Figure 2 .
[0065] Figure 3 The process of a business processing method according to an exemplary embodiment is shown Figure 3 .
[0066] Figure 4 The process of a business processing method according to an exemplary embodiment is shown Figure 4 .
[0067] Figure 5 The figure is a block diagram of a service processing device according to an exemplary embodiment.
[0068] Figure 6 It is a hardware structure block diagram of a service processing device 800 according to an exemplary embodiment. DETAILED DESCRIPTION
[0069] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0070] Figure 1 The process of a business processing method according to an exemplary embodiment is shown Figure 1 ,like Figure 1 As shown, the method can be applied to a terminal device, and mainly includes the following steps:
[0071] In step 101, when a query event for a target supplementary service is detected, a query status identifier of the target supplementary service is obtained; wherein the query status identifier is used to indicate a preload result corresponding to the supplementary service;
[0072] In step 102, if the query status flag of the target supplementary service is in a valid state, the service attribute of the target supplementary service is obtained from the local storage space of the terminal device to complete the query of the target supplementary service;
[0073] The query status flag of the target supplementary service is in a valid state, indicating that the service attributes of the target supplementary service have been successfully preloaded into the local storage space, and the service attributes of the target supplementary service are used to indicate the activation status of the services supported by the target supplementary service.
[0074] Here, terminal devices may include mobile terminals and fixed terminals. For example, mobile phones, tablet computers, PDAs, laptops, desktops, wearable devices, smart speakers, TVs, and vehicle-mounted terminals, etc. Among them, wearable devices may include: portable devices worn directly on the user or integrated into the user's accessories. For example, they may include: wearable devices supported by the wrist (including watches, wristbands, etc.); wearable devices supported by the foot (including shoes, socks, etc.), and wearable devices supported by the head (including headphones, glasses, helmets, headbands, etc.). They may also include: smart clothing, school bags, crutches, accessories, etc.
[0075] In the disclosed embodiments, the terminal device is able to access the mobile communication network and provide telecommunication services to the user. It should be noted that in addition to providing basic services (e.g., basic telecommunication services), the mobile communication network also provides a series of supplementary services. During the use of the terminal device, the user can modify or supplement the supplementary services as needed. When the user needs to set up a supplementary service, a query request can be directly initiated through the user interface to query and set up the supplementary service from the wireless network. For example, a Radio Interface Layer (RIL) request can be directly initiated through the user interface, and a modem device can be used to query and set up the supplementary service from the wireless network.
[0076] In the disclosed embodiment, when a query event for a target supplementary service is detected, a query status identifier of the target supplementary service is obtained. If the query status identifier of the target supplementary service is in a valid state, the service attributes of the target supplementary service are obtained from the local storage space of the terminal device.
[0077] It should be noted that the supplementary services in the present disclosure are services other than basic services in the mobile communication network. Among them, basic services may include call functions, etc. Supplementary services are services that modify or supplement basic services. Supplementary services are attached to basic services and are service functions specially provided to users to meet special application scenarios. Supplementary services cannot be provided to users separately from basic services. For example, supplementary services may include: call forwarding, call restriction, etc.
[0078] In the disclosed embodiment, the query status identifier is used to indicate the preloading result of the supplementary service. For example, if the query status identifier corresponding to the supplementary service is in a valid state, it can be determined that the preloading of the supplementary service is successful, and at this time, the service attributes of the supplementary service can be obtained from the local storage space. For another example, if the query status identifier corresponding to the supplementary service is in an invalid state, it can be determined that the preloading of the supplementary service has failed, and at this time, the service attributes of the supplementary service cannot be obtained from the local storage space. Among them, the query status identifier can be a number, a letter, or a combination of numbers and letters, as long as the terminal device can recognize it, and it is not specifically limited here.
[0079] The service attribute is used to characterize the status of the service supported by the supplementary service. For example, when the supplementary service is unconditional call forwarding, the service attribute of unconditional call forwarding can be on or off. For another example, when the supplementary service is busy call forwarding, the service attribute of busy call forwarding can be on or off.
[0080] In the disclosed embodiment, the target supplementary service may be a service that the user currently needs to query. The user may trigger a query event for the target supplementary service through the user interface of the terminal device, and obtain a query status identifier for the target supplementary service, wherein the query status identifier is used to indicate a preloading result corresponding to the supplementary service, and the query status identifier of the target supplementary service is in a valid state, indicating that the service attributes of the target supplementary service have been successfully preloaded into the local storage space.
[0081] In the disclosed embodiment, the service attributes of the target supplementary service can be preloaded into the local storage space, and the preloaded result of the supplementary service can be identified by querying the status identifier. In this way, when the user needs to set the target supplementary service, the service attributes of the target supplementary service can be directly obtained from the local storage space of the terminal device without repeatedly obtaining the result from the network side, thereby effectively solving the problem of time-consuming interaction and improving the user experience.
[0082] In some embodiments, the method further comprises:
[0083] When a power-on event of the terminal device is detected, adjusting the priority of the supplementary service to be lower than the priority of the non-supplementary service;
[0084] When the priority of the supplementary service is the highest, executing a first query request corresponding to the supplementary service;
[0085] In the case where the first query request is executed successfully, the service attribute of the supplementary service is preloaded into the local storage space, and the query status identifier of the supplementary service is determined to be in a valid state.
[0086] In order to reduce the occupancy rate of system resources of terminal devices caused by preloading, in the embodiments of the present disclosure, when it is determined that preloading of supplementary services is required, if a power-on event of the terminal device is detected, a supplementary service query event can be registered as an idle event source, and the priority of the supplementary service can be adjusted to be lower than that of non-supplementary services, and when the priority of the supplementary service is the highest, the first query request corresponding to the supplementary service is executed. In other words, when the terminal device is turned on, the priority of the preloaded supplementary service can be set to the lowest, and events other than the preloaded supplementary service are all higher priority events. In some embodiments, non-supplementary services can be other wireless service requests, including: basic services, network registration, data activation and other services. For example, network registration and data activation at power-on are all higher priority events.
[0087] After lowering the priority of preloading supplementary services, the priority of supplementary services can be monitored in real time. When the priority of supplementary services rises to the highest level, the operating system of the terminal device is relatively idle and the first query request corresponding to the supplementary services can be executed. When the first query request is successfully executed, the service attributes of the supplementary services can be preloaded into the local storage space.
[0088] In some embodiments, the supplementary service may be a single supplementary service. In the case where the supplementary service is a single supplementary service, the first query request corresponds to the single supplementary service. After the terminal device sends the first query request to the network side, the network side may execute the first query request, and obtain the service attributes of the single supplementary service from the network side based on the first query request, and send the service attributes of the single supplementary service to the terminal device. After obtaining the service attributes of the single supplementary service, the terminal device preloads the service attributes of the single supplementary service into the local storage space, and determines that the query status identifier of the supplementary service is a valid state.
[0089] In some other embodiments, the supplementary service may include multiple sub-services. In the case where the supplementary service is multiple sub-services, after the terminal device sends each first query request to the network side, the network side may execute each first query request, and obtain the service attributes of each sub-service from the network side based on each first query request, and send the service attributes of each sub-service to the terminal device. After obtaining the service attributes of each sub-service, the terminal device preloads the service attributes of each sub-service into the local storage space, and determines that the query status identifier of the supplementary service is a valid state.
[0090] In the disclosed embodiment, the supplementary service preloading can be initiated when the operating system is idle, and the priority of a series of supplementary service query requests can be reduced, which effectively solves the problem of blocking other wireless service requests due to abnormal supplementary service query request results. In the case of a series of supplementary service requests (the first query request), it will be executed once during preloading and the query result (the service attribute of the supplementary service) will be stored in the local storage space.
[0091] In some embodiments, the first query request is multiple, and the first query request corresponds to a sub-service of the supplementary service; and if the first query request is successfully executed, preloading the service attribute of the supplementary service into the local storage space includes:
[0092] Execute each of the first query requests in turn in a round-robin manner;
[0093] During the polling process, if the first query request is executed successfully, the service attributes obtained based on the first query request are preloaded into the local storage space until the service attributes of all sub-services corresponding to the supplementary service are preloaded into the local storage space.
[0094] It should be noted that, in the case where the supplementary service has multiple sub-services, the first query request may be multiple, that is, each sub-service may correspond to a first query request. In this case, the supplementary service may be understood as a set of services of the same type. For example, if the supplementary service is a call forwarding service, the sub-services corresponding to the supplementary service may include: unconditional call forwarding service, busy call forwarding service, no answer call forwarding service, and user unreachable call forwarding service. For another example, if the supplementary service is a call restriction service, the sub-services corresponding to the supplementary service may include: all outgoing call restriction services, international long-distance outgoing call restriction services, international long-distance roaming outgoing call restriction services, all incoming call restriction services, and incoming call restriction services during roaming, etc.
[0095] In the embodiment of the present disclosure, when there are multiple first query requests, each first query request can be executed in sequence in a polling manner. During the polling process, if the first query request is successfully executed, the service attributes of the sub-service corresponding to the first query request can be obtained from the network side based on the first query request, and the service attributes of the sub-service can be preloaded into the local storage space until the service attributes of all sub-services corresponding to the supplementary service are preloaded into the local storage space.
[0096] Taking the supplementary service as call forwarding service, the sub-services corresponding to the supplementary service (call forwarding sub-services) include: unconditional call forwarding service, busy call forwarding service, no answer call forwarding service, and user unreachable call forwarding service as an example. The first query request corresponding to each call forwarding sub-service can be executed separately in a polling manner, and the service attributes of each call forwarding sub-service can be obtained, and the service attributes of each call forwarding sub-service can be preloaded into the local storage space. Until the service attributes of all call forwarding sub-services are preloaded into the local storage space, it can be determined that the preloading of the call forwarding service is completed.
[0097] In the disclosed embodiment, a series of supplementary service requests can be executed once during preloading, and the service attributes obtained based on the first query request can be stored locally. Each time the user enters the supplementary service setting interface, the local storage can be directly obtained without repeating a large number of supplementary service requests, which effectively solves the problem of increased power consumption caused by a large number of supplementary service network interaction re-operations, and has a significant power consumption optimization effect on wearable devices that are sensitive to power consumption.
[0098] In some embodiments, when the first query request is successfully executed, determining that the query status identifier of the supplementary service is in a valid state includes:
[0099] In a case where all the first query requests are executed successfully, determining that the query status identifier of the supplementary service is in a valid state;
[0100] The method further comprises:
[0101] In the event that any of the first query requests fails to be executed, it is determined that the query status identifier of the supplementary service is in an invalid state.
[0102] Here, if the first query request is successfully executed, the query status identifier of the supplementary service is determined to be in a valid state. Take the supplementary service as a call restriction service, and the sub-services corresponding to the supplementary service include: all outgoing call restriction services, international long-distance outgoing call restriction services, international long-distance roaming outgoing call restriction services, all incoming call restriction services, and roaming incoming call restriction services as an example. In the process of preloading the supplementary service, if the first query request corresponding to the call restriction sub-service is successfully executed, the query status identifier of the call restriction service can be determined to be in a valid state.
[0103] During the polling process, if the first query request for any call restriction sub-service fails to execute, the query status identifier of the call restriction service can be directly updated to an invalid state. In some embodiments, if the first query request for any call restriction sub-service fails to execute, the result of the query failure can also be returned. Among them, the reasons for the failure of the first query request may include: when the network side is triggered to query the supplementary service, the transmission of the first query request fails due to the terminal device; the first query request is not successfully sent to the network side; the network side fails to request the operator's server, etc.
[0104] In the implementation of the present disclosure, the query status identifier of the supplementary service can be updated according to the execution result of the first query request, and the supplementary service can be identified based on the updated query status identifier. In this way, when a service query is needed, the pre-loading result of the supplementary service can be determined directly based on the query status identifier of the supplementary service. That is, when the query status identifier is in a valid state, it represents that the service attributes of the supplementary service have been successfully loaded into the local storage space, thereby achieving the acquisition of the service attributes of the supplementary service from the local storage space.
[0105] In some embodiments, the method further comprises:
[0106] In case that the update instruction for the update supplementary service is successfully executed, executing a second query request corresponding to the update supplementary service;
[0107] When the second query request is executed successfully, the local storage space is updated using the service attributes obtained based on the second query request.
[0108] Here, the update instruction is used to instruct to update the supplementary service. For example, an update supplementary service can be added on the basis of the original supplementary service. When the update instruction for updating the supplementary service is successfully executed, the second query request corresponding to the update supplementary service can be executed. When the second query request is successfully executed, the local storage space can be updated using the service attributes obtained based on the second query request.
[0109] In some embodiments, the updated supplementary service may be a single supplementary service. For example, the updated supplementary service may be a call forwarding sub-service, such as unconditional call forwarding, busy call forwarding, no answer call forwarding, user unreachable call forwarding, etc. In other embodiments, the updated supplementary service may also be a collection of multiple supplementary services, for example, the updated supplementary service may be a call forwarding service or a call restriction service.
[0110] In the case where the updated supplementary service is a single supplementary service (for example, a sub-service of a supplementary service), the second query request is also one. In the embodiment of the present disclosure, the second query request can be sent to the network side. When the second query request is successfully executed, the service attributes of the updated supplementary service can be obtained based on the second query request, and the updated service attributes can be updated to the local storage space.
[0111] For example, if the updated supplementary service is an unconditional call forwarding service, the service attributes of the unconditional call forwarding service can be obtained based on the second query request, and the local storage space can be updated based on the service attributes of the unconditional call forwarding service without updating all call forwarding sub-services.
[0112] In other embodiments, when the updated supplementary service is a sub-service and the service attributes of the updated supplementary service are successfully stored in the local storage space, the query status identifier of the supplementary service corresponding to the sub-service may be updated. For example, if the updated supplementary service is an unconditional call forwarding service, the service attributes of the unconditional call forwarding service may be obtained based on the second query request, the local storage space may be updated based on the service attributes of the unconditional call forwarding service, and the query status identifier of the call forwarding service may be updated.
[0113] In the disclosed embodiment, in order to ensure the accuracy of local storage, when the user updates the supplementary service, a single supplementary service command is queried again. Each time the user enters the supplementary service setting interface, the local storage can be directly obtained without repeating a large number of supplementary service requests, which effectively solves the problem of increased power consumption caused by a large number of supplementary service network interaction re-operations, and has a significant power consumption optimization effect on wearable devices that are sensitive to power consumption.
[0114] In some embodiments, the method further comprises:
[0115] When the query status flag of the target supplementary service is in an invalid state, executing a third query request corresponding to the target supplementary service;
[0116] In the case where the third query request is executed successfully, the service attribute of the target supplementary service is updated to the local storage space, and the query status identifier of the target supplementary service is updated to a valid state.
[0117] Here, when the query status identifier of the target supplementary service is in an invalid state, it indicates that the preloading of the target supplementary service has failed, that is, the preloading is not completed. At this time, the third query request corresponding to the target supplementary service can be executed. When the third query request is successfully executed, the service attribute of the target supplementary service is updated to the local storage space, and the query status identifier of the target supplementary service is updated to a valid state.
[0118] In some embodiments, the target supplementary service may be a single supplementary service. When the target supplementary service is a single supplementary service, the third query request corresponds to the target supplementary service. After the terminal device sends the third query request to the network side, the network side may execute the third query request, obtain the service attributes of the target supplementary service from the network side based on the third query request, and send the service attributes of the target supplementary service to the terminal device. After obtaining the service attributes of the target supplementary service, the terminal device preloads the service attributes of the target supplementary service into the local storage space, and determines that the query status identifier of the target supplementary service is a valid state.
[0119] In some other embodiments, the target supplementary service may include multiple sub-services. In the case where the target supplementary service is multiple sub-services, after the terminal device sends each third query request to the network side, the network side may execute each third query request, and obtain the service attributes of each sub-service from the network side based on each third query request, and send the service attributes of each sub-service to the terminal device. After obtaining the service attributes of each sub-service, the terminal device preloads the service attributes of each sub-service into the local storage space, and determines that the query status identifier of the target supplementary service is a valid state.
[0120] In some embodiments, the third query request is multiple, and the third query request corresponds to a sub-service of the target supplementary service; when the third query request is successfully executed, updating the service attribute of the target supplementary service to the local storage space includes:
[0121] Execute each of the third query requests in turn in a polling manner;
[0122] During the polling process, if the third query request is executed successfully, the service attributes obtained based on the third query request are updated to the local storage space until the service attributes of all sub-services corresponding to the target supplementary service are updated to the local storage space.
[0123] It should be noted that, in the case where the target supplementary service has multiple sub-services, the third query request may be multiple, that is, each sub-service may correspond to a third query request. In this case, the target supplementary service may be understood as a set of services of the same type. For example, if the target supplementary service is a call forwarding service, the sub-services corresponding to the target supplementary service may include: unconditional call forwarding service, busy call forwarding service, no answer call forwarding service, and user unreachable call forwarding service. For another example, if the target supplementary service is a call restriction service, the sub-services corresponding to the target supplementary service may include: all outgoing call restriction services, international long-distance outgoing call restriction services, international long-distance roaming outgoing call restriction services, all incoming call restriction services, and incoming call restriction services during roaming, etc.
[0124] In the embodiment of the present disclosure, when there are multiple third query requests, each third query request can be executed in sequence in a polling manner. During the polling process, if the third query request is successfully executed, the service attributes of the sub-service corresponding to the third query request can be obtained from the network side based on the third query request, and the service attributes of the sub-service can be updated to the local storage space until the service attributes of all sub-services corresponding to the target supplementary service are updated to the local storage space.
[0125] Taking the target supplementary service as the call forwarding service, the sub-services corresponding to the target supplementary service (call forwarding sub-services) include: unconditional call forwarding service, busy call forwarding service, no answer call forwarding service, and user unreachable call forwarding service as an example, the third query request corresponding to each call forwarding sub-service can be executed separately in a polling manner, and the service attributes of each call forwarding sub-service can be obtained, and the service attributes of each call forwarding sub-service can be updated to the local storage space, until the service attributes of all call forwarding sub-services are updated to the local storage space, then it can be determined that the update of the call forwarding service is completed.
[0126] In the disclosed embodiment, a series of supplementary service requests can be executed once during the query, and the service attributes obtained based on the third query request can be updated in the local storage, thereby ensuring the real-time performance of the data stored in the local storage space.
[0127] Figure 2 The process of a business processing method according to an exemplary embodiment is shown Figure 2 ,like Figure 2 As shown, the method is applied to the supplementary service preloading unit and mainly includes the following steps:
[0128] In step 201, the priority of the supplementary service is adjusted to be lower than the priority of the non-supplementary service.
[0129] Here, in the case where a power-on event of the terminal device is detected, the priority of the supplementary service may be adjusted to be lower than the priority of the non-supplementary service.
[0130] In step 202, it is determined whether the first query request is executed successfully.
[0131] In step 203, if the first query request is executed successfully, the service attributes obtained based on the first query request are preloaded into the local storage space.
[0132] In step 204, it is determined whether all first query requests are executed successfully.
[0133] In step 205, when all first query requests are executed successfully, it is determined that the query status flag of the supplementary service is in a valid state.
[0134] In step 206, when any first query request fails to be executed, it is determined that the query status flag of the supplementary service is in an invalid state.
[0135] Figure 3 The process of a business processing method according to an exemplary embodiment is shown Figure 3 ,like Figure 3 As shown, the method is applied to a supplementary service update unit and mainly includes the following steps:
[0136] In step 301, it is determined whether the second query request is executed successfully.
[0137] Here, in the case where the update instruction for updating the supplementary service is successfully executed, a second query request corresponding to the update supplementary service may be executed, and it is determined whether the second query request is successfully executed.
[0138] In step 302, when the second query request is executed successfully, the local storage space is updated using the service attributes obtained based on the second query request.
[0139] In step 303, when the execution of the second query request fails, it is determined that the query status flag of the update supplementary service is in an invalid state.
[0140] Figure 4 The process of a business processing method according to an exemplary embodiment is shown Figure 4 ,like Figure 4 As shown, the method is applied to the supplementary service query unit and mainly includes the following steps:
[0141] In step 401, it is determined whether the query status flag of the target supplementary service is in a valid state.
[0142] Here, in the case where a query event for a target supplementary service is detected, the query status identifier of the target supplementary service may be acquired, and it may be determined whether the query status identifier of the target supplementary service is in a valid state.
[0143] In step 402, if the query status flag of the target supplementary service is in a valid state, the service attributes of the target supplementary service are obtained from the local storage space of the terminal device.
[0144] When the query state flag of the target supplementary service is in an invalid state, a third query request corresponding to the target supplementary service is executed.
[0145] In step 403, it is determined whether the third query request is executed successfully.
[0146] In step 404, when the third query request is executed successfully, the service attributes obtained based on the third query request are preloaded into the local storage space.
[0147] Here, the service attributes obtained based on the third query request are the service attributes of the target supplementary service.
[0148] In step 405, it is determined whether all third query requests are executed successfully.
[0149] In step 406, when all third query requests are executed successfully, the query status flag of the target supplementary service is updated to a valid state.
[0150] In step 407, when any third query request fails to be executed, the query status flag of the target supplementary service is maintained as an invalid state.
[0151] In the disclosed embodiment, the service attributes of the target supplementary service can be preloaded into the local storage space, and the preloaded result of the supplementary service can be identified by querying the status identifier. In this way, when the user needs to set the target supplementary service, the service attributes of the target supplementary service can be directly obtained from the local storage space of the terminal device without repeatedly obtaining the result from the network side, thereby effectively solving the problems of time-consuming interaction, network congestion and increased power consumption, and improving the user experience.
[0152] To ensure the accuracy of local storage, a single supplementary service command is queried again only when the user updates the supplementary service. Every time the user enters the supplementary service setting interface, the local storage can be directly obtained without repeating a large number of supplementary service requests, which effectively solves the problem of increased power consumption caused by a large number of supplementary service network interaction re-operations, and has a significant power consumption optimization effect on wearable devices that are sensitive to power consumption.
[0153] Figure 5FIG. 1 is a block diagram of a service processing device according to an exemplary embodiment. Figure 5 As shown, the service processing device 500 can be applied to a terminal device, and mainly includes:
[0154] The first acquisition module 501 is configured to acquire a query status identifier of the target supplementary service when a query event for the target supplementary service is detected; wherein the query status identifier is used to indicate a preload result corresponding to the supplementary service;
[0155] The second acquisition module 502 is configured to acquire the service attribute of the target supplementary service from the local storage space of the terminal device if the query status flag of the target supplementary service is in a valid state, so as to complete the query of the target supplementary service;
[0156] The query status flag of the target supplementary service is in a valid state, indicating that the service attributes of the target supplementary service have been successfully preloaded into the local storage space, and the service attributes of the target supplementary service are used to indicate the activation status of the services supported by the target supplementary service.
[0157] In some embodiments, the apparatus 500 further includes:
[0158] an adjustment module, configured to adjust the priority of the supplementary service to be lower than the priority of the non-supplementary service when a power-on event of the terminal device is detected;
[0159] A first execution module, configured to execute a first query request corresponding to the supplementary service when the priority of the supplementary service is the highest;
[0160] The preloading module is configured to preload the service attribute of the supplementary service into the local storage space and determine that the query status identifier of the supplementary service is a valid state when the first query request is successfully executed.
[0161] In some embodiments, the first query request is multiple, and the first query request corresponds to a sub-service of the supplementary service; the preloading module is configured as follows:
[0162] Execute each of the first query requests in turn in a round-robin manner;
[0163] During the polling process, if the first query request is executed successfully, the service attributes obtained based on the first query request are preloaded into the local storage space until the service attributes of all sub-services corresponding to the supplementary service are preloaded into the local storage space.
[0164] In some embodiments, the preloading module is configured as follows:
[0165] In a case where all the first query requests are executed successfully, determining that the query status identifier of the supplementary service is in a valid state;
[0166] The device 500 further includes:
[0167] The determination module is configured to determine that the query status identifier of the supplementary service is in an invalid state when any execution of the first query request fails.
[0168] In some embodiments, the apparatus 500 further includes:
[0169] A second execution module is configured to execute a second query request corresponding to the update supplementary service when the update instruction for the update supplementary service is successfully executed;
[0170] The first updating module is configured to update the local storage space using the service attributes obtained based on the second query request when the second query request is successfully executed.
[0171] In some embodiments, the apparatus 500 further includes:
[0172] A third execution module, configured to execute a third query request corresponding to the target supplementary service when the query state identifier of the target supplementary service is in an invalid state;
[0173] The second updating module is configured to update the service attribute of the target supplementary service to the local storage space and update the query status identifier of the target supplementary service to a valid state if the third query request is executed successfully.
[0174] In some embodiments, the third query request is multiple, and the third query request corresponds to a sub-service of the target supplementary service; the second updating module is configured to:
[0175] Execute each of the third query requests in turn in a polling manner;
[0176] During the polling process, if the third query request is executed successfully, the service attributes obtained based on the third query request are preloaded into the local storage space until the service attributes of all sub-services corresponding to the target supplementary service are updated into the local storage space.
[0177] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0178] Figure 6800 is a hardware structure block diagram of a service processing device 800 according to an exemplary embodiment. For example, the device 800 may be a mobile phone, a computer, a digital broadcast terminal, a message transceiver device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, a wearable device, etc.
[0179] Reference Figure 6 , the device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .
[0180] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0181] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0182] The power supply component 806 provides power to the various components of the device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.
[0183] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0184] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0185] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0186] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, the sensor assembly 814 can also detect the position change of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800 and the temperature change of the device 800. The sensor assembly 814 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
[0187] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can access a wireless network based on a communication standard, such as Wi-Fi, 4G or 5G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0188] In an exemplary embodiment, the apparatus 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.
[0189] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0190] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a service processing device, enables the service processing device to perform a service processing method, the method comprising:
[0191] In the case of detecting a query event for a target supplementary service, obtaining a query status identifier of the target supplementary service; wherein the query status identifier is used to indicate a preload result corresponding to the supplementary service;
[0192] If the query status flag of the target supplementary service is in a valid state, obtaining the service attribute of the target supplementary service from the local storage space of the terminal device to complete the query of the target supplementary service;
[0193] The query status flag of the target supplementary service is in a valid state, indicating that the service attributes of the target supplementary service have been successfully preloaded into the local storage space, and the service attributes of the target supplementary service are used to indicate the activation status of the services supported by the target supplementary service.
[0194] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0195] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A business processing method, characterized in that: include: In the case of detecting a query event for a target supplementary service, obtaining a query status identifier of the target supplementary service; wherein the query status identifier is used to indicate a preload result corresponding to the supplementary service; If the query status flag of the target supplementary service is in a valid state, obtaining the service attribute of the target supplementary service from the local storage space of the terminal device to complete the query of the target supplementary service; The query status flag of the target supplementary service is in a valid state, indicating that the service attributes of the target supplementary service have been successfully preloaded into the local storage space, and the service attributes of the target supplementary service are used to indicate the activation status of the services supported by the target supplementary service.
2. The method according to claim 1, characterized in that The method further comprises: When a power-on event of the terminal device is detected, adjusting the priority of the supplementary service to be lower than the priority of the non-supplementary service; When the priority of the supplementary service is the highest, executing a first query request corresponding to the supplementary service; In the case where the first query request is executed successfully, the service attribute of the supplementary service is preloaded into the local storage space, and the query status identifier of the supplementary service is determined to be in a valid state.
3. The method according to claim 2, characterized in that There are multiple first query requests, and the first query requests correspond to sub-services of the supplementary service; The step of preloading the service attribute of the supplementary service into the local storage space when the first query request is successfully executed includes: Execute each of the first query requests in turn in a round-robin manner; During the polling process, if the first query request is executed successfully, the service attributes obtained based on the first query request are preloaded into the local storage space until the service attributes of all sub-services corresponding to the supplementary service are preloaded into the local storage space.
4. The method according to claim 3, characterized in that The step of determining, when the first query request is successfully executed, that the query status identifier of the supplementary service is in a valid state includes: In a case where all the first query requests are executed successfully, determining that the query status identifier of the supplementary service is in a valid state; The method further comprises: In the event that any of the first query requests fails to be executed, it is determined that the query status identifier of the supplementary service is in an invalid state.
5. The method according to claim 1, characterized in that The method further comprises: In case that the update instruction for the update supplementary service is successfully executed, executing a second query request corresponding to the update supplementary service; When the second query request is executed successfully, the local storage space is updated using the service attributes obtained based on the second query request.
6. The method according to claim 1, characterized in that The method further comprises: When the query status flag of the target supplementary service is in an invalid state, executing a third query request corresponding to the target supplementary service; In the case where the third query request is executed successfully, the service attribute of the target supplementary service is updated to the local storage space, and the query status identifier of the target supplementary service is updated to a valid state.
7. The method according to claim 6, characterized in that There are multiple third query requests, and each of the third query requests corresponds to a sub-service of the target supplementary service; When the third query request is successfully executed, updating the service attribute of the target supplementary service to the local storage space includes: Execute each of the third query requests in turn in a polling manner; During the polling process, if the third query request is executed successfully, the service attributes obtained based on the third query request are preloaded into the local storage space until the service attributes of all sub-services corresponding to the target supplementary service are updated into the local storage space.
8. A service processing device, characterized in that: include: A first acquisition module is configured to acquire a query status identifier of the target supplementary service when a query event for the target supplementary service is detected; wherein the query status identifier is used to indicate a preload result corresponding to the supplementary service; A second acquisition module is configured to acquire the service attribute of the target supplementary service from the local storage space of the terminal device if the query status identifier of the target supplementary service is in a valid state, so as to complete the query of the target supplementary service; The query status flag of the target supplementary service is in a valid state, indicating that the service attributes of the target supplementary service have been successfully preloaded into the local storage space, and the service attributes of the target supplementary service are used to indicate the activation status of the services supported by the target supplementary service.
9. A service processing device, characterized in that: include: processor; a memory configured to store processor-executable instructions; Wherein, the processor is configured to: implement the steps in any one of the business processing methods in claims 1 to 7 when executed.
10. A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a business processing device, the device is enabled to execute any one of the business processing methods of claims 1 to 7.