CN109245992B - Request processing method and device, electronic equipment and storage medium - Google Patents

Request processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109245992B
CN109245992B CN201811038794.5A CN201811038794A CN109245992B CN 109245992 B CN109245992 B CN 109245992B CN 201811038794 A CN201811038794 A CN 201811038794A CN 109245992 B CN109245992 B CN 109245992B
Authority
CN
China
Prior art keywords
message
numbers
message number
list
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811038794.5A
Other languages
Chinese (zh)
Other versions
CN109245992A (en
Inventor
李明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN201811038794.5A priority Critical patent/CN109245992B/en
Publication of CN109245992A publication Critical patent/CN109245992A/en
Application granted granted Critical
Publication of CN109245992B publication Critical patent/CN109245992B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/216Handling conversation history, e.g. grouping of messages in sessions or threads
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/043Real-time or near real-time messaging, e.g. instant messaging [IM] using or handling presence information

Abstract

The application discloses a request processing method, a request processing device, electronic equipment and a storage medium. In the application, if there is no message corresponding to the part of the message numbers in the target message numbers in the preset message list, the place-occupying information including the part of the message numbers can be acquired, and the place-occupying information is used for indicating that there is no message corresponding to the part of the message numbers in the preset message list; and then, the place-occupying information is sent to the user, so that the user can know that the message corresponding to the part of the message numbers does not exist in the preset message list storing the message of the session according to the place-occupying information, that is, the user can determine that the real reason why the message corresponding to the part of the message numbers cannot be obtained is that the message corresponding to the part of the message numbers does not exist in the preset message list in the server, and then the user cannot continuously send a message obtaining request to the server to obtain the message corresponding to the part of the message numbers, so that network resources can be saved.

Description

Request processing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a request processing method and apparatus, an electronic device, and a storage medium.
Background
At present, the demand for mutual communication among users is increasing, and in order to improve the communication efficiency, more and more users form a group and communicate with each other in the group. In the users joining the group, when one user needs to send a message in the group, the message can be sent to the server, and then the server forwards the message to each of the other users in the group, thereby realizing mutual communication.
Generally, users joining a group are not online at all times, and users who are not online cannot receive messages forwarded by a server. When a user who is not online comes online later, in order to obtain a message which is not received because the user is not online, the user needs to acquire the message which is not received because the user is not online from the server after the user is online.
Disclosure of Invention
In order to overcome the problems in the related art, the application provides a request processing method, a request processing device, an electronic device and a storage medium.
According to a first aspect of the present application, there is provided a request processing method, the method comprising:
receiving a message acquisition request, wherein the message acquisition request carries a first message number and a second message number, the message acquisition request is used for requesting to acquire a message corresponding to a target message number, and the target message number comprises a message number positioned between the first message number and the second message number;
searching whether a message corresponding to the target message number exists in a preset message list;
if the message corresponding to the part of the message numbers in the target message numbers does not exist, acquiring occupancy information including the part of the message numbers, wherein the occupancy information is used for indicating that the message corresponding to the part of the message numbers does not exist in the preset message list;
and sending the occupancy information.
In an optional implementation, the method further includes:
deleting the message corresponding to the part of the message number from the preset message list;
generating placeholder information comprising the partial message number;
storing the placeholder information in the message list.
In an optional implementation manner, the obtaining the placeholder information including the partial message number includes:
and acquiring the occupancy information stored in the preset message list.
In an optional implementation manner, the obtaining the placeholder information including the partial message number includes:
and generating occupation information comprising the part of the message number.
In an optional implementation manner, the partial message number is a plurality of message numbers;
the generating of the placeholder information including the partial message number includes:
searching at least two continuous message numbers in the plurality of message numbers;
for at least two consecutive message numbers of the plurality of message numbers, placeholder information including the at least two message numbers is generated.
For each discontinuous message number in the plurality of message numbers, placeholder information including a different message number is generated.
According to a second aspect of the present application, there is provided a request processing apparatus, the apparatus comprising:
a receiving module, configured to receive a message obtaining request, where the message obtaining request carries a first message number and a second message number, and the message obtaining request is used to request to obtain a message corresponding to a target message number, where the target message number includes a message number located between the first message number and the second message number;
the searching module is configured to search whether a message corresponding to the target message number exists in a preset message list;
the acquisition module is configured to acquire placeholder information including a part of the message numbers when no message corresponding to the part of the message numbers exists in the target message numbers, wherein the placeholder information is used for indicating that no message corresponding to the part of the message numbers exists in the preset message list;
a sending module configured to send the placeholder information.
In an optional implementation, the apparatus further comprises:
a deleting module configured to delete the message corresponding to the partial message number from the preset message list;
a generating module configured to generate placeholder information including the partial message number;
a storage module configured to store the placeholder information in the message list.
In an optional implementation manner, the obtaining module is specifically configured to: and acquiring the occupancy information stored in the preset message list.
In an optional implementation manner, the obtaining module is specifically configured to: and generating occupation information comprising the part of the message number.
In an optional implementation manner, the partial message number is a plurality of message numbers;
the generation module comprises:
a search unit configured to search for at least two consecutive message numbers among the plurality of message numbers;
a first generating unit configured to generate placeholder information including at least two consecutive message numbers of the plurality of message numbers.
And the second generation unit is configured to generate placeholder information comprising a different message number for each discontinuous message number in the plurality of message numbers.
According to a third aspect of the present application, there is provided an electronic device comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the request processing method of the first aspect.
According to a fourth aspect of the present application, there is provided a non-transitory computer readable storage medium having instructions therein, which when executed by a processor of an electronic device, enable the electronic device to perform the request processing method of the first aspect.
According to a fifth aspect of the present application, there is provided a computer program product, wherein instructions which, when executed by a processor of an electronic device, enable the electronic device to perform the request processing method according to the first aspect.
The technical scheme provided by the application can comprise the following beneficial effects:
in the application, a message acquiring request is received, wherein the message acquiring request carries a first message number and a second message number, the message acquiring request is used for requesting to acquire a message corresponding to a target message number, and the target message number comprises a message number between the first message number and the second message number; searching whether a message corresponding to the target message number exists in a preset message list; if the message corresponding to the part of the message number in the target message number does not exist, acquiring placeholder information including the part of the message number, wherein the placeholder information is used for indicating that the message corresponding to the part of the message number does not exist in a preset message list; and then, the place-occupying information is sent to the user, so that the user can know that the message corresponding to the part of the message numbers does not exist in the preset message list storing the message of the session according to the place-occupying information, that is, the user can determine that the real reason why the message corresponding to the part of the message numbers cannot be obtained is that the message corresponding to the part of the message numbers does not exist in the preset message list in the server, but the message corresponding to the part of the message numbers is lost in the transmission process, and then the user cannot continuously send a message acquisition request to the server to acquire the message corresponding to the part of the message numbers, so that network resources can be saved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a flowchart of a request processing method shown in the present application.
Fig. 2 is a block diagram of a request processing apparatus shown in the present application.
Fig. 3 is a block diagram of an electronic device shown in the present application.
Fig. 4 is a block diagram of an electronic device shown in the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like 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 application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
Fig. 1 is a flow chart of a request processing method shown in the present application, and as shown in fig. 1, the method includes the following steps.
In step S101, a message acquiring request is received, where the message acquiring request carries a first message number and a second message number, the message acquiring request is used to request to acquire a message corresponding to a target message number, and the target message number includes a message number located between the first message number and the second message number;
in this application, at least two users may form a session, for example, a point-to-point session between two users, or more than three users form a group, each user in the group may send a message in the group, and each user may see messages sent by other users in the group, where the group is a session.
For any session, when a certain user participating in the session needs to send a message in the session, the user first needs to send the message and a session identifier of the session to the server, the server may set a message number for the message first after receiving the message and the session identifier of the session, the message number may be represented by a number, the message number may be gradually increased in sequence according to the receiving sequence of the messages in the session, for example, the message number of the first message in the session received by the server is 001, the message number of the second message in the session received is 002, the message number of the third message in the session received is 003, and so on.
The message number set for the message may be added to a preset field in the message, and then the message with the message number added thereto is forwarded to other users in the session.
Or, the message and the message number set for the message form a corresponding table entry, and the corresponding table entry is stored in the first corresponding relationship between the message and the message number stored in the server, and then the corresponding table entry including the message and the message number set for the message is sent to other users in the session.
The server creates a buffer area for storing the latest message number allocated to the message in the session, when a message number needs to be set for a new message in the session, the set message number cannot be less than or equal to the message number in the buffer area, but a message number needs to be incremented on the basis of the message number in the buffer area, for example, a value 1 is incremented on the basis of the message number in the buffer area to obtain a new message number, the new message number is used as the message number of the new message, for example, the message number in the buffer area is 011, the message number set for the new message is 012, the new message is stored in a preset message list, and the message number stored in the buffer area is replaced with the new message number.
In the present application, the messages in the session stored in the preset message list all have message numbers, however, for any message in the preset message list, if the message is lost from the preset message list, or the message sender of the message needs to withdraw the message from the server, the server needs to delete the message from the preset message list. Thus, the message is no longer present in the list of preset messages.
When a user participating in the session is not online before, the user cannot receive the message sent by the server, and when the user is online later, the user often needs to actively acquire the message which is not received in the session from the server.
Generally, the user may first obtain a first message number of a message that is newly received by the user in the session, and obtain a second message number of a message that is newly received by a server in a preset message list; then sending a message acquisition request to a server, wherein the message acquisition request carries a first message number and a second message number, the message acquisition request is used for requesting to acquire a message corresponding to a target message number, and the target message number comprises a message number between the first message number and the second message number; the server receives the message acquisition request and then performs step S102.
Wherein the message numbers between the first message number and the second message number include: the message number is greater than the second message number and less than the first message number, or is greater than or equal to the second message number and less than the first message number, or is greater than the second message number and less than or equal to the first message number, or is greater than or equal to the second message number and less than or equal to the first message number.
In step S102, searching whether a message corresponding to the target message number exists in a preset message list;
the server may extract the first message number, the second message number, and the session identifier of the session from the acquisition request, determine a preset message list according to the session identifier, and then search for whether a message corresponding to a target message number exists in the preset message list, where the target message number includes a message number located between the first message number and the second message number.
If there is no message corresponding to a part of the message numbers in the target message number, in step S103, acquiring placeholder information including the part of the message numbers, where the placeholder information is used to indicate that there is no message corresponding to the part of the message numbers in the preset message list;
in the present application, a message corresponding to a partial message number located between the first message number and the second message number may not already exist in the preset message list, for example, a message corresponding to the partial message number is lost or a message corresponding to the partial message number is withdrawn by the message sender.
At this time, the server cannot obtain the message corresponding to the part of the message number from the preset message list, and cannot send the message corresponding to the part of the message number to the user. Only the message corresponding to the other part of the message number in the target message number in the preset message list can be sent to the user.
Thus, the user can obtain the message corresponding to the other part of the message number, but cannot obtain the message corresponding to the part of the message number, at this time, the user also determines that the true reason why the message corresponding to the part of the message number cannot be obtained, the user often considers that the message corresponding to the part of the message number exists in the server, but the message corresponding to the part of the message number is lost in the transmission process, in order to obtain the message corresponding to the part of the message number, the user often continues to send a message acquisition request to the server to acquire the message corresponding to the part of the message number, however, the server does not return the message corresponding to the part of the message number to the user, and then the user often continues to send a plurality of message acquisition requests to the server to acquire the message corresponding to the part of the message number, but still cannot obtain the message corresponding to the part of the message number, more network resources are consumed in this process.
Therefore, in order to save network resources, in the present application, if there is no message corresponding to the part of message numbers in the target message number, the place-occupying information including the part of message numbers may be obtained, where the place-occupying information is used to indicate that there is no message corresponding to the part of message numbers in the preset message list; and then, the place-occupying information is sent to the user, so that the user can know that the message corresponding to the part of the message numbers does not exist in the preset message list storing the message of the session according to the place-occupying information, that is, the user can determine that the real reason why the message corresponding to the part of the message numbers cannot be obtained is that the message corresponding to the part of the message numbers does not exist in the preset message list in the server, but the message corresponding to the part of the message numbers is lost in the transmission process, and then the user cannot continuously send a message acquisition request to the server to acquire the message corresponding to the part of the message numbers, so that network resources can be saved.
Further, after finding the message corresponding to the other part of message number, the message corresponding to the other part of message number may be sent to the user, so that the user can obtain the message corresponding to the other part of message number.
In an embodiment of the application, after the server deletes the message corresponding to the part of the message number from the preset message list, the placeholder information including the part of the message number may be generated, and then the placeholder information is stored in the preset message list. Thus, in this step, the placeholder information stored in the preset message list can be directly acquired.
However, in this embodiment, the placeholder information may be always stored in the preset message list, and the placeholder information may occupy a part of the storage space in the preset message list.
Therefore, in order to save the storage space, in another embodiment, it is not necessary to generate the placeholder information including the part of the message numbers in advance, and it is also not necessary to store the placeholder information in the preset message list, and when the placeholder information including the part of the message numbers needs to be acquired, the placeholder information including the part of the message numbers can be generated in real time, and the placeholder information is deleted after the placeholder information is sent to the user, so that the storage space can be saved.
Wherein, in one embodiment, the partial message number is a plurality of message numbers; thus, when the placeholder information including the part of the message numbers is generated, at least two continuous message numbers can be searched in the plurality of message numbers; then, for at least two continuous message numbers in the plurality of message numbers, generating placeholder information comprising at least two message numbers, and for each discontinuous message number in the plurality of message numbers, respectively generating placeholder information comprising a different message number;
in step S104, the placeholder information is transmitted.
In the application, a message acquiring request is received, wherein the message acquiring request carries a first message number and a second message number, the message acquiring request is used for requesting to acquire a message corresponding to a target message number, and the target message number comprises a message number between the first message number and the second message number; searching whether a message corresponding to the target message number exists in a preset message list; if the message corresponding to the part of the message number in the target message number does not exist, acquiring placeholder information including the part of the message number, wherein the placeholder information is used for indicating that the message corresponding to the part of the message number does not exist in a preset message list; and then, the place-occupying information is sent to the user, so that the user can know that the message corresponding to the part of the message numbers does not exist in the preset message list storing the message of the session according to the place-occupying information, that is, the user can determine that the real reason why the message corresponding to the part of the message numbers cannot be obtained is that the message corresponding to the part of the message numbers does not exist in the preset message list in the server, but the message corresponding to the part of the message numbers is lost in the transmission process, and then the user cannot continuously send a message acquisition request to the server to acquire the message corresponding to the part of the message numbers, so that network resources can be saved.
Fig. 2 is a block diagram of a request processing apparatus shown in the present application. Referring to fig. 2, the apparatus includes:
a receiving module 11, configured to receive a message obtaining request, where the message obtaining request carries a first message number and a second message number, and the message obtaining request is used to request to obtain a message corresponding to a target message number, where the target message number includes a message number located between the first message number and the second message number;
the searching module 12 is configured to search whether a message corresponding to the target message number exists in a preset message list;
an obtaining module 13, configured to, when there is no message corresponding to a part of the message numbers in the target message numbers, obtain placeholder information including the part of the message numbers, where the placeholder information is used to indicate that there is no message corresponding to the part of the message numbers in the preset message list;
a sending module 14 configured to send the occupancy information.
In an optional implementation, the apparatus further comprises:
a deleting module configured to delete the message corresponding to the partial message number from the preset message list;
a generating module configured to generate placeholder information including the partial message number;
a storage module configured to store the placeholder information in the message list.
In an optional implementation manner, the obtaining module 13 is specifically configured to: and acquiring the occupancy information stored in the preset message list.
In an optional implementation manner, the obtaining module 13 is specifically configured to: and generating occupation information comprising the part of the message number.
In an optional implementation manner, the partial message number is a plurality of message numbers;
the generation module comprises:
a search unit configured to search for at least two consecutive message numbers among the plurality of message numbers;
a first generating unit configured to generate placeholder information including at least two consecutive message numbers of the plurality of message numbers.
And the second generation unit is configured to generate placeholder information comprising a different message number for each discontinuous message number in the plurality of message numbers.
In the application, a message acquiring request is received, wherein the message acquiring request carries a first message number and a second message number, the message acquiring request is used for requesting to acquire a message corresponding to a target message number, and the target message number comprises a message number between the first message number and the second message number; searching whether a message corresponding to the target message number exists in a preset message list; if the message corresponding to the part of the message number in the target message number does not exist, acquiring placeholder information including the part of the message number, wherein the placeholder information is used for indicating that the message corresponding to the part of the message number does not exist in a preset message list; and then, the place-occupying information is sent to the user, so that the user can know that the message corresponding to the part of the message numbers does not exist in the preset message list storing the message of the session according to the place-occupying information, that is, the user can determine that the real reason why the message corresponding to the part of the message numbers cannot be obtained is that the message corresponding to the part of the message numbers does not exist in the preset message list in the server, but the message corresponding to the part of the message numbers is lost in the transmission process, and then the user cannot continuously send a message acquisition request to the server to acquire the message corresponding to the part of the message numbers, so that network resources can be saved.
Fig. 3 is a block diagram of an electronic device 800 shown in the present application. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 3, electronic 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.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the request processing method described above and shown in fig. 1. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices 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 or optical disks.
The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a 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 an input signal from a 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 boundary of a 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 facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 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 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 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, micro-controllers, microprocessors or other electronic components for performing the request processing method as described above in fig. 1.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the electronic device 800 to perform the request processing method described above and shown in fig. 1, is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 4 is a block diagram of an electronic device 1900 shown in the present application. For example, the electronic device 1900 may be provided as a server.
Referring to fig. 4, electronic device 1900 includes a processing component 1922 further including one or more processors and memory resources, represented by memory 1932, for storing instructions, e.g., applications, executable by processing component 1922. The application programs stored in memory 1932 may include one or more modules that each correspond to a set of instructions. Further, processing component 1922 is configured to execute instructions to perform the request processing method described above with respect to FIG. 1.
The electronic device 1900 may also include a power component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input/output (I/O) interface 1958. The electronic device 1900 may operate based on an operating system stored in memory 1932, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements 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 application is limited only by the appended claims.
A1, a request processing device, the device comprising:
a receiving module, configured to receive a message obtaining request, where the message obtaining request carries a first message number and a second message number, and the message obtaining request is used to request to obtain a message corresponding to a target message number, where the target message number includes a message number located between the first message number and the second message number;
the searching module is configured to search whether a message corresponding to the target message number exists in a preset message list;
the acquisition module is configured to acquire placeholder information including a part of the message numbers when no message corresponding to the part of the message numbers exists in the target message numbers, wherein the placeholder information is used for indicating that no message corresponding to the part of the message numbers exists in the preset message list;
a sending module configured to send the placeholder information.
A2, the apparatus of A1, further comprising:
a deleting module configured to delete the message corresponding to the partial message number from the preset message list;
a generating module configured to generate placeholder information including the partial message number;
a storage module configured to store the placeholder information in the message list.
A3, the apparatus of A2, the obtaining module configured specifically to: and acquiring the occupancy information stored in the preset message list.
A4, the apparatus of A1, the obtaining module configured specifically to: and generating occupation information comprising the part of the message number.
A5, the apparatus according to any one of A2-A4, the partial message number being a plurality of message numbers;
the generation module comprises:
a search unit configured to search for at least two consecutive message numbers among the plurality of message numbers;
a first generating unit configured to generate placeholder information including at least two consecutive message numbers of the plurality of message numbers;
and the second generation unit is configured to generate placeholder information comprising a different message number for each discontinuous message number in the plurality of message numbers.

Claims (12)

1. A method for processing a request, the method comprising:
receiving a message acquisition request, wherein the message acquisition request carries a first message number and a second message number, the message acquisition request is used for requesting to acquire a message corresponding to a target message number, and the target message number comprises a message number positioned between the first message number and the second message number;
searching whether a message corresponding to the target message number exists in a preset message list;
if the message corresponding to a part of the message number in the target message number does not exist in the preset message list, acquiring placeholder information including the part of the message number, wherein the placeholder information is used for indicating that the message corresponding to the part of the message number does not exist in the preset message list;
and sending the occupancy information.
2. The method of claim 1, further comprising:
deleting the message corresponding to the part of the message number from the preset message list;
generating placeholder information comprising the partial message number;
storing the placeholder information in the message list.
3. The method of claim 2, wherein the obtaining placeholder information including the partial message number comprises:
and acquiring the occupancy information stored in the preset message list.
4. The method of claim 1, wherein the obtaining placeholder information including the partial message number comprises:
and generating occupation information comprising the part of the message number.
5. The method according to any of claims 2-4, wherein the partial message number is a plurality of message numbers;
the generating of the placeholder information including the partial message number includes:
searching at least two continuous message numbers in the plurality of message numbers;
for at least two continuous message numbers in the plurality of message numbers, generating placeholder information comprising the at least two message numbers;
for each discontinuous message number in the plurality of message numbers, placeholder information including a different message number is generated.
6. A request processing apparatus, characterized in that the apparatus comprises:
a receiving module, configured to receive a message obtaining request, where the message obtaining request carries a first message number and a second message number, and the message obtaining request is used to request to obtain a message corresponding to a target message number, where the target message number includes a message number located between the first message number and the second message number;
the searching module is configured to search whether a message corresponding to the target message number exists in a preset message list;
an obtaining module, configured to obtain placeholder information including a part of the message numbers when a message corresponding to the part of the message numbers does not exist in the preset message list in the target message numbers, where the placeholder information is used to indicate that the message corresponding to the part of the message numbers does not exist in the preset message list;
a sending module configured to send the placeholder information.
7. The apparatus of claim 6, further comprising:
a deleting module configured to delete the message corresponding to the partial message number from the preset message list;
a generating module configured to generate placeholder information including the partial message number;
a storage module configured to store the placeholder information in the message list.
8. The apparatus of claim 7, wherein the acquisition module is specifically configured to: and acquiring the occupancy information stored in the preset message list.
9. The apparatus of claim 6, wherein the acquisition module is specifically configured to: and generating occupation information comprising the part of the message number.
10. The apparatus according to any of claims 7-9, wherein the partial message number is a plurality of message numbers;
the generation module comprises:
a search unit configured to search for at least two consecutive message numbers among the plurality of message numbers;
a first generating unit configured to generate placeholder information including at least two consecutive message numbers of the plurality of message numbers;
and the second generation unit is configured to generate placeholder information comprising a different message number for each discontinuous message number in the plurality of message numbers.
11. An electronic device, characterized in that the electronic device comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the request processing method of any one of claims 1-5.
12. A non-transitory computer readable storage medium, instructions in which, when executed by a processor of an electronic device, enable the electronic device to perform the request processing method of any one of claims 1-5.
CN201811038794.5A 2018-09-06 2018-09-06 Request processing method and device, electronic equipment and storage medium Active CN109245992B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811038794.5A CN109245992B (en) 2018-09-06 2018-09-06 Request processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811038794.5A CN109245992B (en) 2018-09-06 2018-09-06 Request processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109245992A CN109245992A (en) 2019-01-18
CN109245992B true CN109245992B (en) 2021-02-09

Family

ID=65067524

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811038794.5A Active CN109245992B (en) 2018-09-06 2018-09-06 Request processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109245992B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113099306B (en) * 2021-03-23 2022-11-22 北京达佳互联信息技术有限公司 Message processing method, device, equipment, server, medium and product
CN113204449B (en) * 2021-05-20 2023-02-14 深圳软牛科技有限公司 Session backup method, computer-readable storage medium and terminal device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364939A (en) * 2007-08-07 2009-02-11 华为技术有限公司 Data packet forwarding method and device, data packet generating device and communication system
CN101645855A (en) * 2009-07-13 2010-02-10 北京亿企通信息技术有限公司 System and method for reminding events of Web platform in enterprise instant messaging
CN101667923A (en) * 2009-07-13 2010-03-10 北京亿企通信息技术有限公司 System and method for customizing Web platform reminder in enterprise instant communication tool
CN102098236A (en) * 2011-01-26 2011-06-15 东莞市车友互联信息科技有限公司 Instant messaging system and method for supporting geographical positioning system (GPS) terminal
CN104836722A (en) * 2015-03-30 2015-08-12 北京北信源软件股份有限公司 Processing method of embodying message important degree in instant message
WO2017019741A1 (en) * 2015-07-27 2017-02-02 Presidio Llc Hybrid cloud communication system
CN108156587A (en) * 2017-12-29 2018-06-12 创新科存储技术(深圳)有限公司 The method for pushing and system of a kind of multimedia short message

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364939A (en) * 2007-08-07 2009-02-11 华为技术有限公司 Data packet forwarding method and device, data packet generating device and communication system
CN101645855A (en) * 2009-07-13 2010-02-10 北京亿企通信息技术有限公司 System and method for reminding events of Web platform in enterprise instant messaging
CN101667923A (en) * 2009-07-13 2010-03-10 北京亿企通信息技术有限公司 System and method for customizing Web platform reminder in enterprise instant communication tool
CN102098236A (en) * 2011-01-26 2011-06-15 东莞市车友互联信息科技有限公司 Instant messaging system and method for supporting geographical positioning system (GPS) terminal
CN104836722A (en) * 2015-03-30 2015-08-12 北京北信源软件股份有限公司 Processing method of embodying message important degree in instant message
WO2017019741A1 (en) * 2015-07-27 2017-02-02 Presidio Llc Hybrid cloud communication system
CN108156587A (en) * 2017-12-29 2018-06-12 创新科存储技术(深圳)有限公司 The method for pushing and system of a kind of multimedia short message

Also Published As

Publication number Publication date
CN109245992A (en) 2019-01-18

Similar Documents

Publication Publication Date Title
CN108064466B (en) Period information indication method of public control resource set of residual key system information
CN109274510B (en) Message processing method, device, client, server and storage medium
EP3226432B1 (en) Method and devices for sharing media data between terminals
CN109521918B (en) Information sharing method and device, electronic equipment and storage medium
CN106201734B (en) File sharing method and device
CN109388625B (en) Method and device for processing configuration file in multi-distributed file system
CN109951379B (en) Message processing method and device
CN109451866B (en) Information configuration method and device, base station and user equipment
CN107423386B (en) Method and device for generating electronic card
CN112291631A (en) Information acquisition method, device, terminal and storage medium
CN104850643B (en) Picture comparison method and device
CN107272896B (en) Method and device for switching between VR mode and non-VR mode
CN109245992B (en) Request processing method and device, electronic equipment and storage medium
CN106506808B (en) Method and device for prompting communication message
CN106878654B (en) Video communication method and device
CN106447747B (en) Image processing method and device
CN110690979B (en) Group message processing method, device, server, client and storage medium
CN110913276B (en) Data processing method, device, server, terminal and storage medium
CN107885464B (en) Data storage method, device and computer readable storage medium
CN109451857B (en) Data transmission method and device
CN107169042B (en) Method and device for sharing pictures and computer readable storage medium
CN107070816B (en) Application identification method and device and mobile terminal
CN107239490B (en) Method and device for naming face image and computer readable storage medium
CN112769677B (en) Data synchronization method, apparatus, electronic device, storage medium, and program product
CN106658412B (en) Positioning method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant