CN112540839A - Information changing method, device, electronic equipment and storage medium - Google Patents

Information changing method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112540839A
CN112540839A CN202011528859.1A CN202011528859A CN112540839A CN 112540839 A CN112540839 A CN 112540839A CN 202011528859 A CN202011528859 A CN 202011528859A CN 112540839 A CN112540839 A CN 112540839A
Authority
CN
China
Prior art keywords
change
information
message
modified
party system
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
CN202011528859.1A
Other languages
Chinese (zh)
Other versions
CN112540839B (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.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank 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 Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN202011528859.1A priority Critical patent/CN112540839B/en
Publication of CN112540839A publication Critical patent/CN112540839A/en
Application granted granted Critical
Publication of CN112540839B publication Critical patent/CN112540839B/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/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • 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/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • 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/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/48Indexing scheme relating to G06F9/48
    • G06F2209/481Exception handling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5021Priority
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/547Messaging middleware

Landscapes

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

Abstract

The invention relates to the field of data processing, and discloses an information change method, which comprises the following steps: receiving an information change instruction sent by a third-party system, wherein the change instruction comprises information to be modified indicating change and change content of the information to be modified; returning a first message in a change state to the third-party system, sending the information to be modified and the change content to a service processing module according to an asynchronous processing thread of a processing platform, and changing the information to be modified into the change content through the service processing module; acquiring a change result of the service processing module; and calling a notification component according to the change result to return a second message related to the change result to the third-party system. The invention also relates to a block chain technology, and the change result can be stored in the block chain node. The invention also provides an information changing device, electronic equipment and a storage medium. The invention can save system resources when the information is changed and improve the utilization rate of the system resources.

Description

Information changing method, device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to an information changing method and apparatus, an electronic device, and a computer-readable storage medium.
Background
At present, when a service platform accessing a plurality of third-party systems needs to change information, for example, a user account is upgraded, and the information of a user phone number is changed, the third-party systems need to send information requesting change to the service platform, and then change the information.
In the prior art, the method for changing information is often in an asynchronous processing + active query mode, and the asynchronous processing + active query mode requires a user to actively call an interface to obtain a result of changing information. And each time the service configuration information is changed, a query interface is required to be provided, so that the docking cost is increased, a large amount of system resources are occupied, and the utilization rate of the system resources is reduced.
Disclosure of Invention
The invention provides an information change method, an information change device, electronic equipment and a computer readable storage medium, and mainly aims to save system resources and improve the utilization rate of the system resources when information is changed.
In order to achieve the above object, an information changing method according to the present invention includes:
receiving an information change instruction sent by a third-party system, wherein the change instruction comprises information to be modified indicating change and change content of the information to be modified;
returning a first message in a change state to the third-party system, sending the information to be modified and the change content to a service processing module according to an asynchronous processing thread of a processing platform, and changing the information to be modified into the change content through the service processing module;
acquiring a change result of the service processing module;
and calling a notification component according to the change result to return a second message related to the change result to the third-party system.
Optionally, before the sending the information to be modified and the change content to the service processing module according to the asynchronous processing thread of the processing platform, the method further includes:
acquiring process information of the processing platform;
determining a change priority according to the process information and the information to be modified;
and creating the asynchronous processing thread according to the change priority.
Optionally, after the creating the asynchronous processing thread, the method further includes: creating an object of the asynchronous processing implementation class, and constructing an asynchronous processing thread class object according to the object of the asynchronous processing implementation class;
calling the thread starting method by using the object of the asynchronous processing implementation class, and starting the asynchronous processing thread
Optionally, before the invoking a notification component according to the change result returns a second message related to the change result to the third-party system, the method further includes:
and carrying out encryption processing on the second message.
Optionally, the encrypting the second message includes:
constructing a key generator based on an AES algorithm;
initializing the key generator to obtain an original key;
acquiring a byte array of the original key, and generating an AES key according to the byte array;
encrypting the second message using the AES key.
Optionally, before the invoking a notification component according to the change result returns a second message related to the change result to the third-party system, the method further includes:
judging whether a message notification function of the third-party system is started or not;
and if the message notification function of the third-party system is started, executing the operation of calling a notification component according to the change result to return a second message related to the change result to the third-party system.
Optionally, after the calling the notification component according to the change result returns the second message related to the change result to the third-party system, the method further includes:
constructing a message storage library according to the notification component;
when the second message fails to be sent, storing the second message into the message storage library, and sending the second message to the third-party system through a message retry function of the notification component;
and when the service updating message is successfully sent, backing up the service updating message and storing the service updating message into the message storage.
In order to solve the above problem, the present invention also provides an information changing apparatus, comprising:
the system comprises a change instruction receiving module, a change instruction receiving module and a change instruction receiving module, wherein the change instruction receiving module is used for receiving an information change instruction sent by a third-party system, and the change instruction comprises information to be modified indicating change and change content of the information to be modified;
the change module is used for returning a first message in a change state to the third-party system, sending the information to be modified and the change content to a service processing module according to an asynchronous processing thread of a processing platform, and changing the information to be modified into the change content through the service processing module;
a change result acquisition module for acquiring the change result of the service processing module;
and the change result sending module is used for calling a notification component to return a second message related to the change result to the third-party system according to the change result.
In order to solve the above problem, the present invention also provides an electronic device, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores computer program instructions executable by the at least one processor to cause the at least one processor to perform a method of altering information as described above.
In order to solve the above problem, the present invention further provides a computer-readable storage medium comprising a storage data area and a storage program area, wherein the storage data area stores created data, and the storage program area stores a computer program; wherein the computer program, when executed by a processor, implements an information altering method as described above.
In the embodiment of the invention, an information change instruction sent by a third-party system is received, wherein the change instruction comprises information to be modified indicating change and change content of the information to be modified; returning a first message in a change state to the third-party system, sending the information to be modified and the change content to a service processing module according to an asynchronous processing thread of a processing platform, and changing the information to be modified into the change content through the service processing module; acquiring a change result of the service processing module; and calling a notification component according to the change result to return a second message related to the change result to the third-party system. According to the scheme, the change information can be timely processed and returned without frequently sending the calling request, so that the system resources can be saved when the information is changed, and the utilization rate of the system resources is improved. Therefore, the information change method, the information change device and the computer readable storage medium provided by the invention can save system resources and improve the utilization rate of the system resources when the information is changed.
Drawings
Fig. 1 is a flowchart illustrating an information modification method according to an embodiment of the present invention;
fig. 2 is a schematic block diagram of an information modification apparatus according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an internal structure of an electronic device implementing an information change method according to an embodiment of the present invention;
the implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the application provides an information changing method. The execution subject of the information change method includes, but is not limited to, at least one of electronic devices such as a server and a terminal that can be configured to execute the method provided by the embodiments of the present application. In other words, the information changing method may be performed by software or hardware installed in the terminal device or the server device, and the software may be a block chain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like.
Fig. 1 is a schematic flow chart of an information changing method according to an embodiment of the present invention. In this embodiment, the information changing method includes:
s1, receiving an information change instruction sent by a third-party system, wherein the change instruction comprises information to be modified indicating change and change content of the information to be modified.
In detail, the third-party system is a sender of the information change instruction. The third-party system may be a merchant system accessing the processing platform.
Specifically, the service type of the third-party system can be changed through the information change instruction, and information such as the mobile phone number of the user in the third system can be changed. The information to be modified may be information such as a merchant number, a merchant business order type, a merchant receiving address, and the like.
For example, the content to be modified may be a mobile phone number, and the changed content of the information to be modified may be a new mobile phone number.
S2, returning a first message in a change state to the third-party system, sending the information to be modified and the change content to a service processing module according to an asynchronous processing thread of a processing platform, and changing the information to be modified into the change content through the service processing module.
In the embodiment of the present invention, after receiving the information change instruction, the first message is directly returned to the third-party system, for example, a "in-process" message is returned to the third-party system. At this time, the change operation is not immediately executed, but the information is changed according to the asynchronous processing thread.
In detail, the asynchronous processing thread and the synchronous processing thread are opposite to each other, and the utilization rate of the device can be improved by utilizing the asynchronous processing thread. In the embodiment of the present invention, before sending the information to be modified and the change content to the service processing module according to the asynchronous processing thread of the processing platform, the method further includes:
step A, acquiring process information of the processing platform;
b, determining a change priority according to the process information and the information to be modified;
and step C, creating the asynchronous processing thread according to the change priority.
In this embodiment of the present invention, after the creating the asynchronous processing thread, before the sending the information to be modified and the modified content to the service processing module according to the asynchronous processing thread of the processing platform, the method further includes:
(1) establishing an asynchronous processing implementation class, and constructing a thread starting method according to the asynchronous processing implementation class;
(2) creating an object of the asynchronous processing implementation class, and constructing an asynchronous processing thread class object according to the object of the asynchronous processing implementation class;
(3) and calling the thread starting method by using the object of the asynchronous processing implementation class, and starting the asynchronous processing thread.
In this embodiment of the present invention, the changing the information to be modified into the modified information by the service processing module includes:
(1) judging whether a processing switch of the service processing module is started, if so, inquiring information to be modified of the third-party system through the service processing module, otherwise, stopping operation, namely stopping change operation;
(2) when the result of inquiring the information to be modified is empty, stopping the operation, namely stopping the change operation;
(3) when the result of inquiring the information to be modified is not empty, analyzing the changed content of the information to be modified, and changing the information to be modified into the changed content.
In the embodiment of the present invention, the processing switch is an Apollo switch, the Apollo switch controls the process of processing all services in the service processing module, and when the Apollo switch is turned off, information cannot be modified by the service processing module.
And S3, obtaining the change result of the service processing module.
In an optional embodiment of the present invention, after the service processing module changes the information to be modified into the change content, the change result sent by the service processing module may be received, for example, "the processing is completed, and the processed content includes modifying the information to be modified into the change content".
In another optional embodiment of the present invention, the obtaining the change result of the service processing module includes: and receiving a change result of the service processing module sent by a change notification module, wherein the change notification module receives a notification message sent by the service processing module after changing the state of the information to be modified into the change content.
In this embodiment, after the service processing module processes, the service processing module sends the processing result to the change notification module, and the change notification module further sends the processing result.
Specifically, when the service processing module sends the processing result to the change notification module, the service processing module constructs a production message record object (producer record); and calling a message sending platform (Kafka) by using the message production record object to send the change result to the change notification module.
In detail, the messaging platform (Kafka) is an open source streaming platform developed by the Apzche software foundation, using publish-subscribe mode for message transmission.
And S4, calling a notification component according to the change result to return a second message related to the change result to the third-party system.
In an optional embodiment of the present invention, before the invoking the notification component according to the change result returns the second message related to the change result to the third-party system, the method further includes:
and carrying out encryption processing on the second message.
In particular, the second message may be encrypted by the AES algorithm, the DES algorithm, the RSA algorithm.
Preferably, the encrypting the second message includes:
constructing a key generator based on an AES algorithm;
initializing the key generator to obtain an original key;
acquiring a byte array of the original key, and generating an AES key according to the byte array;
encrypting the second message using the AES key.
Constructing the key generator according to a key generator class KeyGenerator source code in the AES algorithm; initializing the key generator according to the ecnodedreles rule in the AES algorithm.
And after the byte array of the original key is obtained and the AES key is generated according to the byte array, the AES key is sent to the third-party system, and then the third-party system can decrypt after receiving a second message.
By encrypting the second message, the security in the transmission process of the second message is improved.
In an optional embodiment of the present invention, before the invoking a notification component according to the change result returns the second message related to the change result to the third-party system, the method further includes:
judging whether a message notification function of the third-party system is started or not;
and if the message notification function of the third-party system is started, executing the operation of calling a notification component according to the change result to return a second message related to the change result to the third-party system.
Specifically, whether the message notification function of the third-party system is started may be preset, and then, by judgment, the message can be pushed in a personalized manner.
Further, after the calling a notification component according to the change result returns a second message related to the change result to the third-party system, the method further includes:
and when the second message fails to be sent, storing the second message in a message storage library, and resending the second message to the third-party system through a message retry function of the notification component.
In particular, the message repository is pre-constructed.
In another optional embodiment of the present invention, when the service update message is successfully sent, the second message is stored in the message repository.
In the embodiment of the invention, the second message is stored in the message storage library, so that the content of the message is ensured not to be lost.
In the embodiment of the invention, an information change instruction sent by a third-party system is received, wherein the change instruction comprises information to be modified indicating change and change content of the information to be modified; returning a first message in a change state to the third-party system, sending the information to be modified and the change content to a service processing module according to an asynchronous processing thread of a processing platform, and changing the information to be modified into the change content through the service processing module; acquiring a change result of the service processing module; and calling a notification component according to the change result to return a second message related to the change result to the third-party system. According to the scheme, the change information can be processed and returned in time without frequently sending the call request, so that the system resources can be saved when the information is changed, and the utilization rate of the system resources is improved. Therefore, the information changing method of the invention can save system resources when the information is changed and improve the utilization rate of the system resources.
Fig. 2 is a block diagram of an information modifying apparatus according to the present invention.
An information changing apparatus 100 according to the present invention can be installed in an electronic device. According to the implemented functions, the information modification apparatus 100 may include a modification instruction receiving module 101, a modification module 102, a modification result acquiring module 103, and a modification result transmitting module 104. A module according to the present invention, which may also be referred to as a unit, refers to a series of computer program segments that can be executed by a processor of an electronic device and that can perform a fixed function, and that are stored in a memory of the electronic device.
In the present embodiment, the functions regarding the respective modules/units are as follows:
the change instruction receiving module 101 is configured to receive an information change instruction sent by a third-party system, where the change instruction includes information to be modified indicating a change and change content of the information to be modified.
In detail, the third-party system is a sender of the information change instruction. The third-party system may be a merchant system accessing the processing platform.
Specifically, the service type of the third-party system can be changed through the information change instruction, and information such as the mobile phone number of the user in the third system can be changed. The information to be modified may be information such as a merchant number, a merchant business order type, a merchant receiving address, and the like.
For example, the content to be modified may be a mobile phone number, and the changed content of the information to be modified may be a new mobile phone number.
The change module 102 is configured to return a first message in a change state to the third-party system, send the information to be modified and the change content to a service processing module according to an asynchronous processing thread of a processing platform, and change the information to be modified into the change content through the service processing module.
In the embodiment of the present invention, after receiving the information change instruction, the first message is directly returned to the third-party system, for example, a "in-process" message is returned to the third-party system. At this time, the change operation is not immediately executed, but the information is changed according to the asynchronous processing thread.
In detail, the asynchronous processing thread and the synchronous processing thread are opposite to each other, and the utilization rate of the device can be improved by utilizing the asynchronous processing thread.
In this embodiment of the present invention, the apparatus further includes an asynchronous thread creating module, where the asynchronous thread creating module is configured to:
before the information to be modified and the change content are sent to a service processing module according to an asynchronous processing thread of a processing platform, acquiring process information of the processing platform;
determining a change priority according to the process information and the information to be modified;
and creating the asynchronous processing thread according to the change priority.
In this embodiment of the present invention, the apparatus further includes a thread starting module, where the thread starting module is configured to:
after the asynchronous processing thread is created, creating an asynchronous processing implementation class, and constructing a thread starting method according to the asynchronous processing implementation class;
creating an object of the asynchronous processing implementation class, and constructing an asynchronous processing thread class object according to the object of the asynchronous processing implementation class;
and calling the thread starting method by using the object of the asynchronous processing implementation class, and starting the asynchronous processing thread.
In this embodiment of the present invention, the changing the information to be modified into the modified information by the service processing module includes:
(1) judging whether a processing switch of the service processing module is started, if so, inquiring information to be modified of the third-party system through the service processing module, otherwise, stopping operation, namely stopping change operation;
(2) when the result of inquiring the information to be modified is empty, stopping the operation, namely stopping the change operation;
(3) when the result of inquiring the information to be modified is not empty, analyzing the changed content of the information to be modified, and changing the information to be modified into the changed content.
In the embodiment of the present invention, the processing switch is an Apollo switch, the Apollo switch controls the process of processing all services in the service processing module, and when the Apollo switch is turned off, information cannot be modified by the service processing module.
The change result obtaining module 103 is configured to obtain a change result of the service processing module.
In an optional embodiment of the present invention, after the service processing module changes the information to be modified into the change content, the change result sent by the service processing module may be received, for example, "the processing is completed, and the processed content includes modifying the information to be modified into the change content".
In another optional embodiment of the present invention, the obtaining the change result of the service processing module includes: and receiving a change result of the service processing module sent by a change notification module, wherein the change notification module receives a notification message sent by the service processing module after changing the state of the information to be modified into the change content.
In this embodiment, after the service processing module processes, the service processing module sends the processing result to the change notification module, and the change notification module further sends the processing result.
Specifically, when the service processing module sends the processing result to the change notification module, the service processing module constructs a production message record object (producer record); and calling a message sending platform (Kafka) by using the message production record object to send the change result to the change notification module.
In detail, the messaging platform (Kafka) is an open source streaming platform developed by the Apzche software foundation, using publish-subscribe mode for message transmission.
The change result sending module 104 is configured to invoke a notification component according to the change result to return a second message related to the change result to the third-party system.
In an optional embodiment of the present invention, the apparatus further includes an encryption module, where the encryption module is configured to:
and before the notification component is called according to the change result and returns the second message related to the change result to the third-party system, encrypting the second message.
In particular, the second message may be encrypted by the AES algorithm, the DES algorithm, the RSA algorithm.
Preferably, the encryption module is specifically configured to:
before the notification component is called according to the change result and a second message related to the change result is returned to the third-party system, a key generator is constructed based on an AES algorithm;
initializing the key generator to obtain an original key;
acquiring a byte array of the original key, and generating an AES key according to the byte array;
encrypting the second message using the AES key.
Constructing the key generator according to a key generator class KeyGenerator source code in the AES algorithm; initializing the key generator according to the ecnodedreles rule in the AES algorithm.
And after the byte array of the original key is obtained and the AES key is generated according to the byte array, the AES key is sent to the third-party system, and then the third-party system can decrypt after receiving a second message.
By encrypting the second message, the security in the transmission process of the second message is improved.
In an optional embodiment of the present invention, the apparatus further includes a triggering module, where the triggering module is configured to:
before the notification component is called according to the change result and returns a second message related to the change result to the third-party system, whether a message notification function of the third-party system is started or not is judged;
and if the message notification function of the third-party system is started, calling a notification component according to the change result to return a second message related to the change result to the third-party system.
Specifically, whether the message notification function of the third-party system is started may be preset, and then, by judgment, the message can be pushed in a personalized manner.
Further, the apparatus further comprises: a message storage module to:
and when the second message fails to be sent, storing the second message in a message storage library, and resending the second message to the third-party system through a message retry function of the notification component.
In particular, the message repository is pre-constructed.
In another optional embodiment of the present invention, when the service update message is successfully sent, the second message is stored in the message repository.
In the embodiment of the invention, the second message is stored in the message storage library, so that the content of the message is ensured not to be lost.
Fig. 3 is a schematic structural diagram of an electronic device implementing an information change method according to the present invention.
The electronic device 1 may comprise a processor 10, a memory 11 and a bus, and may further comprise a computer program, such as an information altering program 12, stored in the memory 11 and executable on the processor 10.
The memory 11 includes at least one type of readable storage medium, which includes flash memory, removable hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device 1, such as a removable hard disk of the electronic device 1. The memory 11 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device 1. The memory 11 may be used not only to store application software installed in the electronic device 1 and various types of data, such as a code of the information changing program 12, but also to temporarily store data that has been output or is to be output.
The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device 1 by running or executing a program or a module (for example, executing an information change program) stored in the memory 11 and calling data stored in the memory 11.
The bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like.
Fig. 3 shows only an electronic device with components, and it will be understood by those skilled in the art that the structure shown in fig. 3 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than those shown, or some components may be combined, or a different arrangement of components.
For example, although not shown, the electronic device 1 may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so as to implement functions of charge management, discharge management, power consumption management, and the like through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device 1 may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
Further, the electronic device 1 may further include a network interface, and optionally, the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a bluetooth interface, etc.), which are generally used for establishing a communication connection between the electronic device 1 and other electronic devices.
Optionally, the electronic device 1 may further comprise a user interface, which may be a Display (Display), an input unit (such as a Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the electronic device 1 and for displaying a visualized user interface, among other things.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
An information change program 12 stored in the memory 11 of the electronic device 1 is a combination of instructions, and when running in the processor 10, can realize:
receiving an information change instruction sent by a third-party system, wherein the change instruction comprises information to be modified indicating change and change content of the information to be modified;
returning a first message in a change state to the third-party system, sending the information to be modified and the change content to a service processing module according to an asynchronous processing thread of a processing platform, and changing the information to be modified into the change content through the service processing module;
acquiring a change result of the service processing module;
and calling a notification component according to the change result to return a second message related to the change result to the third-party system.
Further, the integrated modules/units of the electronic device 1, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. The computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM).
Further, the computer usable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any accompanying claims should not be construed as limiting the claim concerned.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. An information change method, characterized in that the method comprises:
receiving an information change instruction sent by a third-party system, wherein the change instruction comprises information to be modified indicating change and change content of the information to be modified;
returning a first message in a change state to the third-party system, sending the information to be modified and the change content to a service processing module according to an asynchronous processing thread of a processing platform, and changing the information to be modified into the change content through the service processing module;
acquiring a change result of the service processing module;
and calling a notification component according to the change result to return a second message related to the change result to the third-party system.
2. The information change method according to claim 1, wherein before the information to be modified and the change content are sent to a business processing module according to an asynchronous processing thread of a processing platform, the method further comprises:
acquiring process information of the processing platform;
determining a change priority according to the process information and the information to be modified;
and creating the asynchronous processing thread according to the change priority.
3. The information state change method of claim 2, wherein after the creating the asynchronous processing thread, the method further comprises:
establishing an asynchronous processing implementation class, and constructing a thread starting method according to the asynchronous processing implementation class;
creating an object of the asynchronous processing implementation class, and constructing an asynchronous processing thread class object according to the object of the asynchronous processing implementation class;
and calling the thread starting method by using the object of the asynchronous processing implementation class, and starting the asynchronous processing thread.
4. The information change method according to claim 1, wherein before said invoking a notification component according to the change result returns a second message related to the change result to the third-party system, the method further comprises:
and carrying out encryption processing on the second message.
5. The information changing method according to claim 4, wherein the encrypting the second message includes:
constructing a key generator based on an AES algorithm;
initializing the key generator to obtain an original key;
acquiring a byte array of the original key, and generating an AES key according to the byte array;
encrypting the second message using the AES key.
6. The information change method according to any one of claims 1 to 5, wherein before said invoking a notification component according to the change result returns a second message related to the change result to the third-party system, the method further comprises:
judging whether a message notification function of the third-party system is started or not;
and if the message notification function of the third-party system is started, executing the operation of calling a notification component according to the change result to return a second message related to the change result to the third-party system.
7. The information change method according to any one of claims 1 to 5, wherein after said calling a notification component according to the change result returns a second message related to the change result to the third-party system, the method further comprises:
and when the second message fails to be sent, storing the second message in a message storage library, and resending the second message to the third-party system through a message retry function of the notification component.
8. An information changing apparatus, characterized in that the apparatus comprises:
the system comprises a change instruction receiving module, a change instruction receiving module and a change instruction receiving module, wherein the change instruction receiving module is used for receiving an information change instruction sent by a third-party system, and the change instruction comprises information to be modified indicating change and change content of the information to be modified;
the change module is used for returning a first message in a change state to the third-party system, sending the information to be modified and the change content to a service processing module according to an asynchronous processing thread of a processing platform, and changing the information to be modified into the change content through the service processing module;
a change result acquisition module for acquiring the change result of the service processing module;
and the change result sending module is used for calling a notification component to return a second message related to the change result to the third-party system according to the change result.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method of altering information as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium comprising a storage data area and a storage program area, wherein the storage data area stores created data, and the storage program area stores a computer program; wherein the computer program, when executed by a processor, implements an information altering method as claimed in any one of claims 1 to 7.
CN202011528859.1A 2020-12-22 2020-12-22 Information changing method, device, electronic equipment and storage medium Active CN112540839B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011528859.1A CN112540839B (en) 2020-12-22 2020-12-22 Information changing method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011528859.1A CN112540839B (en) 2020-12-22 2020-12-22 Information changing method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112540839A true CN112540839A (en) 2021-03-23
CN112540839B CN112540839B (en) 2024-03-19

Family

ID=75019637

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011528859.1A Active CN112540839B (en) 2020-12-22 2020-12-22 Information changing method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112540839B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115190016A (en) * 2022-07-25 2022-10-14 平安科技(深圳)有限公司 System general switch configuration method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453667A (en) * 2016-12-20 2017-02-22 北京小米移动软件有限公司 Method and device for updating cached data
CN107729366A (en) * 2017-09-08 2018-02-23 广东省建设信息中心 A kind of pervasive multi-source heterogeneous large-scale data synchronization system
CN109471740A (en) * 2018-10-31 2019-03-15 深圳智链物联科技有限公司 Built-in system and third party system software interconnection method, device and terminal device
CN109857747A (en) * 2018-12-18 2019-06-07 百度在线网络技术(北京)有限公司 Data synchronization updating method, system and computer equipment
CN111556052A (en) * 2020-04-27 2020-08-18 京东方科技集团股份有限公司 Authority management method, processing device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453667A (en) * 2016-12-20 2017-02-22 北京小米移动软件有限公司 Method and device for updating cached data
CN107729366A (en) * 2017-09-08 2018-02-23 广东省建设信息中心 A kind of pervasive multi-source heterogeneous large-scale data synchronization system
CN109471740A (en) * 2018-10-31 2019-03-15 深圳智链物联科技有限公司 Built-in system and third party system software interconnection method, device and terminal device
CN109857747A (en) * 2018-12-18 2019-06-07 百度在线网络技术(北京)有限公司 Data synchronization updating method, system and computer equipment
CN111556052A (en) * 2020-04-27 2020-08-18 京东方科技集团股份有限公司 Authority management method, processing device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115190016A (en) * 2022-07-25 2022-10-14 平安科技(深圳)有限公司 System general switch configuration method, device, equipment and storage medium
CN115190016B (en) * 2022-07-25 2023-04-28 平安科技(深圳)有限公司 System general switch configuration method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112540839B (en) 2024-03-19

Similar Documents

Publication Publication Date Title
CN112653760B (en) Cross-server file transmission method and device, electronic equipment and storage medium
CN112015815B (en) Data synchronization method, device and computer readable storage medium
CN113422686B (en) Gateway layer authentication method, system, electronic device and storage medium
CN113055380B (en) Message processing method and device, electronic equipment and medium
CN111880948A (en) Data refreshing method and device, electronic equipment and computer readable storage medium
CN112506559A (en) Gray scale publishing method and device based on gateway, electronic equipment and storage medium
CN113890712A (en) Data transmission method and device, electronic equipment and readable storage medium
CN112685117A (en) System language internationalization maintenance method, device and computer readable storage medium
CN114185895A (en) Data import and export method and device, electronic equipment and storage medium
CN114389889A (en) File full life cycle management method and device based on block chain technology
CN115374150A (en) Character string data query method and device, electronic equipment and storage medium
CN114417374A (en) Intelligent contract business card method, device, equipment and storage medium based on block chain
CN114722437A (en) Cross-APP unique identifier generation method, device, equipment and storage medium
CN112217639B (en) Data encryption sharing method and device, electronic equipment and computer storage medium
CN113221154A (en) Service password obtaining method and device, electronic equipment and storage medium
CN112540839B (en) Information changing method, device, electronic equipment and storage medium
CN111901224A (en) Method, device and equipment for loading delayed messages and computer readable storage medium
CN115687384A (en) UUID (user identifier) identification generation method, device, equipment and storage medium
CN113626222A (en) Message processing method and device, computer equipment and storage medium
CN114820132A (en) Order distribution method and device, electronic equipment and storage medium
CN113342867A (en) Data distribution and management method and device, electronic equipment and readable storage medium
CN113419772A (en) Response data packing and unpacking method, response data packing device, response data unpacking device and response data unpacking medium
CN111506644A (en) Application data processing method and device and electronic equipment
CN115225458A (en) Alarm notification method, alarm notification device, electronic equipment and storage medium
CN113452785B (en) Service access method and device based on offline resources, electronic equipment and medium

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