[go: up one dir, main page]

CN117714265A - Request sending method, device, storage medium and electronic equipment - Google Patents

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

Info

Publication number
CN117714265A
CN117714265A CN202311738244.5A CN202311738244A CN117714265A CN 117714265 A CN117714265 A CN 117714265A CN 202311738244 A CN202311738244 A CN 202311738244A CN 117714265 A CN117714265 A CN 117714265A
Authority
CN
China
Prior art keywords
target
request
preset
configuration information
transfer equipment
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
Application number
CN202311738244.5A
Other languages
Chinese (zh)
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.)
China Telecom Bestpay Co Ltd
Original Assignee
China Telecom Bestpay 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 China Telecom Bestpay Co Ltd filed Critical China Telecom Bestpay Co Ltd
Priority to CN202311738244.5A priority Critical patent/CN117714265A/en
Publication of CN117714265A publication Critical patent/CN117714265A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/28Restricting access to network management systems or functions, e.g. using authorisation function to access network configuration

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Storage Device Security (AREA)

Abstract

The application discloses a request sending method, a request sending device, a storage medium and electronic equipment. The method comprises the following steps: acquiring first configuration information of target transfer equipment, and generating a target request according to the first configuration information and an initial password, wherein the initial password is used for verifying whether the target request has a right sent to an access object; the target request is sent to target transfer equipment, and whether target feedback information sent by the target transfer equipment is received within a preset time length is judged; under the condition that the target feedback information is not received within the preset time, modifying the first configuration information in the target request into the second configuration information to obtain an updated target request, and sending the updated target request to the standby transfer equipment to which the second configuration information belongs. Through the method and the device, the problem that equipment cannot be switched timely and conveniently under the condition that the equipment is abnormal in the related art is solved.

Description

Request sending method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of computers, and in particular, to a method and apparatus for sending a request, a storage medium, and an electronic device.
Background
A bank client is a mobile application or computer software developed and provided by a bank that is specific to an enterprise client. It aims to provide one-stop financial services and solutions to meet various needs of enterprise customers. The background of the bank enterprise client is to meet the requirements of enterprise clients on financial services, and provide more convenient, efficient and safe banking service experience. Through the form of mobile application program or computer software, enterprise clients can manage and process financial transactions anytime and anywhere without going to banking sites, thereby saving time and resources.
However, due to the requirement of the bank-enterprise client on configuration, only one client can be operated on each device, and when the device is abnormal, the user cannot be connected with the bank-enterprise client on the abnormal device, so that business can not be conducted with a bank through the bank-enterprise client.
The method adopted at present is that a bank enterprise client is configured in a standby device, and when the current device is abnormal, the device is required to be manually switched, and the device is switched from a main device to the standby device, however, the manual switching process is complicated, and when the device is abnormal, the device cannot be timely switched due to no prompt information, so that the business handling of the user side is affected.
Aiming at the problem that the equipment cannot be switched timely and conveniently under the condition of equipment abnormality in the related technology, no effective solution is proposed at present.
Disclosure of Invention
The application provides a request sending method, a request sending device, a storage medium and electronic equipment, and aims to solve the problem that equipment cannot be switched timely and conveniently under the condition of equipment abnormality in the related technology.
According to one aspect of the present application, a method of sending a request is provided. The method comprises the following steps: acquiring first configuration information of target transfer equipment, and generating a target request according to the first configuration information and an initial password, wherein the initial password is used for verifying whether the target request has a right sent to an access object; the target request is sent to target transfer equipment, and whether target feedback information sent by the target transfer equipment is received within a preset time length is judged; under the condition that the target feedback information is not received within the preset time, modifying the first configuration information in the target request into the second configuration information to obtain an updated target request, and sending the updated target request to the standby transfer equipment to which the second configuration information belongs.
Optionally, before acquiring the first configuration information of the target relay device, the method further includes: configuring a plurality of preset transfer devices, and acquiring storage information of each preset transfer device to obtain a plurality of storage information; the method comprises the steps of obtaining target storage information with the largest number of stored preset passwords from a plurality of storage information, determining preset transfer equipment corresponding to the target storage information as target transfer equipment, and determining configuration information of the target transfer equipment as first configuration information, wherein the preset passwords are used for verifying whether initial passwords in a target request are correct or not.
Optionally, before modifying the first configuration information in the target request to the second configuration information, the method further comprises: judging whether preset transfer devices with the same number as the preset passwords of the target transfer device exist in the plurality of preset transfer devices or not; in the case that the preset relay devices with the same number as the preset passwords of the target relay device exist, determining the preset relay devices with the same number as the preset passwords of the target relay device as standby relay devices, and determining configuration information of the standby relay devices as second configuration information; and if the preset relay devices which are the same as the preset passwords of the target relay devices do not exist, determining any one of the rest preset relay devices as the standby relay device, and determining the configuration information of the standby relay device as the second configuration information.
Optionally, in the case that there are no preset relay devices equal to the preset passwords of the target relay device, the method further includes: acquiring the number of preset passwords in each of the rest transfer devices to obtain a plurality of target numbers; obtaining the maximum number in the target numbers, and judging whether the maximum number is smaller than a preset number; and sending alarm information to the user terminal under the condition that the maximum number is smaller than the preset number, wherein the alarm information represents that all transfer equipment is abnormal.
Optionally, after sending the target request to the target relay device, the method further comprises: and under the condition that the feedback information is received within the preset time period and the feedback information characterizes that the preset password associated with the initial password does not exist in the target transfer equipment, the step of modifying the first configuration information in the target request into the second configuration information is executed, and the updated target request is obtained.
Optionally, after receiving the target request, the target relay device further includes: acquiring an initial password and an access object in a target request through target transfer equipment, and acquiring a preset password of the access object in a database; under the condition that the preset password is the same as the initial password, first feedback information is sent through the target transfer equipment to the user side; and under the condition that the preset password is different from the initial password, sending second feedback information to the user side through the target transfer equipment, wherein the first feedback information represents that the target request is effective, and the second feedback information represents that the target request is ineffective.
Optionally, in the case that the preset password is the same as the initial password, the method further includes: and sending the target request to the access object through the target transfer equipment, receiving third feedback information sent by the access object, and sending the third feedback information to the user side, wherein the third feedback information is an access result of the access object.
According to another aspect of the present application, there is provided a transmitting apparatus of a request. The device comprises: the first acquisition unit is used for acquiring first configuration information of the target transfer equipment and generating a target request according to the first configuration information and an initial password, wherein the initial password is used for verifying whether the target request has a right to be sent to an access object; the first judging unit is used for sending the target request to the target transfer equipment and judging whether target feedback information sent by the target transfer equipment is received within a preset time length; and the modification unit is used for modifying the first configuration information in the target request into the second configuration information under the condition that the target feedback information is not received within the preset time length, obtaining an updated target request, and sending the updated target request to the standby transfer equipment to which the second configuration information belongs.
According to another aspect of the present invention, there is also provided a computer storage medium for storing a program, wherein the program when run controls a device in which the computer storage medium is located to execute a request transmission method.
According to another aspect of the present invention, there is also provided an electronic device comprising one or more processors and a memory; the memory has stored therein computer readable instructions for execution by the processor, wherein the computer readable instructions when executed perform a method of transmitting a request.
Through the application, the following steps are adopted: acquiring first configuration information of target transfer equipment, and generating a target request according to the first configuration information and an initial password, wherein the initial password is used for verifying whether the target request has a right sent to an access object; the target request is sent to target transfer equipment, and whether target feedback information sent by the target transfer equipment is received within a preset time length is judged; under the condition that the target feedback information is not received within the preset time, modifying the first configuration information in the target request into the second configuration information to obtain an updated target request, and sending the updated target request to the standby transfer equipment to which the second configuration information belongs. The problem that the equipment cannot be switched timely and conveniently under the condition of equipment abnormality in the related art is solved. The configuration information of the target transfer equipment is obtained, and the target request is generated according to the configuration information, so that the request can be sent to the target transfer equipment, meanwhile, whether the target transfer equipment sends feedback information or not is monitored, and the condition that the feedback information is not sent is determined, at the moment, the target transfer equipment is directly switched to the standby transfer equipment by modifying the configuration information in the request, further, the purposes of automatically monitoring whether the target transfer equipment is abnormal or not without manual intervention operation and automatically using the standby transfer equipment to process the request under the condition that the abnormality exists are achieved, and the request processing efficiency is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application, illustrate and explain the application and are not to be construed as limiting the application. In the drawings:
FIG. 1 is a flow chart of a method of sending a request provided in accordance with an embodiment of the present application;
fig. 2 is a flowchart of a method for selecting a relay device according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a sending device of a request provided according to an embodiment of the present application;
fig. 4 is a schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the present application described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the method, apparatus, storage medium, and electronic device for sending a request determined in the present disclosure may be used in a computer field, and may also be used in any field other than the computer field, and the application field of the method, apparatus, storage medium, and electronic device for sending a request determined in the present disclosure is not limited.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data need to comply with the relevant regulations and standards, and be provided with corresponding operation entries for the user to select authorization or rejection. For example, an interface is provided between the system and the relevant user or institution, before acquiring the relevant information, the system needs to send an acquisition request to the user or institution through the interface, and acquire the relevant information after receiving the consent information fed back by the user or institution.
According to an embodiment of the application, a request sending method is provided.
Fig. 1 is a flowchart of a method for sending a request provided according to an embodiment of the present application. As shown in fig. 1, the method comprises the steps of:
step S101, first configuration information of target transfer equipment is obtained, and a target request is generated according to the first configuration information and an initial password, wherein the initial password is used for verifying whether the target request has a right sent to an access object.
Specifically, the target transit device may be one device of a plurality of transit devices configured with a bank enterprise client, where configuration information of the device is first configuration information, for example, an IP address and a Port interface of the device. The user side can send the target request to the target transfer equipment through the first configuration information.
Further, the initial password may be used as identity information of the user side, and the relay device may determine whether the user can send the target request to the access object according to the initial password.
Step S102, a target request is sent to target transfer equipment, and whether target feedback information sent by the target transfer equipment is received within a preset time period is judged.
Specifically, after the target request is sent to the target transfer device, the target transfer device sends the target request to the corresponding access object, and sends feedback information to the user terminal according to the sending condition, wherein the feedback information is used for informing whether the target request is successfully sent to the access object.
Further, when the user side does not receive feedback information corresponding to the target request within a preset time, it is characterized that the target transfer device has a fault, so that the target request cannot be sent to the access object, and at this time, it can be determined that the target transfer device has an abnormality, and the standby transfer device needs to be used for sending the target request.
When determining whether the target transfer device is abnormal, because different clients send access requests to the target transfer device, and each client also sends a plurality of access requests, the target transfer device can be determined whether to be abnormal according to the request amount of the feedback information which is not received by the client.
For example, the user side a sends 5 requests to the target relay device in a preset time interval, but receives 0 feedback information, and then indicates that the target relay device is abnormal.
Step S103, under the condition that the target feedback information is not received within the preset time, modifying the first configuration information in the target request into the second configuration information, obtaining an updated target request, and sending the updated target request to the standby transfer equipment to which the second configuration information belongs.
Specifically, under the condition that the target feedback information is not received, the target transfer equipment is characterized that the target transfer equipment is abnormal, the target request cannot be normally sent to the access object, at the moment, the first configuration information in the target request can be modified into the second configuration information, so that the target request is changed from being sent to the target transfer equipment according to the first configuration information to being sent to the standby transfer equipment according to the second configuration information, after the target request is updated, the updated target request is sent to the standby transfer equipment according to the second configuration information, and therefore, the target request can still be sent to the access object under the condition that the target transfer equipment is abnormal, and the access timeliness of the target request is ensured.
According to the request sending method provided by the embodiment of the application, the first configuration information of the target transfer equipment is obtained, and the target request is generated according to the first configuration information and the initial password, wherein the initial password is used for verifying whether the target request has the right to be sent to the access object; the target request is sent to target transfer equipment, and whether target feedback information sent by the target transfer equipment is received within a preset time length is judged; under the condition that the target feedback information is not received within the preset time, modifying the first configuration information in the target request into the second configuration information to obtain an updated target request, and sending the updated target request to the standby transfer equipment to which the second configuration information belongs. The problem that the equipment cannot be switched timely and conveniently under the condition of equipment abnormality in the related art is solved. The configuration information of the target transfer equipment is obtained, and the target request is generated according to the configuration information, so that the request can be sent to the target transfer equipment, meanwhile, whether the target transfer equipment sends feedback information or not is monitored, and the condition that the feedback information is not sent is determined, at the moment, the target transfer equipment is directly switched to the standby transfer equipment by modifying the configuration information in the request, further, the purposes of automatically monitoring whether the target transfer equipment is abnormal or not without manual intervention operation and automatically using the standby transfer equipment to process the request under the condition that the abnormality exists are achieved, and the request processing efficiency is improved.
Optionally, fig. 2 is a flowchart of a relay device selection method provided according to an embodiment of the present application, and as shown in fig. 2, in a method for sending a request provided in an embodiment of the present application, before obtaining first configuration information of a target relay device, the method further includes:
step S201, configuring a plurality of preset transfer devices, and acquiring storage information of each preset transfer device to obtain a plurality of storage information.
Step S202, obtaining target storage information with the largest number of stored preset passwords from a plurality of storage information, determining preset transfer equipment corresponding to the target storage information as target transfer equipment, and determining configuration information of the target transfer equipment as first configuration information, wherein the preset passwords are used for verifying whether initial passwords in a target request are correct or not.
Specifically, before the first configuration information of the target transfer device is obtained, the target transfer device needs to be determined in the plurality of transfer devices, and when the target transfer device is determined, the storage information of the plurality of preset transfer devices needs to be obtained first, so that the target transfer device can be determined according to the preset password number in the storage information.
It should be noted that, because different passwords correspond to different banks, the more the passwords, the more the number of banks that can be docked, so after the storage information of each preset transfer device is obtained, the preset transfer device to which the target storage information with the largest number of preset passwords stored in the storage information belongs can be determined as the target transfer device, and the configuration information, that is, the first configuration information, of the target transfer device can be obtained.
It should be noted that, when the target relay device receives the initial password, it may determine, according to the initial password and the access object, whether the user can send the target request to the access object, for example, the password of the access object is 111, and if the initial password in the target request is 111, it is indicated that the user can send the target request to the access object, and at this time, the target relay device will send the target request to the access object.
It should be noted that, the account information and the initial password of the user may be further determined at the same time, and whether the account information and the initial password correspond to each other or not is determined to be correct, so as to determine whether the target transfer device can send the target request to the access object.
Optionally, in the method for sending a request provided in the embodiment of the present application, before modifying the first configuration information in the target request to the second configuration information, the method further includes: judging whether preset transfer devices with the same number as the preset passwords of the target transfer device exist in the plurality of preset transfer devices or not; in the case that the preset relay devices with the same number as the preset passwords of the target relay device exist, determining the preset relay devices with the same number as the preset passwords of the target relay device as standby relay devices, and determining configuration information of the standby relay devices as second configuration information; and if the preset relay devices which are the same as the preset passwords of the target relay devices do not exist, determining any one of the rest preset relay devices as the standby relay device, and determining the configuration information of the standby relay device as the second configuration information.
Specifically, when the standby transfer equipment is determined, the number of preset passwords of each transfer equipment is determined in the remaining fault-free transfer equipment, and the transfer equipment with the same number of preset passwords as that of the target transfer equipment is determined as the standby transfer equipment, so that the standby transfer equipment and the target transfer equipment can process the most similar request, and the influence of the abnormality of the target transfer equipment on the user is reduced.
Further, under the condition that the preset transfer equipment with the same number as the preset passwords of the target transfer equipment does not exist, the transfer equipment with the larger number of the passwords in the current state cannot be normally used, therefore, any one of the remaining transfer equipment is selected as the standby transfer equipment, and maintenance information is sent to operation and maintenance personnel to inform the operation and maintenance personnel to maintain the target transfer equipment.
Optionally, in the method for sending a request provided in the embodiment of the present application, in a case where there are no preset relay devices that are the same as the preset passwords of the target relay device, the method further includes: acquiring the number of preset passwords in each of the rest transfer devices to obtain a plurality of target numbers; obtaining the maximum number in the target numbers, and judging whether the maximum number is smaller than a preset number; and sending alarm information to the user terminal under the condition that the maximum number is smaller than the preset number, wherein the alarm information represents that all transfer equipment is abnormal.
Specifically, when the remaining relay devices are determined as standby relay devices, since the passwords stored in different devices may be different, a large number of access requests cannot be sent to the access object under the condition that the number of passwords in the remaining relay devices is small, so after the target relay devices are abnormal, the number of passwords in each remaining relay device needs to be determined first, and when the maximum number is smaller than the preset number, alarm information is directly sent to inform a user that the request cannot be executed temporarily, and inform an operation and maintenance personnel to maintain the target relay devices.
It should be noted that, when the maximum number is greater than the preset number, the transfer device with the maximum number of passwords may be determined as a standby transfer device, and when an instruction for returning to the normal state of the target transfer device is received, the target transfer device may be reused to perform the request processing.
Optionally, in the method for sending a request provided in the embodiment of the present application, after sending a target request to a target relay device, the method further includes: and under the condition that the feedback information is received within the preset time period and the feedback information characterizes that the preset password associated with the initial password does not exist in the target transfer equipment, the step of modifying the first configuration information in the target request into the second configuration information is executed, and the updated target request is obtained.
Specifically, when the target transfer device receives the target request, but the target transfer device does not have a preset password related to the initial password of the target request, the target transfer device is characterized in that the target transfer device has no fault, but cannot finish the execution operation of the target request, at this time, feedback information needs to be sent to the user terminal, and the user terminal modifies the first configuration information in the target request into the second configuration information after receiving the feedback information, so that the standby transfer device is used for processing the target request until a certain transfer device can process the target request.
Further, under the condition that all transfer devices cannot process the target request, if the password in the target request is abnormal, the target request cannot be executed, prompt information needs to be sent to the user terminal, and the user is informed of the error password, so that the target request cannot be executed.
Optionally, in the method for sending a request provided in the embodiment of the present application, after receiving the target request, the target relay device further includes: acquiring an initial password and an access object in a target request through target transfer equipment, and acquiring a preset password of the access object in a database; under the condition that the preset password is the same as the initial password, first feedback information is sent through the target transfer equipment to the user side; and under the condition that the preset password is different from the initial password, sending second feedback information to the user side through the target transfer equipment, wherein the first feedback information represents that the target request is effective, and the second feedback information represents that the target request is ineffective.
Specifically, after receiving the target request, the target transfer device acquires an initial password and an access object in the target request, determines a preset password of the access object in the database, and characterizes the identity of the user without error under the condition that the initial password is consistent with the preset password, so that the target request can be sent to the access object, namely, a certain bank, so that the request can be executed by the access object, and simultaneously, sends first feedback information to the user, and informs the user that the target request is successfully sent to the access object through the first feedback information.
Further, under the condition that the initial password is inconsistent with the preset password, the identity of the user is characterized as abnormal, and at the moment, second feedback information is required to be sent to the user side, so that the user side can determine that the target request is successfully sent to the target transfer equipment according to the second feedback information, but the initial password is wrong, the initial password is required to be modified and confirmed, and configuration information in the target request is not required to be updated.
Optionally, in the method for sending a request provided in the embodiment of the present application, when the preset password is the same as the initial password, the method further includes: and sending the target request to the access object through the target transfer equipment, receiving third feedback information sent by the access object, and sending the third feedback information to the user side, wherein the third feedback information is an access result of the access object.
Specifically, under the condition that the initial password is consistent with the preset password, the identity of the user is represented, the target request can be sent to the access object, at the moment, after the access object processes the target request, the processing result is sent to the target transfer device, at the moment, the target transfer device sends the processing result to the user side, and therefore the user side is informed of the access result of the target request.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
The embodiment of the application also provides a request sending device, and it should be noted that the request sending device of the embodiment of the application can be used for executing the request sending method provided by the embodiment of the application. The following describes a request transmitting device provided in the embodiment of the present application.
Fig. 3 is a schematic diagram of a sending device of a request provided according to an embodiment of the present application. As shown in fig. 3, the apparatus includes: a first acquisition unit 31, a first judgment unit 32, a modification unit 33.
The first obtaining unit 31 is configured to obtain first configuration information of the target relay device, and generate a target request according to the first configuration information and an initial password, where the initial password is used to verify whether the target request has a right to send to the access object.
The first judging unit 32 is configured to send the target request to the target relay device, and judge whether target feedback information sent by the target relay device is received within a preset duration.
And the modifying unit 33 is configured to modify the first configuration information in the target request into the second configuration information if the target feedback information is not received within the preset duration, obtain an updated target request, and send the updated target request to the standby relay device to which the second configuration information belongs.
The request sending device provided by the embodiment of the application is used for obtaining the first configuration information of the target transfer device through the first obtaining unit 31, and generating the target request according to the first configuration information and the initial password, wherein the initial password is used for verifying whether the target request has the right to be sent to the access object; a first judging unit 32, configured to send a target request to a target relay device, and judge whether target feedback information sent by the target relay device is received within a preset duration; and the modifying unit 33 is configured to modify the first configuration information in the target request into the second configuration information if the target feedback information is not received within the preset duration, obtain an updated target request, and send the updated target request to the standby relay device to which the second configuration information belongs. The problem that the equipment cannot be switched timely and conveniently under the condition of equipment abnormality in the related art is solved. The configuration information of the target transfer equipment is obtained, and the target request is generated according to the configuration information, so that the request can be sent to the target transfer equipment, meanwhile, whether the target transfer equipment sends feedback information or not is monitored, and the condition that the feedback information is not sent is determined, at the moment, the target transfer equipment is directly switched to the standby transfer equipment by modifying the configuration information in the request, further, the purposes of automatically monitoring whether the target transfer equipment is abnormal or not without manual intervention operation and automatically using the standby transfer equipment to process the request under the condition that the abnormality exists are achieved, and the request processing efficiency is improved.
Optionally, in the request sending apparatus provided in the embodiment of the present application, before obtaining the first configuration information of the target relay device, the apparatus further includes: the configuration unit is used for configuring a plurality of preset transfer devices and acquiring the storage information of each preset transfer device to obtain a plurality of storage information; the first determining unit is used for acquiring target storage information with the largest number of stored preset passwords from the plurality of storage information, determining preset transfer equipment corresponding to the target storage information as target transfer equipment, and determining configuration information of the target transfer equipment as first configuration information, wherein the preset passwords are used for verifying whether initial passwords in a target request are correct or not.
Optionally, in the request sending device provided in the embodiment of the present application, before modifying the first configuration information in the target request to the second configuration information, the device further includes: a second judging unit, configured to judge whether preset relay devices having the same number as the preset passwords of the target relay device exist in the plurality of preset relay devices; a second determining unit configured to determine, in the case where there are preset relay devices having the same number as the preset passwords of the target relay device, the preset relay devices having the same number as the preset passwords of the target relay device as standby relay devices, and determine configuration information of the standby relay devices as second configuration information; and a third determining unit configured to determine, in the absence of preset relay devices having the same number as the preset passwords of the target relay device, any one of the remaining preset relay devices as a standby relay device, and determine configuration information of the standby relay device as second configuration information.
Optionally, in the apparatus for sending a request provided in the embodiment of the present application, in a case where there are no preset relay devices equal to the preset passwords of the target relay device, the apparatus further includes: the second acquisition unit is used for acquiring the number of preset passwords in each of the rest transfer devices to obtain a plurality of target numbers; a third obtaining unit, configured to obtain a maximum number of the target numbers, and determine whether the maximum number is smaller than a preset number; and the first sending unit is used for sending alarm information to the user side under the condition that the maximum number is smaller than the preset number, wherein the alarm information represents that all transfer equipment is abnormal.
Optionally, in the apparatus for sending a request provided in the embodiment of the present application, after sending a target request to a target relay device, the apparatus further includes: and the execution unit is used for receiving the feedback information within the preset time period, and executing the step of modifying the first configuration information in the target request into the second configuration information to obtain the updated target request under the condition that the feedback information characterizes that the preset password associated with the initial password does not exist in the target transfer equipment.
Optionally, in the request sending apparatus provided in the embodiment of the present application, after receiving the target request, the target relay device further includes: a fourth obtaining unit, configured to obtain, by using the target transfer device, an initial password and an access object in the target request, and obtain, in the database, a preset password of the access object; the second sending unit is used for sending the first feedback information through the target transfer equipment when the preset password is the same as the initial password; and the third sending unit is used for sending second feedback information through the target transfer equipment when the preset password is different from the initial password, wherein the first feedback information represents that the target request is valid, and the second feedback information represents that the target request is invalid.
Optionally, in the request sending device provided in the embodiment of the present application, when the preset password is the same as the initial password, the device further includes: and the fourth sending unit is used for sending the target request to the access object through the target transfer equipment, receiving the third feedback information sent by the access object and sending the third feedback information to the user side, wherein the third feedback information is an access result of the access object.
The transmission device of the request includes a processor and a memory, the first acquisition unit 31, the first judgment unit 32, the modification unit 33, and the like are stored as program units in the memory, and the processor executes the program units stored in the memory to realize the corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one kernel, and the problem that the device cannot be switched timely and conveniently under the condition of abnormal device in the related technology is solved by adjusting kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
An embodiment of the present invention provides a computer-readable storage medium having stored thereon a program that, when executed by a processor, implements a method of transmitting the request.
The embodiment of the invention provides a processor which is used for running a program, wherein the program runs to execute the request sending method.
Fig. 4 is a schematic diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 4, an embodiment of the present invention provides an electronic device, where an electronic device 40 includes a processor, a memory, and a program stored on the memory and executable on the processor, and the processor implements the following steps when executing the program: acquiring first configuration information of target transfer equipment, and generating a target request according to the first configuration information and an initial password, wherein the initial password is used for verifying whether the target request has a right sent to an access object; the target request is sent to target transfer equipment, and whether target feedback information sent by the target transfer equipment is received within a preset time length is judged; under the condition that the target feedback information is not received within the preset time, modifying the first configuration information in the target request into the second configuration information to obtain an updated target request, and sending the updated target request to the standby transfer equipment to which the second configuration information belongs. The device herein may be a server, PC, PAD, cell phone, etc.
The present application also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with the method steps of: acquiring first configuration information of target transfer equipment, and generating a target request according to the first configuration information and an initial password, wherein the initial password is used for verifying whether the target request has a right sent to an access object; the target request is sent to target transfer equipment, and whether target feedback information sent by the target transfer equipment is received within a preset time length is judged; under the condition that the target feedback information is not received within the preset time, modifying the first configuration information in the target request into the second configuration information to obtain an updated target request, and sending the updated target request to the standby transfer equipment to which the second configuration information belongs.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (10)

1. A method for sending a request, comprising:
acquiring first configuration information of target transfer equipment, and generating a target request according to the first configuration information and an initial password, wherein the initial password is used for verifying whether the target request has a right to be sent to an access object;
the target request is sent to the target transfer equipment, and whether target feedback information sent by the target transfer equipment is received within a preset time length is judged;
and under the condition that the target feedback information is not received within the preset time period, modifying the first configuration information in the target request into second configuration information to obtain an updated target request, and sending the updated target request to the standby transfer equipment to which the second configuration information belongs.
2. The method of claim 1, wherein prior to obtaining the first configuration information of the target relay device, the method further comprises:
Configuring a plurality of preset transfer devices, and acquiring storage information of each preset transfer device to obtain a plurality of storage information;
the method comprises the steps of obtaining target storage information with the largest number of stored preset passwords from the plurality of storage information, determining preset transfer equipment corresponding to the target storage information as target transfer equipment, and determining configuration information of the target transfer equipment as first configuration information, wherein the preset passwords are used for verifying whether initial passwords in a target request are correct or not.
3. The method of claim 2, wherein prior to modifying the first configuration information in the target request to second configuration information, the method further comprises:
judging whether preset transfer devices with the same number as the preset passwords of the target transfer device exist in the plurality of preset transfer devices or not;
if the preset transfer equipment with the same number as the preset passwords of the target transfer equipment exists, determining the preset transfer equipment with the same number as the preset passwords of the target transfer equipment as standby transfer equipment, and determining configuration information of the standby transfer equipment as the second configuration information;
And if the preset transfer equipment with the same number as the preset passwords of the target transfer equipment does not exist, determining any one of the rest preset transfer equipment as the standby transfer equipment, and determining the configuration information of the standby transfer equipment as the second configuration information.
4. A method according to claim 3, wherein in the absence of a preset relay device of the same number as the preset passwords of the target relay device, the method further comprises:
acquiring the number of preset passwords in each of the rest transfer devices to obtain a plurality of target numbers;
obtaining the maximum number of the target numbers, and judging whether the maximum number is smaller than a preset number;
and sending alarm information to the user side under the condition that the maximum number is smaller than the preset number, wherein the alarm information represents that all transfer equipment is abnormal.
5. The method of claim 1, wherein after sending the target request to the target relay device, the method further comprises:
and executing the step of modifying the first configuration information in the target request to second configuration information under the condition that the feedback information is received within the preset time period and the feedback information characterizes that the preset password associated with the initial password does not exist in the target transfer device, so as to obtain an updated target request.
6. The method of claim 1, wherein the target relay device, after receiving the target request, further comprises:
acquiring an initial password and an access object in the target request through the target transfer equipment, and acquiring a preset password of the access object in a database;
under the condition that the preset password is the same as the initial password, first feedback information is sent to a user side through the target transfer equipment;
and under the condition that the preset password is different from the initial password, sending second feedback information to the user side through the target transfer equipment, wherein the first feedback information represents that the target request is valid, and the second feedback information represents that the target request is invalid.
7. The method of claim 6, wherein in the event that the preset password is the same as the initial password, the method further comprises:
and sending the target request to the access object through the target transfer equipment, receiving third feedback information sent by the access object, and sending the third feedback information to the user side, wherein the third feedback information is an access result of the access object.
8. A transmission apparatus for a request, comprising:
the first acquisition unit is used for acquiring first configuration information of the target transfer equipment and generating a target request according to the first configuration information and an initial password, wherein the initial password is used for verifying whether the target request has a right to be sent to an access object;
the first judging unit is used for sending the target request to the target transfer equipment and judging whether target feedback information sent by the target transfer equipment is received within a preset time length;
the modification unit is configured to modify the first configuration information in the target request into second configuration information if the target feedback information is not received within the preset duration, obtain an updated target request, and send the updated target request to a standby relay device to which the second configuration information belongs.
9. A computer storage medium for storing a program, wherein the program when run controls a device in which the computer storage medium is located to perform the method of sending a request according to any one of claims 1 to 7.
10. An electronic device comprising one or more processors and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of sending a request of any of claims 1-7.
CN202311738244.5A 2023-12-17 2023-12-17 Request sending method, device, storage medium and electronic equipment Pending CN117714265A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311738244.5A CN117714265A (en) 2023-12-17 2023-12-17 Request sending method, device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311738244.5A CN117714265A (en) 2023-12-17 2023-12-17 Request sending method, device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN117714265A true CN117714265A (en) 2024-03-15

Family

ID=90160270

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311738244.5A Pending CN117714265A (en) 2023-12-17 2023-12-17 Request sending method, device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN117714265A (en)

Similar Documents

Publication Publication Date Title
US10785320B2 (en) Managing operation of instances
EP3413255A1 (en) Electronic payment service processing method and device, and electronic payment method and device
CN106656932A (en) Business processing method and device
CN107104923B (en) Account binding and service processing method and device
CN111199379A (en) Examination and approval method, examination and approval device and storage medium of workflow engine
JP2017514218A (en) Running third-party applications
CN107040560B (en) Service processing method and device based on service platform
CN113837732A (en) Internet resource transfer method, account transfer method and device
CN112487402A (en) Multi-tenant login method, equipment and medium based on ERP system
CN113079164A (en) Remote control method and device for bastion machine resources, storage medium and terminal equipment
CN108446172A (en) Data transfer method, apparatus, computer equipment and storage medium
CN110781500A (en) Data wind control system and method
CN106612263B (en) Method and equipment for processing application access request
CN116842298B (en) Data read and write management method, device, storage medium and electronic device
CN117714265A (en) Request sending method, device, storage medium and electronic equipment
CN117093977A (en) User authentication method, system, device, storage medium and electronic equipment
CN105790975A (en) Service processing operation execution method and device
CN116756775A (en) File management method and device, storage medium and electronic equipment
US9210147B1 (en) Method, apparatus and computer program product for assessing risk associated with authentication requests
CN111880946A (en) Local service providing method, device and equipment and storage medium
CN111049671A (en) System integration method and device
CN113742664B (en) Monitoring and auditing method, equipment and system
CN115484149B (en) Network switching method, network switching device, electronic equipment and storage medium
CN116501493A (en) Data processing method and device of business center station and electronic equipment
HK1242070A (en) Method and apparatus for account binding and service processing

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
CB02 Change of applicant information
CB02 Change of applicant information

Country or region after: China

Address after: 100037 No. 31, Fuchengmenwai Street, Xicheng District, Beijing 4th Floor, Room 429D

Applicant after: Tianyi Payment Technology Co.,Ltd.

Address before: 429D, 4th Floor, No. 31 Fuchengmenwai Street, Xicheng District, Beijing

Applicant before: TIANYI ELECTRONIC COMMERCE Co.,Ltd.

Country or region before: China