CN116468517A - Order information processing method and device, electronic equipment and storage medium - Google Patents
Order information processing method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN116468517A CN116468517A CN202310370610.XA CN202310370610A CN116468517A CN 116468517 A CN116468517 A CN 116468517A CN 202310370610 A CN202310370610 A CN 202310370610A CN 116468517 A CN116468517 A CN 116468517A
- Authority
- CN
- China
- Prior art keywords
- order
- request
- server
- request message
- information
- 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.)
- Pending
Links
- 230000010365 information processing Effects 0.000 title claims abstract description 50
- 238000003672 processing method Methods 0.000 title claims abstract description 31
- 238000012545 processing Methods 0.000 claims abstract description 114
- 230000004044 response Effects 0.000 claims abstract description 59
- 238000004088 simulation Methods 0.000 claims abstract description 38
- 238000000034 method Methods 0.000 claims abstract description 30
- 230000002688 persistence Effects 0.000 claims abstract description 16
- 230000005856 abnormality Effects 0.000 claims description 35
- 230000008569 process Effects 0.000 claims description 14
- 238000004590 computer program Methods 0.000 claims description 7
- 230000002159 abnormal effect Effects 0.000 abstract description 9
- 230000001960 triggered effect Effects 0.000 abstract description 4
- 230000015556 catabolic process Effects 0.000 description 14
- 238000006731 degradation reaction Methods 0.000 description 14
- 230000006870 function Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 7
- 238000011144 upstream manufacturing Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 238000001514 detection method Methods 0.000 description 5
- 238000013475 authorization Methods 0.000 description 4
- 230000003993 interaction Effects 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000005484 gravity Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 241000700189 Hystrix <Rodentia> Species 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005429 filling process Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0633—Lists, e.g. purchase orders, compilation or processing
- G06Q30/0635—Processing of requisition or of purchase orders
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/16—Error detection or correction of the data by redundancy in hardware
- G06F11/20—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
- G06F11/202—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
- G06F11/2023—Failover techniques
- G06F11/2033—Failover techniques switching over of hardware resources
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- General Physics & Mathematics (AREA)
- Development Economics (AREA)
- General Business, Economics & Management (AREA)
- Strategic Management (AREA)
- Marketing (AREA)
- Economics (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the invention discloses an order information processing method, an order information processing device, electronic equipment and a storage medium; the method comprises the steps that an order information submitting request sent by a client for a target order can be received, the order information submitting request comprises an order identifier of the target order, the historical request times corresponding to the target order are determined according to the order identifier, persistence processing is carried out on the order information submitting request based on the historical request times to obtain a request message, if an order processing server corresponding to the target order is abnormal in calling, simulation response information corresponding to the request message is generated through a preset abnormal processing server, the simulation response information is sent to the client, and the client is triggered to display a successful submitting prompt corresponding to the order information submitting request based on the simulation response information; the embodiment of the invention can ensure the continuity of the transaction operation of the client, improve the transaction experience of the user and improve the transaction efficiency.
Description
Technical Field
The present invention relates to the field of server technologies, and in particular, to a method and an apparatus for processing order information, an electronic device, and a storage medium.
Background
With the rapid development of current economies, more and more customers conduct financial transactions, when the customers conduct transactions through various transaction systems, the transaction systems may temporarily interrupt services due to excessive operating load pressure and the like.
Currently, the main method adopted when the transaction system cannot provide service is that a client of the transaction system directly displays a fault prompt to a client so as to remind the client that the transaction system is not available currently. However, with this scheme, the transaction operation of the customer is interrupted, and since the recovery time of the transaction system is not accurately predicted, advice about the use time cannot be provided to the customer, greatly affecting the use experience and transaction efficiency of the customer.
Disclosure of Invention
The embodiment of the invention provides an order information processing method, an order information processing device, electronic equipment and a storage medium, which can ensure continuity of customer transaction operation, improve transaction experience of a user and improve transaction efficiency.
The embodiment of the invention provides an order information processing method, which comprises the following steps:
Receiving an order information submitting request sent by a client for a target order, wherein the order information submitting request comprises an order identifier of the target order;
according to the order identification, determining the historical request times corresponding to the target order;
based on the historical request times, carrying out persistence processing on the order information submitting request to obtain a request message;
if the order processing server corresponding to the target order has calling abnormality, generating simulation response information corresponding to the request message through a preset abnormality processing server;
and sending the simulation response information to the client, and triggering the client to display a successful submitting prompt corresponding to the order information submitting request based on the simulation response information.
Correspondingly, the embodiment of the invention also provides an order information processing device, which comprises:
the system comprises a request receiving unit, a target order and a target order, wherein the request receiving unit is used for receiving an order information submitting request sent by a client side aiming at the target order, and the order information submitting request comprises an order identifier of the target order;
the number determining unit is used for determining the historical request number corresponding to the target order according to the order identification;
The persistence processing unit is used for carrying out persistence processing on the order information submitting request based on the historical request times to obtain a request message;
the information generation unit is used for generating simulation response information corresponding to the request message through a preset exception handling server if the order handling server corresponding to the target order has call exception;
and the simulation response unit is used for sending the simulation response information to the client and triggering the client to display a submission success prompt corresponding to the order information submission request based on the simulation response information.
Correspondingly, the embodiment of the invention also provides electronic equipment, which comprises a memory and a processor; the memory stores an application program, and the processor is configured to run the application program in the memory, so as to execute steps in any order information processing method provided by the embodiment of the present invention.
Correspondingly, the embodiment of the invention also provides a computer readable storage medium, which stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor to execute the steps in any order information processing method provided by the embodiment of the invention.
In addition, the embodiment of the invention also provides a computer program product, which comprises a computer program or instructions, wherein the computer program or instructions realize the steps in any order information processing method provided by the embodiment of the invention when being executed by a processor.
By adopting the scheme of the embodiment of the invention, the order information submitting request sent by the client for the target order can be received, the order information submitting request comprises the order identification of the target order, the historical request times corresponding to the target order are determined according to the order identification, the order information submitting request is subjected to persistence processing based on the historical request times to obtain a request message, if the order processing server corresponding to the target order has calling abnormality, the simulated response information corresponding to the request message is generated through the preset abnormality processing server, the simulated response information is sent to the client, and the client is triggered to display the submitting success prompt corresponding to the order information submitting request based on the simulated response information; in the embodiment of the invention, when the order processing server can not normally process the target order due to abnormal call, the abnormal processing server can be called to generate the simulation response information so that the client can display the information in normal service.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of a scenario of an order information processing method provided in an embodiment of the present invention;
FIG. 2 is a flow chart of an order information processing method provided by an embodiment of the present invention;
FIG. 3 is a schematic diagram of interaction between a transaction system client and a server provided by an embodiment of the present invention;
FIG. 4 is a logic diagram for implementing service degradation provided by an embodiment of the present invention;
FIG. 5 is a schematic diagram of the working process of the order processing server and the exception processing server according to the embodiment of the present invention;
fig. 6 is a schematic diagram of an order information processing apparatus according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of another configuration of an order information processing apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
The embodiment of the invention provides an order information processing method, an order information processing device, electronic equipment and a computer readable storage medium. Specifically, the embodiment of the invention provides an order information processing method suitable for an order information processing device, and the order information processing device can be integrated in electronic equipment.
The electronic device may be a terminal or the like, including but not limited to a mobile terminal and a fixed terminal, for example, a mobile terminal including but not limited to a smart phone, a smart watch, a tablet computer, a notebook computer, a smart car, etc., wherein the fixed terminal includes but not limited to a desktop computer, a smart television, etc.
The electronic device may be a server, which may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network ), and basic cloud computing services such as big data and artificial intelligence platform, but is not limited thereto.
The order information processing method of the embodiment of the invention can be realized by a server or a terminal and the server together.
The method for processing the order information is described below by taking an example in which the terminal and the server together implement the method.
As shown in fig. 1, an order information processing system provided by an embodiment of the present invention includes a terminal 10, a server 20, and the like; the terminal 10 and the server 20 are connected through a network, for example, a wired or wireless network connection, wherein the terminal 10 may exist as a terminal for a user to send an order information submitting request to the server 20.
The terminal 10 may be a terminal configured as a client for a user to send an order information submitting request for a target order to the server 20.
The server 20 may be configured to receive an order information submitting request sent by a client for a target order, where the order information submitting request includes an order identifier of the target order, determine, according to the order identifier, a history request number corresponding to the target order, and perform persistence processing on the order information submitting request based on the history request number to obtain a request message, and if there is a call abnormality in an order processing server corresponding to the target order, generate, by using a preset abnormality processing server, a simulated response message corresponding to the request message, send the simulated response message to the client, and trigger the client to display, based on the simulated response message, a success prompt of submitting the order information submitting request.
It will be appreciated that in some embodiments, the steps of order information processing performed by the server 20 may also be performed by the terminal 10, which is not limited in this embodiment of the present invention.
The following will describe in detail. The following description of the embodiments is not intended to limit the preferred embodiments.
The embodiments of the present invention will be described from the perspective of an order information processing apparatus, which may be integrated in a server or terminal in particular.
As shown in fig. 2, the specific flow of the order information processing method of the present embodiment may be as follows:
201. and receiving an order information submitting request sent by a client for a target order, wherein the order information submitting request comprises an order identifier of the target order.
The client is a client of a transaction system used when a user carries out transactions. Specifically, the user can perform operations related to transactions such as transfer, authorization, data filling, withdrawal, etc. through the client.
For example, there may be many scenarios of direct interaction with the user during the full life of the personal loan service, including mainly customer profile filling, customer authorization, customer contract signing, customer withdrawal operations, etc.
Under normal conditions, after receiving information fed back by a user through a client, the server interacts with various loan background services deployed in a bank core area, and then feeds back the user through the client according to the interaction result.
However, when the loan background service is temporarily interrupted due to various reasons such as system failure or excessive pressure load, the use experience of the customer is affected.
In the solution provided by the related art, when the background system cannot provide service, for example, a page fault prompt page is mainly mounted on the client side to remind the user to retry later.
Wherein the order information submission request is a request generated based on an operation that the user needs to interact with a server of the trading system. For example, the order information submission request may be a request generated based on a user's profile fill-in operation, a request generated based on a user's authorization operation, and so on.
Specifically, the order identifier of the target order may be information that can distinguish the target order from other orders, such as an order number and a two-dimensional code of the target order.
It will be appreciated that the order information submission request may include other information in addition to the order identification that needs to be submitted to the trading system. For example, when the order information submission request is a request generated based on a user's profile fill-in operation, the order information submission request may further include specific profile filled in by the user; when the order information submission request is a request generated based on an authorization operation of the user, information authorized by the user may also be included in the order information submission request, and so on.
202. And determining the historical request times corresponding to the target order according to the order identification.
The historical request times are times when the client side sends out order information submitting requests aiming at the target order before the order information submitting requests.
It will be appreciated that there may be multiple requests for the same target order. For example, in a target order of a personal loan service, a user firstly fills in data at a client, and the client sends a first order information submitting request after submitting the data; further, the user signs the contract on the client, and after the signing is completed, the client sends a second order information submitting request, and so on.
It should be noted that the types of the different order information submitting requests may be the same or different. For example, a user may submit a document multiple times during the document filling process, at which point there is a request for submitting order information of the same type.
203. And based on the historical request times, carrying out persistence processing on the order information submitting request to obtain a request message.
It will be appreciated that if the historical request count is 0, as shown in FIG. 3, the client is illustrated as invoking the order processing server for the target order for the first time. At this time, a new traceId may be created, all requests may be persisted into messages by Json, and the persisted message structure is approximately { "reqHeader": { "key1": "value1", "key2": "value2" }, "" reqBody ": {" key1":" value1"," key2":" value2 "}.
The traceId may be used to identify a specific request ID. When the user request enters the system, a globally unique traceId is generated in the first layer of the RPC call network, and is continuously transmitted backwards along with the RPC call of each layer, so that the paths called by the user request in the system can be connected in series through the traceId.
204. And if the order processing server corresponding to the target order has calling abnormality, generating simulation response information corresponding to the request message through a preset abnormality processing server.
A service degradation framework for use by clients is provided that provides a set of template packages for standard service degradation policies. Firstly, a client needs to close all inlets called to a service downstream, and three common types of inlets exist, namely, the downstream is called by using a domain name mode through HTTP; b. calling the downstream through the service name in an RPC mode, wherein both the two modes are synchronous calling modes, all requests can be closed into one code class by adding a filter, and a framework class provided by a service degradation framework is called in the closing class to access the downstream; C. asynchronous call mode is generally realized by MQ mode, and such call can also be closed by using framework class provided by degradation framework.
In some optional embodiments, in order to avoid a subsequent transaction failure, the order information processing method provided by the embodiment of the present invention further includes: determining the storage condition of a history request message of the target order in the exception handling server based on the order identification;
and if the history request message of the target order is stored in the exception handling server, executing the step of storing the request message through a preset exception handling server.
That is, after the downstream service failure occurs, the framework will guide all transactions of the subsequent order to the failure degradation service cluster, so as to avoid the subsequent transaction failure.
It may be understood that, as shown in fig. 4, if the order processing server is normal and the target order does not have a history request message stored in the exception processing server, the request message may be sent to the order processing server for processing, and the order information processing method provided by the embodiment of the present invention further includes:
and if the order processing server corresponding to the target order does not have the calling exception and the history request message of the target order is not stored in the exception processing server, calling the order processing server to process the request message.
In the embodiment of the invention, whether the downstream system is faulty or not can be judged according to a common fault discovery strategy, such as overtime degradation and failure times degradation: the time-out time degradation can be configured to be a specific time n, when the downstream access of a certain interface exceeds n and then retries m times of unsuccessful, the downstream failure is determined, and when the failure times are degraded, the downstream return result has business abnormality, and the failure is determined.
205. And sending the simulation response information to the client, and triggering the client to display a successful submitting prompt corresponding to the order information submitting request based on the simulation response information.
In the embodiment of the invention, the order processing server and the exception processing server can be a group of clusters which are respectively and independently deployed and serve as a server side for interactive recording and revising.
The exception handling server may be configured to provide a simulated transaction response in a fault exception scenario to the upstream client, store upstream transaction traffic data, and use the stored transaction traffic data to simulate a call of the client by a traffic playback manner after the service invoked by the upstream client is restored, so as to forward the transaction interrupted in advance.
As shown in FIG. 5, the DB of the failure downgraded cluster uses a No-SQL document type database such as MongoDB to persist information such as Json data transmitted from upstream, url addresses of to-be-restored services, and the like on a disk. Then, the fault downgrade cluster starts a timing task, determines whether the service relied by the upstream client is restored by polling the address of the service Url to be restored, and finally starts flow simulation to replace the execution of the transaction by the upstream client.
In some optional embodiments, before the step of "the order information submitting request includes an access path of the order processing server, the generating, by the exception processing server, simulated response information corresponding to the request packet", the order information processing method provided by the embodiment of the present invention further includes:
storing the request message in the exception handling server;
in some optional embodiments, after the step of "sending the simulated response information to the client", the order information processing method provided by the embodiment of the present invention further includes:
receiving order completion indication information of the target order;
accessing the access path in the request message through the exception handling server to determine whether the order handling server has a call exception;
and if the order processing server does not have the call abnormality, calling the abnormality processing server and the order processing server to process the historical request message and the request message of the target order, so as to obtain the real response information of the target order.
In some optional embodiments, the step of "calling the exception processing server and the order processing server to process the history request message and the request message of the target order to obtain the real response information of the target order" includes:
Invoking the exception handling server to perform simulated invoking based on the historical request message of the target order and the request message to generate a simulated order handling request of the target order;
and sending the simulated order processing request to the order processing server for processing to obtain the real response information of the target order.
Optionally, after the step of accessing, by the exception handling server, the access path in the request packet to determine whether the order handling server has a call exception, the order information processing method provided by the embodiment of the present invention further includes:
and if the order processing server has the calling abnormality, after a preset time interval, returning to execute the step of accessing the access path in the request message through the abnormality processing server to determine whether the order processing server has the calling abnormality or not until the order processing server does not have the calling abnormality.
That is, the exception handling server initiates a timed task that determines whether the service that the upstream client relies on, i.e., the order handling server, is restored by polling the Url address of the service to be restored.
In some alternative embodiments, the step of "accessing, by the exception handling server, the access path in the request message to determine whether there is a call exception to the order handling server" includes:
accessing the access path in the request message through the exception handling server, and determining that the order handling server has call exception if the access result accords with a preset access exception condition;
and if the access result does not accord with the access exception condition, determining that the order processing server has no call exception.
The degradation framework encapsulates the configuration of the failure cluster to determine if the downstream system fails according to common failure discovery policies, such as timeout degradation and failure times degradation: the overtime degradation can be determined as downstream failure by configuring a specific time n, retrying m times of unsuccessful after n is exceeded by downstream access of a certain interface, and determining as failure by the fact that although a returned result exists in the downstream, the returned result is abnormal in service and is also determined as failure by using Hystrix, sentinel and the like as common tools.
The service degradation system based on interactive recording playback has great promotion on user experience. Before improvement, a user can only passively wait for the system to recover and retry manually, after improvement, the system automatically detects the stability of service, and automatically switches to a degraded service mode when an external interface fails, after the external interface is stable, the user can automatically replace a client to complete traffic transaction, and the user can complete the input and the submission of the client in an offline-like mode during the failure, so that the subsequent customer experience is not influenced, and the loss of the customer during the service failure is prevented.
As can be seen from the foregoing, in the embodiment of the present invention, an order information submitting request sent by a client for a target order may be received, where the order information submitting request includes an order identifier of the target order, a history request number corresponding to the target order is determined according to the order identifier, and based on the history request number, the order information submitting request is subjected to persistence processing to obtain a request packet, and if there is a call abnormality in an order processing server corresponding to the target order, analog response information corresponding to the request packet is generated by a preset abnormality processing server, and the analog response information is sent to the client, so that the client is triggered to display a success prompt corresponding to the order information submitting request based on the analog response information; in the embodiment of the invention, when the order processing server can not normally process the target order due to abnormal call, the abnormal processing server can be called to generate the simulation response information so that the client can display the information in normal service.
In order to better implement the method, correspondingly, the embodiment of the invention also provides an order information processing device.
Referring to fig. 6, the apparatus includes:
the request receiving unit 601 may be configured to receive an order information submitting request sent by a client for a target order, where the order information submitting request may include an order identifier of the target order;
the number determining unit 602 may be configured to determine, according to the order identifier, a historical request number corresponding to the target order;
the persistence processing unit 603 may be configured to perform persistence processing on the order information submitting request based on the historical request times, to obtain a request packet;
the information generating unit 604 may be configured to generate, if there is a call abnormality in the order processing server corresponding to the target order, simulated response information corresponding to the request packet through a preset abnormality processing server;
the simulation response unit 605 may be configured to send the simulation response information to the client, and trigger the client to display a prompt of success of submission corresponding to the order information submission request based on the simulation response information.
In some alternative embodiments, as shown in fig. 7, the order information processing apparatus provided in the embodiments of the present invention may further include a storage status determining unit 606, configured to determine, based on the order identifier, a storage status of a history request packet of the target order in the exception processing server;
And if the history request message of the target order is stored in the exception handling server, executing the step of storing the request message through a preset exception handling server.
In some optional embodiments, the order information processing apparatus provided by the embodiment of the present invention may further include a normal processing unit, which may be configured to invoke the order processing server to process the request packet if there is no invocation exception in the order processing server corresponding to the target order and the history request packet of the target order is not stored in the exception processing server.
In some optional embodiments, the order information processing apparatus provided by the embodiments of the present invention may further include a message storage unit, configured to store the request message in the exception handling server;
the order information processing device provided by the embodiment of the invention can also comprise an order processing unit which can be used for receiving order completion indication information of the target order;
accessing the access path in the request message through the exception handling server to determine whether the order handling server has a call exception;
And if the order processing server does not have the call abnormality, calling the abnormality processing server and the order processing server to process the historical request message and the request message of the target order, so as to obtain the real response information of the target order.
In some optional embodiments, the order processing unit may be configured to invoke the exception processing server to perform a simulation call based on the history request packet and the request packet of the target order, and generate a simulation order processing request of the target order;
and sending the simulated order processing request to the order processing server for processing to obtain the real response information of the target order.
In some optional embodiments, the order information processing apparatus provided by the embodiment of the present invention may further include a server polling unit, which may be configured to return to execute the step of accessing, by the exception handling server, the access path in the request packet after a preset time interval if there is a call exception in the order handling server, so as to determine whether there is a call exception in the order handling server until there is no call exception in the order handling server.
In some optional embodiments, the order processing unit may be configured to access, by using the exception handling server, the access path in the request packet, and determine that the order handling server has a call exception if an access result meets a preset access exception condition;
and if the access result does not accord with the access exception condition, determining that the order processing server has no call exception.
From the above, it can be known that, through an order information processing device, an order information submitting request sent by a client for a target order can be received, the order information submitting request includes an order identifier of the target order, according to the order identifier, a history request number corresponding to the target order is determined, based on the history request number, the order information submitting request is subjected to persistence processing, a request message is obtained, if a call abnormality exists in an order processing server corresponding to the target order, a simulation response message corresponding to the request message is generated through a preset abnormality processing server, the simulation response message is sent to the client, and the client is triggered to display a success prompt corresponding to the order information submitting request based on the simulation response message; in the embodiment of the invention, when the order processing server can not normally process the target order due to abnormal call, the abnormal processing server can be called to generate the simulation response information so that the client can display the information in normal service.
In addition, the embodiment of the present invention further provides an electronic device, which may be a terminal or a server, as shown in fig. 8, and shows a schematic structural diagram of the electronic device according to the embodiment of the present invention, specifically:
the electronic device may include Radio Frequency (RF) circuitry 801, memory 802 including one or more computer-readable storage media, input unit 803, display unit 804, sensor 805, audio circuitry 806, wireless fidelity (WiFi, wireless Fidelity) module 807, processor 808 including one or more processing cores, and power supply 809. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 8 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
Wherein:
the RF circuit 801 may be used for receiving and transmitting signals during a message or a call, and particularly, after receiving downlink information of a base station, the downlink information is processed by one or more processors 808; in addition, data relating to uplink is transmitted to the base station. Typically, RF circuitry 801 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM, subscriber Identity Module) card, a transceiver, a coupler, a low noise amplifier (LNA, low Noise Amplifier), a duplexer, and the like. In addition, the RF circuit 801 may also communicate with networks and other devices through wireless communication. The wireless communication may use any communication standard or protocol including, but not limited to, global system for mobile communications (GSM, global System of Mobile communication), general packet radio service (GPRS, general Packet Radio Service), code division multiple access (CDMA, code Division Multiple Access), wideband code division multiple access (WCDMA, wideband Code Division Multiple Access), long term evolution (LTE, long Term Evolution), email, short message service (SMS, short Messaging Service), and the like.
The memory 802 may be used to store software programs and modules that the processor 808 performs various functional applications and data processing by executing the software programs and modules stored in the memory 802. The memory 802 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 (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the electronic device (such as audio data, phonebooks, etc.), and the like. In addition, memory 802 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 802 may also include a memory controller to provide access to the memory 802 by the processor 808 and the input unit 803.
The input unit 803 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, the input unit 803 may include a touch-sensitive surface, as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations thereon or thereabout by a user (e.g., operations thereon or thereabout by a user using any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection means according to a predetermined program. Alternatively, the touch-sensitive surface may comprise two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 808 and can receive commands from the processor 808 and execute them. In addition, touch sensitive surfaces may be implemented in a variety of types, such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface, the input unit 803 may also comprise other input devices. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 804 may be used to display information entered by a user or provided to a user as well as various graphical user interfaces of the electronic device, which may be composed of graphics, text, icons, video, and any combination thereof. The display unit 804 may include a display panel, which may optionally be configured in the form of a liquid crystal display (LCD, liquid Crystal Display), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay a display panel, upon detection of a touch operation thereon or thereabout by the touch-sensitive surface, being communicated to the processor 808 to determine a type of touch event, and the processor 808 then provides a corresponding visual output on the display panel based on the type of touch event. Although in fig. 8 the touch sensitive surface and the display panel are implemented as two separate components for input and output functions, in some embodiments the touch sensitive surface may be integrated with the display panel to implement the input and output functions.
The electronic device may also include at least one sensor 805 such as a light sensor, a motion sensor, and other sensors. In particular, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or backlight when the electronic device is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the mobile phone is stationary, and can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the electronic device are not described in detail herein.
Audio circuitry 806, speakers, and a microphone may provide an audio interface between the user and the electronic device. The audio circuit 806 may transmit the received electrical signal after audio data conversion to a speaker, which converts the electrical signal to a sound signal for output; on the other hand, the microphone converts the collected sound signals into electrical signals, which are received by the audio circuit 806 and converted into audio data, which are processed by the audio data output processor 808 for transmission to, for example, another electronic device via the RF circuit 801, or which are output to the memory 802 for further processing. The audio circuitry 806 may also include an ear bud jack to provide communication of the peripheral headphones with the electronic device.
WiFi belongs to a short-distance wireless transmission technology, and the electronic equipment can help a user to send and receive e-mails, browse web pages, access streaming media and the like through the WiFi module 807, so that wireless broadband Internet access is provided for the user. Although fig. 8 shows a WiFi module 807, it is understood that it does not belong to the necessary constitution of the electronic device, and can be omitted entirely as needed within a range that does not change the essence of the invention.
The processor 808 is a control center of the electronic device that utilizes various interfaces and lines to connect the various parts of the overall handset, perform various functions of the electronic device and process data by running or executing software programs and/or modules stored in the memory 802, and invoking data stored in the memory 802. Optionally, the processor 808 may include one or more processing cores; preferably, the processor 808 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 808.
The electronic device also includes a power supply 809 (e.g., a battery) for powering the various components, which may be logically connected to the processor 808 through a power management system such that charge, discharge, and power consumption management functions are performed by the power management system. The power supply 809 may also include one or more of any components, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the electronic device may further include a camera, a bluetooth module, etc., which will not be described herein. In particular, in this embodiment, the processor 808 in the electronic device loads executable files corresponding to the processes of one or more application programs into the memory 802 according to the following instructions, and the processor 808 executes the application programs stored in the memory 802, so as to implement various functions as follows:
receiving an order information submitting request sent by a client for a target order, wherein the order information submitting request comprises an order identifier of the target order;
according to the order identification, determining the historical request times corresponding to the target order;
Based on the historical request times, carrying out persistence processing on the order information submitting request to obtain a request message;
if the order processing server corresponding to the target order has calling abnormality, generating simulation response information corresponding to the request message through a preset abnormality processing server;
and sending the simulation response information to the client, and triggering the client to display a successful submitting prompt corresponding to the order information submitting request based on the simulation response information.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present invention provides a computer readable storage medium having stored therein a plurality of instructions capable of being loaded by a processor to perform steps in any of the order information processing methods provided by the embodiments of the present invention. For example, the instructions may perform the steps of:
receiving an order information submitting request sent by a client for a target order, wherein the order information submitting request comprises an order identifier of the target order;
According to the order identification, determining the historical request times corresponding to the target order;
based on the historical request times, carrying out persistence processing on the order information submitting request to obtain a request message;
if the order processing server corresponding to the target order has calling abnormality, generating simulation response information corresponding to the request message through a preset abnormality processing server;
and sending the simulation response information to the client, and triggering the client to display a successful submitting prompt corresponding to the order information submitting request based on the simulation response information.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the computer-readable storage medium may comprise: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Because the instructions stored in the computer readable storage medium can execute the steps in any order information processing method provided by the embodiment of the present invention, the beneficial effects that any order information processing method provided by the embodiment of the present invention can be achieved, and detailed descriptions of the previous embodiments are omitted herein.
According to one aspect of the present application, there is also provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions to cause the electronic device to perform the methods provided in the various alternative implementations of the embodiments described above.
The method, the device, the electronic equipment and the storage medium for processing order information provided by the embodiment of the invention are described in detail, and specific examples are applied to the description of the principle and the implementation mode of the invention, and the description of the above embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present invention, the present description should not be construed as limiting the present invention.
Claims (11)
1. An order information processing method, comprising:
receiving an order information submitting request sent by a client for a target order, wherein the order information submitting request comprises an order identifier of the target order;
According to the order identification, determining the historical request times corresponding to the target order;
based on the historical request times, carrying out persistence processing on the order information submitting request to obtain a request message;
if the order processing server corresponding to the target order has calling abnormality, generating simulation response information corresponding to the request message through a preset abnormality processing server;
and sending the simulation response information to the client, and triggering the client to display a successful submitting prompt corresponding to the order information submitting request based on the simulation response information.
2. The order information processing method according to claim 1, wherein, if the order processing server corresponding to the target order has a call exception, before generating the simulated response information corresponding to the request message by a preset exception processing server, the method further comprises:
determining the storage condition of a history request message of the target order in the exception handling server based on the order identification;
and if the history request message of the target order is stored in the exception handling server, executing the step of storing the request message through a preset exception handling server.
3. The order information processing method according to claim 2, characterized in that the method further comprises:
and if the order processing server corresponding to the target order does not have the calling exception and the history request message of the target order is not stored in the exception processing server, calling the order processing server to process the request message.
4. The order information processing method according to claim 1, wherein the order information submitting request includes an access path of the order processing server, and before the generation of the simulated response information corresponding to the request message by the exception processing server, the method further comprises:
storing the request message in the exception handling server;
after the analog response information is sent to the client, the method further includes:
receiving order completion indication information of the target order;
accessing the access path in the request message through the exception handling server to determine whether the order handling server has a call exception;
and if the order processing server does not have the call abnormality, calling the abnormality processing server and the order processing server to process the historical request message and the request message of the target order, so as to obtain the real response information of the target order.
5. The method for processing order information according to claim 4, wherein said calling said exception handling server and said order handling server to process said history request message and said request message of said target order to obtain real response information of said target order comprises:
invoking the exception handling server to perform simulated invoking based on the historical request message of the target order and the request message to generate a simulated order handling request of the target order;
and sending the simulated order processing request to the order processing server for processing to obtain the real response information of the target order.
6. The order information processing method of claim 4, wherein after accessing the access path in the request message by the exception handling server to determine whether there is a call exception to the order handling server, the method further comprises:
and if the order processing server has the calling abnormality, after a preset time interval, returning to execute the step of accessing the access path in the request message through the abnormality processing server to determine whether the order processing server has the calling abnormality or not until the order processing server does not have the calling abnormality.
7. The order information processing method as claimed in claim 4, wherein said accessing the access path in the request message by the exception handling server to determine whether there is a call exception to the order handling server comprises:
accessing the access path in the request message through the exception handling server, and determining that the order handling server has call exception if the access result accords with a preset access exception condition;
and if the access result does not accord with the access exception condition, determining that the order processing server has no call exception.
8. An order information processing apparatus, comprising:
the system comprises a request receiving unit, a target order and a target order, wherein the request receiving unit is used for receiving an order information submitting request sent by a client side aiming at the target order, and the order information submitting request comprises an order identifier of the target order;
the number determining unit is used for determining the historical request number corresponding to the target order according to the order identification;
the persistence processing unit is used for carrying out persistence processing on the order information submitting request based on the historical request times to obtain a request message;
the information generation unit is used for generating simulation response information corresponding to the request message through a preset exception handling server if the order handling server corresponding to the target order has call exception;
And the simulation response unit is used for sending the simulation response information to the client and triggering the client to display a submission success prompt corresponding to the order information submission request based on the simulation response information.
9. An electronic device comprising a memory and a processor; the memory stores an application program, and the processor is configured to execute the application program in the memory to perform the steps in the order information processing method according to any one of claims 1 to 7.
10. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the order information processing method of any of claims 1 to 7.
11. A computer program product comprising a computer program or instructions which, when executed by a processor, carries out the steps of the order information processing method of any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310370610.XA CN116468517A (en) | 2023-03-28 | 2023-03-28 | Order information processing method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310370610.XA CN116468517A (en) | 2023-03-28 | 2023-03-28 | Order information processing method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116468517A true CN116468517A (en) | 2023-07-21 |
Family
ID=87178301
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310370610.XA Pending CN116468517A (en) | 2023-03-28 | 2023-03-28 | Order information processing method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116468517A (en) |
-
2023
- 2023-03-28 CN CN202310370610.XA patent/CN116468517A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11449955B2 (en) | Information processing method and apparatus | |
US10304461B2 (en) | Remote electronic service requesting and processing method, server, and terminal | |
US11126981B2 (en) | Resource transferring method and apparatus | |
US10956280B2 (en) | Data backup method, electronic device, and storage medium | |
US10762542B2 (en) | Item transfer apparatus, system and method | |
CN111340587B (en) | Virtual commodity management method and related device | |
US20190205976A1 (en) | Account number registration method, apparatus, and system | |
CN112749074B (en) | Test case recommending method and device | |
US10476889B2 (en) | Information interaction method, apparatus and system | |
CN115509770B (en) | Micro-service calling method and device, electronic equipment and readable storage medium | |
CN113852450A (en) | Message push feedback method and device, electronic equipment and storage medium | |
CN116468517A (en) | Order information processing method and device, electronic equipment and storage medium | |
CN112667868B (en) | Data detection method and device | |
CN115373865A (en) | Concurrent thread management method, device, electronic equipment and storage medium | |
CN111475141A (en) | List generation method and device and electronic equipment | |
CN114095585B (en) | Data transmission method, device, storage medium and electronic equipment | |
WO2017166094A1 (en) | Server front-end method | |
CN113627863A (en) | E-commerce platform logistics aggregation method and system, storage medium and electronic equipment | |
CN115471326A (en) | Processing method and device for money allocation, computer equipment and storage medium | |
CN112799857A (en) | Application access method and device | |
CN117473566A (en) | Secret data verification device, system and electronic equipment | |
CN116431664A (en) | Business report display method and device, electronic equipment and storage medium | |
CN116938855A (en) | Cross-application data management method and device, electronic equipment and storage medium | |
CN115576942A (en) | Data processing method, device, equipment and storage medium | |
CN115330206A (en) | Service scale-based order dispatching method and device, computer equipment and storage 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 |