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

Message processing method and device and electronic equipment Download PDF

Info

Publication number
CN111694679B
CN111694679B CN202010507786.1A CN202010507786A CN111694679B CN 111694679 B CN111694679 B CN 111694679B CN 202010507786 A CN202010507786 A CN 202010507786A CN 111694679 B CN111694679 B CN 111694679B
Authority
CN
China
Prior art keywords
message
code file
service
processed
processing
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
CN202010507786.1A
Other languages
Chinese (zh)
Other versions
CN111694679A (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

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 the following steps: 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 for processing the message set for the target sub-service; calling a first code file in response to processing the message to be processed by adopting the first code file; and processing the message to be processed based on the codes contained in the first code file. This embodiment processes messages delivered by the target sub-service through a first code file set for the target sub-service.

Description

Message processing method and device and electronic equipment
Technical Field
Embodiments of the present disclosure relate to the field of computer technologies, and in particular, to a message processing method, a device, and an electronic device.
Background
In practice, an application may receive messages delivered by multiple sub-services. And, there is a need to process messages issued by sub-services. It will be appreciated that messages issued by different sub-services need to be processed by different codes.
In the related art, codes for processing messages issued by each sub-service are set in the same code file. When receiving the message issued by the sub-service, determining the code for processing the message issued by the sub-service in the code file, and processing the message issued by the sub-service through the determined code.
Disclosure of Invention
This disclosure is provided in part 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, which are used for processing a message issued by a target sub-service through a first code file set for the target sub-service.
In a first aspect, embodiments of the present disclosure provide a message processing method, the method including: 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 contains codes for processing the message set for the target sub-service; calling a first code file in response to processing the message to be processed by adopting 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, embodiments of the present disclosure provide a message processing apparatus, the apparatus comprising: a determining unit, configured to determine whether to process a message to be processed issued by a target sub-service by using a first code file, where the first code file includes a code for processing the message set for the target sub-service; a calling unit, configured to call a first code file in response to processing the message to be processed by using 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, embodiments of the present disclosure provide an electronic device, comprising: one or more processors; and 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, embodiments of the present disclosure provide a computer readable medium having stored thereon a computer program which, when executed by a processor, implements the steps of the message processing method according to the first aspect.
The message processing method, the device and the electronic equipment provided by the embodiment of the invention can determine whether to process the message to be processed issued by the target sub-service by adopting the first code file. Here, the first code file contains a code for processing a message set for the target sub-service. Further, the first code file may be invoked in response to processing the pending message with the first code file. Still further, the message to be processed may be processed based on a code contained in the first code file. Thus, the message issued 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 embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a flow chart 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 chart of yet other embodiments of message processing methods according to the present disclosure;
FIG. 4 is a schematic diagram of the structure of some embodiments of a message processing apparatus according to the present disclosure;
FIG. 5 is an exemplary system architecture in 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 according to 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 have been shown in the accompanying 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 are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present 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. Furthermore, 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 "including" and variations thereof as used herein are intended to be 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. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
Referring to fig. 1, a flow 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 steps of:
step 101, determining whether to process a message to be processed issued by a target sub-service by using the first code file.
In this embodiment, the execution body of the message processing method (e.g., the terminal devices 501, 502 shown in fig. 5) may determine whether to process the pending message issued by the target sub-service using the first code file.
It will be appreciated that the target sub-service may be a sub-service that delivers the message to be processed. The message to be processed may be a message to be processed.
Here, the first code file contains a code for processing a 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 executing body may determine the number of times the message issued by the target sub-service is processed using the first code file within a predetermined period of time. And in response to the determined number of times being less than or equal to a preset threshold, the execution body may determine to process the message to be processed issued by the target sub-service using the first code file. Otherwise, the execution body may determine not to process the message to be processed issued by the target sub-service by using the first code file.
In other scenarios, the execution body may determine the total number of first code files currently being invoked. In response to the determined total number being less than or equal to the preset value, the execution body may determine to process the message to be processed issued by the target sub-service using the first code file. Otherwise, the execution body may determine to process the message to be processed issued by the target sub-service using the first code file.
Step 102, in response to processing the message to be processed by using the first code file, calling the first code file.
In this embodiment, the execution body may call the first code file in response to processing the message to be processed using the first code file.
In some scenarios, the execution body may use a preset interface to invoke the first code file.
Step 103, processing the message to be processed based on the code contained in the first code file.
In this embodiment, the execution body may process the message to be processed issued by the target sub-service based on the code included in the first code file.
In some scenarios, the first code file contains a function for processing the message to be processed. Thus, the executing body can process the message to be processed through the function.
Currently, in order to process messages issued by sub-services, as described in the background art, in the related art, a code for processing messages issued by each sub-service is set in the same code file. When the number of sub-services is large, the number of codes contained in the code file may be excessively large. Thus, processing messages issued by multiple sub-services through one code file increases the duration of processing messages issued by the sub-services to some extent. In addition, the difficulty of post-maintaining code for processing messages can be increased to some extent.
In this embodiment, the first code file includes a code for processing a 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 code 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. Since the number of codes contained in the first code file is small, the duration of processing the message issued by the target sub-service can be shortened to some extent. In addition, the difficulty of post-maintaining code for processing messages can be reduced.
In this embodiment, by determining whether to use the first code file to process the message to be processed issued by the target sub-service, it is possible to implement that the message issued by the target sub-service is processed by using the first code file in a targeted manner.
In some embodiments, the execution body of the message processing method may determine whether to process the pending message issued by the target sub-service using the first code file in the following manner.
Specifically, in response to receiving a message to be processed issued by a target sub-service, it is determined whether to process the message to be processed by using a first code file.
In these embodiments, when a pending message issued by a target sub-service is received, it is determined whether to process the pending message with a first code file. 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 the processing of the message to be processed without employing the first code file, the message to be processed is processed based on the code contained in the second code file.
Here, the second code file contains therein codes for processing messages set for the plurality of sub-services. That is, the second code file may be a code file for processing messages issued by a plurality of sub-services.
In some scenarios, the execution body may determine, from the second code file, a code for processing a message issued by the target sub-service. Further, the execution body may determine a function for processing the message to be processed from the determined code. Still further, the executing body may process the message to be processed through the determined function.
In these embodiments, when the first code file is not used to process the pending message issued by the target sub-service, the second code file may be used to process the pending message issued by the target sub-service.
Referring to fig. 2, there is shown one application scenario of a message processing method according to an embodiment of the present disclosure. As shown in fig. 2, the terminal device 201 may determine whether to process a pending message 204 issued by a target sub-service 203 using a 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 described above 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-described message 204 to be processed based on the code contained in the first code file 202.
With continued reference to fig. 3, a flow of yet further embodiments of message processing methods according to the present disclosure is shown. As shown in fig. 3, the message processing method includes the steps of:
step 301, determining whether to process a message to be processed issued by a target sub-service using a first code file.
The above step 301 may be performed in a similar manner to the step 101 in the embodiment shown in fig. 1, and the above description of the step 101 is also applicable to the step 301, which is not repeated here.
In response to processing the message to be processed with the first code file, a target class object for invoking the first code file is determined, step 302.
In this embodiment, in response to processing a message to be processed issued by the target sub-service using the first code file, an execution body of the message processing method (for example, the terminal devices 501, 502 shown in fig. 5) may determine a target class object for calling 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 body may determine a class object for invoking the first code file for a predetermined length of time. Further, the execution body may set the determined class object as the target class object.
Step 303, calling the first code file based on the target class object.
In this embodiment, the execution body may call the first code file based on the target class object.
In some scenarios, the calling function of the first code file is contained in the target class object. 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 code included in the first code file, the message to be processed is processed.
Step 304 may be performed in a similar manner to step 103 in the embodiment shown in fig. 1, and the description of step 103 above also applies to step 304, which is not repeated here.
In this embodiment, a target class object for processing a message issued 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 can be called by the target class object set for the target sub-service.
In some embodiments, the execution body 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 the class identification information. It will be appreciated that the class identification information may be information identifying the message processing class. Sub-service identification information of the sub-service in the query file corresponds to class identification information of the message processing class one by one.
It is to be understood that the sub-service identification information may be information for identifying the sub-service. The class identification information may be information for identifying a message processing class.
In some scenarios, the executing entity may obtain the query file locally.
Here, the execution body may determine the target class object for processing the message delivered by the target sub-service in the following manner.
First, determining target class identification information corresponding to target sub-service identification information of target sub-service from a query file.
It is to 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 a second step of determining class objects of the message processing class identified by the target class identification information.
In some scenarios, the execution body may determine, from among a plurality of class objects stored locally, a class object of the message processing class identified by the target class identification information.
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 sub-service identification information and the class identification information stored in the file in one-to-one correspondence. Further, the target class object for processing the message issued by the target sub-service is determined through the target class identification information. Therefore, the processing of the message issued by the sub-service can be realized by adding the sub-service identification information and the class identification information which are in one-to-one correspondence in the query file.
In some embodiments, the execution body of the message processing method may determine whether to process the pending message issued by the target sub-service using the first code file in the following manner.
First, it is determined whether there is target class identification information corresponding to the target sub-service identification information in the query file.
In some scenarios, the execution body may traverse the sub-service identification information stored in the query file, thereby determining whether the target class identification information corresponding to the target sub-service identification information exists in the query file.
Second, in response to the existence of the target class identification information in the query file, determining to process the message to be processed by using the first code file
In these embodiments, when the query file includes 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 execution body of the message processing method may determine whether to process the pending message issued by the target sub-service using the first code file in the following manner.
Specifically, in response to the absence of the target class identification information in the query file, it is determined that the first code file is not employed to process the message to be processed.
In these embodiments, when the target class identification information corresponding to the target sub-service identification information does not exist in the query file, 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 above-described pending information and the above-described target sub-service identification information transmitted by a server (e.g., the server 504 shown in fig. 5) are received.
In these embodiments, the server sends the terminal device the sub-service identification information of the target sub-service while sending the pending message issued by the target sub-service. 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 issued by the target sub-service.
With further reference to fig. 4, as an implementation of the method shown in the foregoing figures, the present disclosure provides some embodiments of a message processing apparatus, where the apparatus embodiments correspond to the method embodiments shown in fig. 1, and the apparatus is particularly applicable to 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 determining unit 401 is configured to: and determining whether to process the message to be processed issued by the target sub-service by adopting the first code file. Wherein the first code file contains 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 processing the message to be processed by adopting the first code file. 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 calling unit 402, the first processing unit 403 and the technical effects thereof of the message processing apparatus may refer to the descriptions related to the steps 101, 102 and 103 in the corresponding embodiment of fig. 1, and are not repeated here.
In some embodiments, the calling unit 402 is further configured to: determining a target class object for calling the first code file; the first code file is invoked based on the target class object.
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 obtaining 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 by one. The calling unit 402 is further configured to: determining target class identification information corresponding to target sub-service identification information of target sub-service from the query file; determining class objects of the message processing class identified by the target class identification information; the determined class object is taken 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 in response to the existence of the target class identification information in the query file, 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 in response to the fact that the target class identification information does not exist in the query file, determining that the first code file is not adopted to process the message to be processed.
In some embodiments, the message processing apparatus may further comprise a receiving unit (not shown in the figures). 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 in response to receiving the message to be processed issued by the target sub-service, determining whether to process the message to be processed by adopting the first code file.
In some embodiments, the message processing apparatus may further comprise a second processing unit (not shown in the figures). The second processing unit is used for: and processing the message to be processed based on the code contained in the second code file in response to not processing the message to be processed by adopting the first code file. Wherein the second code file contains codes for processing messages set for the 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. The network 503 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
Terminal devices 501, 502 may interact with server 504 through network 503. Various client applications may be installed on the terminal devices 501, 502. For example, the terminal devices 501, 502 may have installed thereon a shopping class application, a search class application, a news information class application, and the like. In some scenarios, the terminal device 501, 502 may determine whether to process a pending message issued by the target service using the first code file. Further, in response to processing the pending message with the first code file, the terminal device 501, 502 may invoke the first code file. Still further, the terminal device 501, 502 may process the above-mentioned message to be processed based on the code contained in the first code file
The terminal devices 501 and 502 may be hardware or software. When the terminal devices 501, 502 are hardware, they may be various electronic devices having a display screen and supporting information interaction, including but not limited to smartphones, tablets, laptop and desktop computers, and the like. When the terminal devices 501, 502 are software, they can be installed in the above-listed electronic devices. Which may be implemented as a plurality of software or software modules, or as a single software or software module. The present invention is not particularly limited herein.
The server 504 may be a server providing 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 may be implemented as a distributed server cluster formed by a plurality of servers, or as a single server. When server 504 is software, it may be implemented as multiple software or software modules (e.g., multiple software or software modules for providing distributed services) or as a single software or software module. The present invention is not particularly limited herein.
It should be noted that the message processing method provided by the embodiment of the present disclosure may be performed by the terminal devices 501 and 502, and accordingly, the message processing apparatus may be provided 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, 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 is shown. Terminal devices in some embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), car terminals (e.g., car navigation terminals), and the like, as well as stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 6 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments. The electronic device shown in fig. 6 is merely an example and should not impose any limitations on the functionality and scope of use of 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 required 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 through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
In general, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, magnetic 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 shows an electronic device having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead. Each block shown in fig. 6 may represent one device or a plurality of devices as needed.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network via communication means 609, or from storage means 608, or from ROM 602. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 601.
It should be noted that the computer readable medium according to 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. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any 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 present 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, the computer-readable signal medium may comprise a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. 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, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, 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 communication 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 networks.
The computer readable medium may be included in the electronic device or may exist alone without being incorporated into 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 to process a message to be processed issued by a target sub-service by adopting a first code file, wherein the first code file contains codes for processing the message set for the target sub-service; calling a first code file in response to processing the message to be processed by adopting 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 some embodiments of the present disclosure may be written in 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 kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts 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 means of software, or may be implemented by means of hardware. The names of these units do not constitute a limitation on the unit itself in some cases, and for example, the determining unit may also be described as a unit that "determines whether to process a message to be processed issued by the target sub-service with the first code file".
The functions described above herein 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: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), 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. The 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 of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by those skilled in the art that the scope of the disclosure in the embodiments of the disclosure is not limited to the specific combination of features described above, but encompasses other technical solutions formed by any combination of features described above or their equivalents without departing from the spirit of the disclosure. Such as those described above, are provided in the present disclosure in place of, but not limited to, features having similar functions.

Claims (10)

1. A method of message processing 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 contains codes of the message to be processed set for the target sub-service;
invoking the first code file in response to processing the message to be processed with the first code file;
processing the message to be processed based on the code contained in the first code file;
and processing the message to be processed based on codes contained in a second code file in response to not processing the message to be processed by adopting the first code file, wherein the second code file contains codes of the message to be processed set for a plurality of sub-services.
2. The method of claim 1, wherein the 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 a 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 a message processing class one by one; and
the determining a target class object for invoking the first code file includes:
determining target class identification information corresponding to the target sub-service identification information of the target sub-service from the query file;
determining class objects 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 3, wherein determining whether to process the pending message issued by the target sub-service using the first code file comprises:
determining whether target class identification information corresponding to the target sub-service identification information exists in the query file;
and responding to the existence of the target class identification information in the query file, and determining to process the message to be processed by adopting the first code file.
5. The method of claim 4, wherein determining whether to process the pending message issued by the target sub-service using the first code file further comprises:
and in response to the fact that the target class identification information does not exist in the query file, determining that the first code file is not adopted to process the message to be processed.
6. A method according to claim 3, wherein prior to said determining whether to use the first code file to process the pending message issued by the target sub-service, 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 determining whether to process the pending message issued by the target sub-service using the first code file comprises:
and in response to receiving the message to be processed issued by the target sub-service, determining whether to process the message to be processed by adopting a first code file.
8. A message processing apparatus, comprising:
a determining unit, configured to determine whether to process a message to be processed issued by a target sub-service by using a first code file, where the first code file includes a code for processing the message set for the target sub-service;
a calling unit, configured to call the first code file in response to processing the message to be processed by using the first code file;
a first processing unit, configured to process the message to be processed based on a code included in the first code file;
and a second processing unit configured to process the message to be processed based on a code included in a second code file in response to processing the message to be processed without using the first code file, wherein the second code file includes codes of the message to be processed set for a plurality of sub-services.
9. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-7.
10. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-7.
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 CN111694679A (en) 2020-09-22
CN111694679B true 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
CN111694679A (en) 2020-09-22

Similar Documents

Publication Publication Date Title
CN111800513B (en) Method and device for pushing information and computer readable medium of electronic equipment
CN111432001B (en) Method, apparatus, electronic device and computer readable medium for jumping scenes
CN114217707B (en) Sharing method, sharing device, electronic equipment and storage medium
CN111163324B (en) Information processing method and device and electronic equipment
CN112379982B (en) Task processing method, device, electronic equipment and computer readable storage medium
CN111596991A (en) Interactive operation execution method and device and electronic equipment
CN112214408A (en) Dependency conflict detection method and device, electronic equipment and computer readable medium
CN111459364A (en) Icon updating method and device and electronic equipment
CN113596328B (en) Camera calling method and device and electronic equipment
CN111596992B (en) Navigation bar display method and device and electronic equipment
CN113518183B (en) Camera calling method and device and electronic equipment
CN111694679B (en) Message processing method and device and electronic equipment
CN111460020B (en) Method, device, electronic equipment and medium for resolving message
CN111459893B (en) File processing method and device and electronic equipment
CN111756833B (en) Node processing method, node processing device, electronic equipment and computer readable medium
CN111338822B (en) Message processing method and device
CN110619079B (en) Method and device for pushing information
CN114089891A (en) Display control method and device and electronic equipment
CN111309323A (en) Parameter initialization 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
CN110099122B (en) Method and apparatus for sending network request
CN113157365B (en) Program running method, program running device, electronic equipment and computer readable medium
CN114398098B (en) Application script execution method, device, electronic equipment and computer readable medium
CN118158082B (en) Method, device, equipment and medium for updating communication resource message of intelligent household 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