CN111694679A - Message processing method and device and electronic equipment - Google Patents

Message processing method and device and electronic equipment Download PDF

Info

Publication number
CN111694679A
CN111694679A CN202010507786.1A CN202010507786A CN111694679A CN 111694679 A CN111694679 A CN 111694679A CN 202010507786 A CN202010507786 A CN 202010507786A CN 111694679 A CN111694679 A CN 111694679A
Authority
CN
China
Prior art keywords
message
code file
processed
service
target
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.)
Granted
Application number
CN202010507786.1A
Other languages
Chinese (zh)
Other versions
CN111694679B (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 Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network 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 Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202010507786.1A priority Critical patent/CN111694679B/en
Publication of CN111694679A publication Critical patent/CN111694679A/en
Application granted granted Critical
Publication of CN111694679B publication Critical patent/CN111694679B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/541Client-server

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the disclosure discloses a message processing method, a message processing device and electronic equipment. One embodiment of the method comprises: determining whether to process a message to be processed issued by a target sub-service by adopting a first code file, wherein the first code file comprises a code of the processing message set aiming at the target sub-service; responding to the message to be processed which is processed by adopting the first code file, and calling the first code file; and processing the message to be processed based on the codes contained in the first code file. The embodiment processes the message sent by the target sub-service through the first code file set for the target sub-service.

Description

Message processing method and device and electronic equipment
Technical Field
The embodiment of the disclosure relates to the technical field of computers, and in particular relates to a message processing method and device and electronic equipment.
Background
In practice, one application may receive messages issued by multiple sub-services. And, the message issued by the sub-service needs to be processed. It will be understood that messages delivered by different sub-services need to be processed by different codes.
In the related art, codes for processing messages delivered by each sub-service are set in the same code file. When receiving the message issued by the sub-service, firstly determining the code used for processing the message issued by the sub-service in the code file, and then processing the message issued by the sub-service through the determined code.
Disclosure of Invention
This disclosure is provided to introduce concepts in a simplified form that are further described below in the detailed description. This disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
The embodiment of the disclosure provides a message processing method, a message processing device and electronic equipment, wherein a message issued by a target sub-service is processed through a first code file set for the target sub-service.
In a first aspect, an embodiment of the present disclosure provides a message processing method, where the method includes: determining whether a first code file is adopted to process a message to be processed issued by a target sub-service, wherein the first code file comprises a code of the message to be processed, which is set for the target sub-service; responding to the message to be processed which is processed by adopting the first code file, and calling the first code file; and processing the message to be processed based on the codes contained in the first code file.
In a second aspect, an embodiment of the present disclosure provides a message processing apparatus, including: the device comprises a determining unit, a processing unit and a processing unit, wherein the determining unit is used for determining whether to adopt a first code file to process a message to be processed issued by a target sub-service, and the first code file comprises a code of the processing message set aiming at the target sub-service; the calling unit is used for calling the first code file in response to the message to be processed which is processed by the first code file; and the first processing unit is used for processing the message to be processed based on the codes contained in the first code file.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the message processing method as described in the first aspect.
In a fourth aspect, an embodiment of the present disclosure provides a computer-readable medium, on which a computer program is stored, which when executed by a processor, implements the steps of the message processing method according to the first aspect.
The message processing method, the message processing device and the electronic equipment provided by the embodiment of the disclosure can determine whether to adopt the first code file to process the message to be processed issued by the target sub-service. Here, the first code file includes a code of a processing message set for the target sub-service. Further, in response to processing the message to be processed by using the first code file, the first code file may be invoked. Still further, the message to be processed may be processed based on the code contained in the first code file. Therefore, the message sent by the target sub-service is processed through the first code file set for the target sub-service.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Fig. 1 is a flow diagram of some embodiments of a message processing method according to the present disclosure;
FIG. 2 is a schematic diagram of one application scenario of a message processing method according to the present disclosure;
FIG. 3 is a flow diagram of still further embodiments of message processing methods according to the present disclosure;
FIG. 4 is a block diagram of some embodiments of a message processing apparatus according to the present disclosure;
FIG. 5 is an exemplary system architecture to which message processing methods of some embodiments of the present disclosure may be applied;
fig. 6 is a schematic diagram of a basic structure of an electronic device provided in accordance with some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Referring to fig. 1, a flow diagram of some embodiments of a message processing method according to the present disclosure is shown. As shown in fig. 1, the message processing method includes the following steps:
step 101, determining whether to adopt the first code file to process the message to be processed issued by the target sub-service.
In this embodiment, the executing body of the message processing method (for example, the terminal devices 501 and 502 shown in fig. 5) may determine whether to process the message to be processed issued by the target sub-service by using the first code file.
It will be appreciated that the target sub-service may be the sub-service that issues the pending message. The pending message may be a pending message.
Here, the first code file includes a code of a processing message set for the target sub-service. That is, the first code file may be a code file for processing a message delivered by the target sub-service.
In some scenarios, the execution main body may determine the number of times of processing the message issued by the target sub-service by using the first code file within a predetermined time period. In response to that the determined number of times is less than or equal to the preset threshold, the execution main body may determine to process the message to be processed issued by the target sub-service using the first code file. Otherwise, the execution subject may determine not to process the message to be processed issued by the target sub-service using the first code file.
In other scenarios, the execution agent may determine a total number of currently invoked first code files. In response to that the determined total number is less than or equal to the preset value, the execution main body may determine to process the message to be processed issued by the target sub-service using the first code file. Otherwise, the execution subject may determine to process the message to be processed issued by the target sub-service using the first code file.
And 102, responding to the message to be processed by adopting the first code file, and calling the first code file.
In this embodiment, in response to processing the message to be processed by using the first code file, the execution main body may call the first code file.
In some scenarios, the execution agent may call the first code file using a preset interface.
Step 103, processing the message to be processed based on the codes contained in the first code file.
In this embodiment, the execution body may process the to-be-processed message issued by the target sub-service based on the code included in the first code file.
In some scenarios, the first code file includes a function for processing the pending message. Therefore, the execution agent can process the message to be processed through the function.
Currently, in order to process messages delivered by sub-services, as described in the background art, in the related art, codes for processing messages delivered by each sub-service are set in the same code file. When the number of sub-services is large, the number of codes included in the code file is excessively large. Therefore, the time length for processing the messages issued by the sub-services can be increased to a certain extent by processing the messages issued by the sub-services through one code file. Furthermore, the difficulty of post-maintaining code for processing messages is somewhat increased.
In the present embodiment, the first code file includes a code of a processing message set for the target sub-service. By calling the first code file and processing the message to be processed issued by the target sub-service based on the codes contained in the first code file, the message issued by the target sub-service can be processed by adopting the code file set for the target sub-service. Because the number of the codes contained in the first code file is smaller, the time length for processing the message issued by the target sub-service can be shortened to a certain extent. In addition, the difficulty of post-maintenance of code for processing messages may be reduced.
In this embodiment, whether the first code file is used to process the message to be processed issued by the target sub-service or not is determined, so that the first code file can be used to process the message issued by the target sub-service in a targeted manner.
In some embodiments, the executing body of the message processing method may determine whether to process the message to be processed issued by the target sub-service by using the first code file, as follows.
Specifically, in response to receiving a to-be-processed message issued by a target sub-service, whether to process the to-be-processed message by using a first code file is determined.
In the embodiments, when a to-be-processed message issued by a target sub-service is received, whether the to-be-processed message is processed by adopting a first code file is determined. Thus, when the message to be processed is received, the processing of the message to be processed is realized.
In some embodiments, the execution body of the message processing method may perform the following steps.
Specifically, in response to not processing the pending message using the first code file, the pending message is processed based on the code contained in the second code file.
Here, the second code file includes codes for processing messages set for a plurality of sub-services. That is, the second code file may be a code file for processing messages delivered by a plurality of sub-services.
In some scenarios, the execution subject may determine, from the second code file, a code for processing a message delivered by the target sub-service. Further, the execution subject may determine a function for processing the message to be processed from the determined code. Still further, the execution subject may process the message to be processed through the determined function.
In these embodiments, when the message to be processed issued by the target sub-service is not processed by using the first code file, the message to be processed issued by the target sub-service may be processed by using the second code file.
Referring to fig. 2, an application scenario of a message processing method according to an embodiment of the present disclosure is shown. As shown in fig. 2, the terminal device 201 may determine whether to process the pending message 204 issued by the target sub-service 203 by using the first code file 202. Here, the first code file contains a code for processing a message set for the target sub-service 203. Further, in response to processing the pending message 204 with the first code file 202, the terminal device 201 may invoke the first code file 202. Still further, the terminal device 201 may process the above-mentioned message to be processed 204 based on the code contained in the first code file 202.
Continuing to refer to fig. 3, a flow diagram of still further embodiments of a message processing method according to the present disclosure is shown. As shown in fig. 3, the message processing method includes the following steps:
step 301, determining whether to process the message to be processed issued by the target sub-service by using the first code file.
Step 301 may be performed in a similar manner as step 101 in the embodiment shown in fig. 1, and the above description for step 101 also applies to step 301, which is not described herein again.
Step 302, in response to processing the message to be processed with the first code file, determining a target class object for invoking the first code file.
In this embodiment, in response to a message to be processed issued by the first code file processing target sub-service, an execution subject of the message processing method (for example, terminal devices 501 and 502 shown in fig. 5) may determine a target class object for invoking the first code file.
It will be appreciated that the target class object may be a class object for invoking the first code file. Here, the class object may be an instance of a message handling class (class). It will be appreciated that the message handling class may be a class for handling messages. It should be appreciated that a class may be a type of data in object-oriented programming.
In some scenarios, the execution agent may determine a class object for invoking the first code file within a predetermined length of time. Further, the execution subject may take the determined class object as a target class object.
Step 303, based on the target class object, calling the first code file.
In this embodiment, the execution subject may call the first code file based on the target class object.
In some scenarios, the target class object includes a calling function of the first code file. Here, the calling function may be a function for calling a code file. Further, the execution body may call the first code file by using a call function included in the target class object.
Step 304, based on the codes contained in the first code file, processing the message to be processed.
Step 304 may be performed in a similar manner as step 103 in the embodiment shown in fig. 1, and the above description for step 103 also applies to step 304, which is not described herein again.
In this embodiment, a target class object for processing a message delivered by a target sub-service is determined, and then the first code file is called based on the target class object, and the first code file may be called by the target class object set for the target sub-service.
In some embodiments, the executing agent of the message processing method may obtain the query file before determining the target class object.
Here, the query file may be a file for querying class identification information. It will be understood that the class identification information may be information for identifying a message handling class. And the sub-service identification information of the sub-service in the query file corresponds to the class identification information of the message processing class one by one.
It is understood that the sub-service identification information may be information for identifying a sub-service. The class identification information may be information for identifying a message processing class.
In some scenarios, the execution agent may obtain the query file locally.
Here, the execution body may determine a target class object for processing a message delivered by a target sub-service in the following manner.
Firstly, determining target class identification information corresponding to target sub-service identification information of a target sub-service from a query file.
It will be understood that the target sub-service identification information may be sub-service identification information of the target sub-service. The target class identification information may be class identification information corresponding to the target sub-service identification information.
And secondly, determining the class object of the message processing class identified by the target class identification information.
In some scenarios, the execution subject may determine a class object of the message processing class identified by the target class identification information from a plurality of locally stored class objects.
And thirdly, taking the determined class object as a target class object.
In these embodiments, the target class identification information corresponding to the target sub-service identification information is determined by querying the one-to-one corresponding sub-service identification information and class identification information stored in the file. Further, a target class object used for processing the message issued by the target sub-service is determined through the target class identification information. Therefore, by adding the sub-service identification information and the class identification information which are in one-to-one correspondence in the query file, the processing of the message issued by the sub-service can be realized.
In some embodiments, the executing body of the message processing method may determine whether to process the message to be processed issued by the target sub-service by using the first code file, as follows.
The first step, whether target class identification information corresponding to the target sub-service identification information exists in the query file is determined.
In some scenarios, the execution subject may traverse the sub-service identification information stored in the query file, so as to determine whether the target class identification information corresponding to the target sub-service identification information exists in the query file.
Secondly, responding to the target identification information in the query file, determining to adopt the first code file to process the message to be processed
In the embodiments, when the query file has the target class identification information corresponding to the target sub-service identification information, the first code file is used to process the information to be processed issued by the target sub-service.
In some embodiments, the executing body of the message processing method may determine whether to process the message to be processed issued by the target sub-service by using the first code file, as follows.
Specifically, in response to that the target class identification information does not exist in the query file, it is determined that the message to be processed is not processed by using the first code file.
In these embodiments, when the query file does not have the target class identification information corresponding to the target sub-service identification information, the first code file is not used to process the information to be processed issued by the target sub-service.
In some embodiments, the execution body of the message processing method may perform the following steps.
Specifically, the to-be-processed information and the target sub-service identification information sent by a server (e.g., the server 504 shown in fig. 5) are received.
In the embodiments, the server sends the to-be-processed message issued by the target sub-service to the terminal device, and simultaneously sends the sub-service identification information of the target sub-service to the terminal device. Therefore, the terminal equipment can directly determine the target class object according to the data sent by the server, further call the first code file and further realize the processing of the message to be processed sent by the target sub-service.
With further reference to fig. 4, as an implementation of the methods shown in the above-mentioned figures, the present disclosure provides some embodiments of a message processing apparatus, which correspond to the method embodiment shown in fig. 1, and which may be specifically applied in various electronic devices.
As shown in fig. 4, the message processing apparatus of the present embodiment includes: a determining unit 401, a calling unit 402, and a first processing unit 403. The determination unit 401 is configured to: and determining whether to adopt the first code file to process the message to be processed issued by the target sub-service. Wherein the first code file comprises codes for processing messages set for the target sub-service. The calling unit 402 is configured to: and calling the first code file in response to the first code file being adopted to process the message to be processed. The first processing unit 403 is configured to: and processing the message to be processed based on the codes contained in the first code file.
In this embodiment, the specific processing of the determining unit 401, the invoking unit 402, and the first processing unit 403 of the message processing apparatus and the technical effects thereof can refer to the related descriptions of step 101, step 102, and step 103 in the corresponding embodiment of fig. 1, which are not described herein again.
In some embodiments, the invoking unit 402 is further configured to: determining a target class object for calling the first code file; based on the target class object, the first code file is invoked.
In some embodiments, the message processing apparatus may further include an acquisition unit (not shown in the figure). The acquisition unit is used for: and acquiring a query file, wherein the sub-service identification information of the sub-service in the query file corresponds to the class identification information of the message processing class one to one. The invoking unit 402 is further configured to: determining target class identification information corresponding to target sub-service identification information of the target sub-service from the query file; determining a class object of the message processing class identified by the target class identification information; and taking the determined class object as a target class object.
In some embodiments, the determining unit 401 is further configured to: determining whether target class identification information corresponding to the target sub-service identification information exists in the query file; and responding to the target identification information in the query file, and determining to process the message to be processed by adopting the first code file.
In some embodiments, the determining unit 401 is further configured to: and responding to the target class identification information which does not exist in the query file, and determining that the message to be processed is not processed by adopting the first code file.
In some embodiments, the message processing apparatus may further include a receiving unit (not shown in the figure). The receiving unit is used for: and receiving the information to be processed and the target sub-service identification information sent by the server.
In some embodiments, the determining unit 401 is further configured to: and responding to the received to-be-processed message sent by the target sub-service, and determining whether to process the to-be-processed message by adopting the first code file.
In some embodiments, the message processing apparatus may further include a second processing unit (not shown in the figure). The second processing unit is used for: and in response to not processing the message to be processed with the first code file, processing the message to be processed based on codes contained in the second code file. Wherein the second code file contains codes for processing messages set for a plurality of sub-services.
With further reference to fig. 5, fig. 5 illustrates an exemplary system architecture in which the message processing methods of some embodiments of the present disclosure may be applied.
As shown in fig. 5, the system architecture may include terminal devices 501, 502, a network 503, and a server 504. The network 503 is the medium used to provide communication links between the terminal devices 501, 502 and the server 504. Network 503 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
The terminal devices 501, 502 may interact with a server 504 via a network 503. Various client applications may be installed on the terminal devices 501, 502. For example, the terminal devices 501 and 502 may have a shopping application, a search application, a news application, and the like installed thereon. In some scenarios, the terminal devices 501 and 502 may determine whether to process the pending message delivered by the target service by using the first code file. Further, the terminal device 501, 502 may invoke the first code file in response to processing the pending message with the first code file. Still further, the terminal device 501, 502 may process the message to be processed based on the codes contained in the first code file
The terminal devices 501 and 502 may be hardware or software. When the terminal devices 501 and 502 are hardware, they may be various electronic devices having a display screen and supporting information interaction, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like. When the terminal devices 501 and 502 are software, they can be installed in the electronic devices listed above. It may be implemented as multiple pieces of software or software modules, or as a single piece of software or software module. And is not particularly limited herein.
The server 504 may be a server that provides various services. In some scenarios, the server 504 may send a pending message issued by the target sub-service to the terminal device 501, 502.
The server 504 may be hardware or software. When the server 504 is hardware, it can be implemented as a distributed server cluster composed of a plurality of servers, or as a single server. When the server 504 is software, it may be implemented as multiple pieces of software or software modules (e.g., multiple pieces of software or software modules used to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be noted that the message processing method provided by the embodiment of the present disclosure may be executed by the terminal devices 501 and 502, and accordingly, the message processing apparatus may be disposed in the terminal devices 501 and 502.
It should be understood that the number of terminal devices, networks, and servers in fig. 5 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to fig. 6, shown is a schematic diagram of an electronic device (e.g., the terminal device of fig. 5) suitable for use in implementing some embodiments of the present disclosure. The terminal device in some embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle-mounted terminal (e.g., a car navigation terminal), and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, the electronic device may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 6 may represent one device or may represent multiple devices as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText transfer protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be included in the electronic device or may exist separately without being incorporated in the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: determining whether a first code file is adopted to process a message to be processed issued by a target sub-service, wherein the first code file comprises a code of the message to be processed, which is set for the target sub-service; responding to the message to be processed which is processed by adopting the first code file, and calling the first code file; and processing the message to be processed based on the codes contained in the first code file.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The names of these units do not form a limitation on the unit itself under certain circumstances, for example, the determining unit may also be described as a unit for determining whether to process the message to be processed issued by the target sub-service using the first code file.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure in the embodiments of the present disclosure is not limited to the particular combination of the above-described features, but also encompasses other embodiments in which any combination of the above-described features or their equivalents is possible without departing from the scope of the present disclosure. For example, the above features may be interchanged with other features disclosed in this disclosure (but not limited to) those having similar functions.

Claims (11)

1. A message processing method, comprising:
determining whether a first code file is adopted to process a message to be processed issued by a target sub-service, wherein the first code file comprises a code of the message to be processed, which is set for the target sub-service;
calling the first code file in response to processing the message to be processed by adopting the first code file;
processing the message to be processed based on the code contained in the first code file.
2. The method of claim 1, wherein said invoking the first code file comprises:
determining a target class object for calling the first code file;
and calling the first code file based on the target class object.
3. The method of claim 2, wherein prior to said determining the target class object for invoking the first code file, the method further comprises:
acquiring a query file, wherein sub-service identification information of sub-services in the query file corresponds to class identification information of message processing classes one to one; and
the determining a target class object for invoking the first code file includes:
determining target class identification information corresponding to target sub-service identification information of the target sub-service from the query file;
determining a class object of the message processing class identified by the target class identification information;
and taking the determined class object as the target class object.
4. The method of claim 2, wherein the determining whether to process the message to be processed issued by the target sub-service using the first code file comprises:
determining whether the query file has target class identification information corresponding to the target sub-service identification information;
and determining to adopt the first code file to process the message to be processed in response to the target class identification information in the query file.
5. The method of claim 4, wherein the determining whether to process the message to be processed issued by the target sub-service using the first code file further comprises:
and responding to the target class identification information which does not exist in the query file, and determining not to adopt the first code file to process the message to be processed.
6. The method of claim 3, wherein before the determining whether to process the message to be processed issued by the target sub-service using the first code file, the method further comprises:
and receiving the information to be processed and the target sub-service identification information sent by the server.
7. The method of claim 1, wherein the determining whether to process the message to be processed issued by the target sub-service using the first code file comprises:
and determining whether to process the message to be processed by adopting a first code file or not in response to the received message to be processed issued by the target sub-service.
8. The method according to any one of claims 1-7, further comprising:
in response to not processing the message to be processed with the first code file, processing the message to be processed based on codes contained in a second code file containing codes of the processed message set for a plurality of sub-services.
9. A message processing apparatus, comprising:
the device comprises a determining unit and a processing unit, wherein the determining unit is used for determining whether a first code file is adopted to process a message to be processed issued by a target sub-service, and the first code file comprises a code of the processing message set aiming at the target sub-service;
the calling unit is used for calling the first code file in response to the message to be processed is processed by adopting the first code file;
a first processing unit, configured to process the message to be processed based on the codes included in the first code file.
10. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-8.
11. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-8.
CN202010507786.1A 2020-06-05 2020-06-05 Message processing method and device and electronic equipment Active CN111694679B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010507786.1A CN111694679B (en) 2020-06-05 2020-06-05 Message processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010507786.1A CN111694679B (en) 2020-06-05 2020-06-05 Message processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN111694679A true CN111694679A (en) 2020-09-22
CN111694679B CN111694679B (en) 2024-01-30

Family

ID=72479617

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010507786.1A Active CN111694679B (en) 2020-06-05 2020-06-05 Message processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111694679B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973716A (en) * 2013-01-24 2014-08-06 腾讯科技(深圳)有限公司 Internet application implementation method, related device and communication system
CN109002362A (en) * 2017-06-06 2018-12-14 阿里巴巴集团控股有限公司 A kind of method of servicing, device, system and electronic equipment
CN109918435A (en) * 2019-02-27 2019-06-21 北京奇艺世纪科技有限公司 A kind of processing method and system of business interface
CN110309002A (en) * 2019-05-29 2019-10-08 北京达佳互联信息技术有限公司 Message treatment method, device, electronic equipment and storage medium
CN110719200A (en) * 2019-10-12 2020-01-21 北京百度网讯科技有限公司 Information identification method and device
CN111078215A (en) * 2019-12-25 2020-04-28 广州华多网络科技有限公司 Software product application method and device, storage medium and electronic equipment
CN111179081A (en) * 2019-12-24 2020-05-19 中国建设银行股份有限公司 Message processing method and processing device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973716A (en) * 2013-01-24 2014-08-06 腾讯科技(深圳)有限公司 Internet application implementation method, related device and communication system
CN109002362A (en) * 2017-06-06 2018-12-14 阿里巴巴集团控股有限公司 A kind of method of servicing, device, system and electronic equipment
CN109918435A (en) * 2019-02-27 2019-06-21 北京奇艺世纪科技有限公司 A kind of processing method and system of business interface
CN110309002A (en) * 2019-05-29 2019-10-08 北京达佳互联信息技术有限公司 Message treatment method, device, electronic equipment and storage medium
CN110719200A (en) * 2019-10-12 2020-01-21 北京百度网讯科技有限公司 Information identification method and device
CN111179081A (en) * 2019-12-24 2020-05-19 中国建设银行股份有限公司 Message processing method and processing device
CN111078215A (en) * 2019-12-25 2020-04-28 广州华多网络科技有限公司 Software product application method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN111694679B (en) 2024-01-30

Similar Documents

Publication Publication Date Title
CN110781373B (en) List updating method and device, readable medium and electronic equipment
CN110851139B (en) Method and device for checking codes and electronic equipment
CN111800513B (en) Method and device for pushing information and computer readable medium of electronic equipment
CN111163324B (en) Information processing method and device and electronic equipment
CN111596991A (en) Interactive operation execution method and device and electronic equipment
CN111209306A (en) Business logic judgment method and device, electronic equipment and storage medium
CN111432001A (en) Method, apparatus, electronic device, and computer-readable medium for jumping scenes
CN113596328B (en) Camera calling method and device and electronic equipment
CN111596992B (en) Navigation bar display method and device and electronic equipment
CN111262907B (en) Service instance access method and device and electronic equipment
CN112306685A (en) Task isolation method and device, electronic equipment and computer readable medium
CN113391860A (en) Service request processing method and device, electronic equipment and computer storage medium
CN113518183B (en) Camera calling method and device and electronic equipment
CN111460020B (en) Method, device, electronic equipment and medium for resolving message
CN111694679B (en) Message processing method and device and electronic equipment
CN114089891A (en) Display control method and device and electronic equipment
CN113988992A (en) Order information sending method and device, electronic equipment and computer readable medium
CN113240108A (en) Model training method and device and electronic equipment
CN112306317A (en) Unread message notification method and device and electronic equipment
CN111241443A (en) Method and device for pushing information and electronic equipment
CN111756833A (en) Node processing method and device, electronic equipment and computer readable medium
CN111459893A (en) File processing method and device and electronic equipment
CN111399730A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN111752625A (en) Method and device for interface mock
CN111309323A (en) Parameter initialization method and device and electronic equipment

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