CN109857575A - Interface call method, device, electronic equipment and storage medium - Google Patents

Interface call method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109857575A
CN109857575A CN201910049481.8A CN201910049481A CN109857575A CN 109857575 A CN109857575 A CN 109857575A CN 201910049481 A CN201910049481 A CN 201910049481A CN 109857575 A CN109857575 A CN 109857575A
Authority
CN
China
Prior art keywords
interface
requests
interface requests
preamble
request
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
CN201910049481.8A
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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201910049481.8A priority Critical patent/CN109857575A/en
Publication of CN109857575A publication Critical patent/CN109857575A/en
Pending legal-status Critical Current

Links

Abstract

This disclosure relates to field of computer technology more particularly to a kind of interface call method and interface calling device, electronic equipment, storage medium.The described method includes: reading current interface request, judge to request identical preamble interface requests with the presence or absence of with the current interface in interface requests queue;Identical preamble interface requests are requested with the current interface if judging to exist in interface requests queue, current interface request conduct is repeated into interface requests and is saved to repetitive requests queue;It establishes the preamble interface requests and repeats the relationship maps of interface requests, in order to the preamble interface requests according to relationship maps Automated generalization and corresponding repetition interface requests.The method that the disclosure provides can reduce terminal pressure to avoid repeating to send multiple same-interface requests.And the interface requests in repetitive requests list can be handled together according to incidence relation.And then realization is to the global administration of interface requests.

Description

Interface call method, device, electronic equipment and storage medium
Technical field
This disclosure relates to field of computer technology more particularly to a kind of interface call method and interface calling device, electricity Sub- equipment, storage medium.
Background technique
User when terminal to server sends service request, when unstable networks or program card immediately, user is often Service request in terminal repetitive operation and is repeatedly sent, such as passes through the control for repeating to click on the page and sends request.To lead It causes client that can initiate multiple identical service requests whithin a period of time, both wastes client traffic, also aggravated client The resources such as memory, the cpu of end application operation consumption, cause power consumption, flow etc. to steeply rise.
It should be noted that information is only used for reinforcing the reason to the background of the disclosure disclosed in above-mentioned background technology part Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
Be designed to provide a kind of interface call method, a kind of interface calling device and a kind of electronics of the disclosure are set Standby, storage medium, and then terminal in the prior art can be solved to a certain extent and repeat to send same-interface in a short time Call request problem.
Other characteristics and advantages of the disclosure will be apparent from by the following detailed description, or partially by the disclosure Practice and acquistion.
According to the first aspect of the embodiments of the present disclosure, a kind of interface call method is provided, which comprises
Read current interface request, judge in interface requests queue with the presence or absence of with the current interface request it is identical before Sequence interface requests;
It, will be described if judging to exist in interface requests queue and requesting identical preamble interface requests with the current interface Current interface request is saved as interface requests are repeated to for storing the repetitive requests queue for not executing corresponding requests operation;
It establishes the preamble interface requests and repeats the relationship maps of interface requests, at according to relationship maps relationship Manage the preamble interface requests and corresponding repetition interface requests.
In a kind of exemplary embodiment of the disclosure, the method also includes:
If judging there is no identical preamble interface requests are requested with the current interface in interface requests queue, by institute It states current interface request and is added to the interface requests queue, to execute corresponding request operation.
In a kind of exemplary embodiment of the disclosure, the method also includes:
If receiving returning the result for the preamble interface requests, described return the result is shared to the repetition interface Request.
In a kind of exemplary embodiment of the disclosure, if described receive returning the result for the preamble interface requests, By it is described return the result share to it is described repeat interface requests include:
The preamble interface requests return the result if it exists, then detecting whether there is in the repetitive requests queue and institute State the associated repetition interface requests of preamble interface requests;
It is described if it exists to repeat interface requests, then being associated with for interface requests and the preamble interface requests is repeated according to described Described return the result is matched to the repetition interface requests by mapping;
The preamble interface requests are sent to client with corresponding return the result of interface requests is repeated.
In a kind of exemplary embodiment of the disclosure, it whether there is in the judgement interface requests queue and currently connect with described The identical preamble interface requests mouthful are requested to include:
The interface identifier for extracting each interface requests in the current interface request and the interface requests queue, according to institute Interface identifier is stated to judge to request identical preamble interface requests with the presence or absence of with the current interface in the interface requests queue.
In a kind of exemplary embodiment of the disclosure, judged to deposit in the interface requests queue according to the interface identifier After requesting identical preamble interface requests with the current interface, the method also includes:
It extracts the current interface and requests required parameter corresponding with preamble interface requests;Respectively by the key assignments of required parameter Dictionary sequence is done, and presses preset rules splicing character string;
Hash processing is carried out to obtain corresponding informative abstract, to judge institute according to the informative abstract to the character string It states current interface request and whether preamble interface requests is identical.
According to the second aspect of an embodiment of the present disclosure, a kind of interface calling device is provided, comprising:
Request checking module, for reading current interface request, judging whether there is in interface requests queue works as with described Front port requests identical preamble interface requests;
Repetitive requests processing, if requesting identical preamble with the current interface for judging to exist in interface requests queue Interface requests, then by the current interface request as repeat interface requests save to be used for store do not execute corresponding requests operation Repetitive requests queue;
Module is established in association, for establishing the preamble interface requests and repeating the relationship maps of interface requests, in order to According to preamble interface requests described in relationship maps Automated generalization and corresponding repetition interface requests.
In a kind of exemplary embodiment of the disclosure, described device further include:
Result-sharing module, if being returned the result for receiving returning the result for the preamble interface requests by described It shares to described and repeats interface requests.
According to the third aspect of the disclosure, a kind of storage medium is provided, is stored thereon with computer program, described program quilt Processor realizes above-mentioned interface call method when executing.
According to the fourth aspect of the disclosure, a kind of electric terminal, comprising:
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to executing any one of the above interface call method.
The technical scheme provided by this disclosed embodiment can include the following benefits:
In a kind of embodiment of the disclosure, above-mentioned interface call method is sent out by establishing repetitive requests queue in judgement When raw multiple identical interface requests, by the addition of duplicate interface requests in the repetitive requests queue, and behaviour is not executed to it Make, to avoid repeating to send multiple same-interface requests, reduces terminal pressure.In addition, by establishing in repetitive requests queue Duplicate interface requests and preamble interface requests between incidence relation so that before treatment sequence interface requests when, Ke Yigen The corresponding repetition interface requests in repetitive requests list are handled together according to incidence relation.And then it realizes and the overall situation of interface requests is managed Reason.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.It should be evident that the accompanying drawings in the following description is only the disclosure Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 schematically shows a kind of schematic diagram of interface call method in disclosure exemplary embodiment;
Fig. 2 schematically shows a kind of schematic diagram of interface call method in disclosure exemplary embodiment;
Fig. 3 schematically shows a kind of composition schematic diagram of interface calling device in disclosure exemplary embodiment;
Fig. 4 schematically shows a kind of another schematic diagram of interface calling device in disclosure exemplary embodiment;
Fig. 5 schematically shows a kind of schematic diagram of the program product of interface call method in disclosure exemplary embodiment.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the disclosure will more Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.Described feature, knot Structure or characteristic can be incorporated in any suitable manner in one or more embodiments.
In addition, attached drawing is only the schematic illustrations of the disclosure, it is not necessarily drawn to scale.Identical attached drawing mark in figure Note indicates same or similar part, thus will omit repetition thereof.Some block diagrams shown in the drawings are function Energy entity, not necessarily must be corresponding with physically or logically independent entity.These function can be realized using software form Energy entity, or these functional entitys are realized in one or more hardware modules or integrated circuit, or at heterogeneous networks and/or place These functional entitys are realized in reason device device and/or microcontroller device.
User is when using terminal equipment accesses internet, such as browses webpage or use shopping software, carry out network trip When play, if in the case of unstable networks, can have user and be repeated as many times refreshing webpage in a short time, or repeat to click the page Element triggers the case where identical request.Terminal device can initiate multiple identical requests at this time, both waste client traffic, Also the resources such as memory, the cpu of client application operation consumption have been aggravated, power consumption, flow etc. is caused sharply to be promoted.
In addition, being usually directed to multiple developers in client development process and participating in exploitation, some general is connect Mouth request often causes because of human factor logical in the repetition transmission of many places code for example, pulling global page configuration of app etc. With request, the resources such as memory, cpu cause power consumption, flow etc. sharply to be promoted.
A kind of interface call method is provided firstly in this example embodiment, it is above-mentioned existing in the prior art to solve Interface requests repeat the problem of sending.With reference to shown in Fig. 1, this method be may comprise steps of:
Step S11 reads current interface request, and judges to whether there is in interface requests queue and ask with the current interface Seek identical preamble interface requests;
Step S12 requests identical preamble interface requests with the current interface if judging to exist in interface requests queue, Current interface request conduct is then repeated interface requests to save to repetitive requests queue;
Step S13 establishes the preamble interface requests and repeats the relationship maps of interface requests, in order to be reflected according to association Penetrate preamble interface requests described in Automated generalization and corresponding repetition interface requests.
Above-mentioned interface call method, on the one hand, by establishing repetitive requests queue, multiple identical connect occurs in judgement When mouth request, duplicate interface requests can be added in the repetitive requests queue, and it is not handled, to keep away Exempt to repeat to send multiple same-interface requests, reduces terminal pressure.On the other hand, the repetition by establishing in repetitive requests queue Interface requests and preamble interface requests between incidence relation so that before treatment sequence interface requests when, can be according to association Relationship handles together the interface requests in repetitive requests list.And then realization is to the global administration of interface requests.
In the following, each step of the reference accompanying drawings and embodiments to the above method in this example embodiment is carried out more detailed Thin explanation.
Step S11 reads current interface request, judges to request in interface requests queue with the presence or absence of with the current interface Identical preamble interface requests.
In this example embodiment, for user terminal, when user browses webpage, or use application on the client When program triggers interface requests, interface requests queue can be read, judges to whether there is in interface requests queue and currently connect Mouth requests identical preamble interface requests.
When judging whether interface requests are identical, can once be judged according to interface identifier.Specifically, it can wrap It includes:
Step S111 extracts the interface mark of each interface requests in the current interface request and the interface requests queue Know, with according to the interface identifier judge in the interface requests queue with the presence or absence of with the current interface request it is identical before Sequence interface requests.
When judging whether interface requests are identical, the current interface request and the interface requests queue can be extracted In each interface requests interface identifier, with according to the interface identifier judge in the interface requests queue with the presence or absence of with it is described Current interface requests identical preamble interface requests.For example, above-mentioned interface identifier can be the address url or interface ID etc. Mark data.
For example, user when browsing shopping website, clicks the corresponding title control of a basketball shoes commodity in the page, it is desirable to When opening the detailed page of the commodity, by input equipment, corresponding control is clicked in the page, can send at this time Interface requests.The first time interface requests can be added in request queue by terminal.If being used since network speed is slow Second and third continuous secondary click occurs again in a short time for family, just generates corresponding multiple interface requests at this time.Terminal is obtaining When second, third interface requests, it can be judged according to its corresponding interface identifier in interface requests queue with the presence or absence of needle To the preamble interface requests of same-interface.
Further, in order to which more accurately judgement is that current interface requests multiple interface requests of whether attaching most importance to, to interface When request is judged, after being judged according to interface identifier and obtaining current interface request and corresponding preamble interface requests, on The method stated can also include:
Step S112 extracts the current interface and requests required parameter corresponding with preamble interface requests;It respectively will request The key assignments of parameter does dictionary sequence, and presses preset rules splicing character string;
Step S113 carries out Hash processing to obtain corresponding informative abstract, according to the information to the character string Abstract judges whether the current interface request and preamble interface requests are identical.
In this example embodiment, is being judged according to interface identifier and obtaining current interface request and corresponding preamble interface After request, can also further it be judged using specific interface parameters.For example, it can extract and currently ask respectively The preamble interface requests corresponding interface parameter asked and identified, such as timestamp, check code, the address URL and agreement etc. are specific Parameter.For the interface parameters of extraction, it can use hash algorithm (SHA algorithm) and dictionary row done to the key of interface required parameter Sequence, then the interface parameters after sequence is spliced into UTF8 character string.Then SHA256 informative abstract is carried out to UTF8 character string again, Generate the corresponding interface message abstract of interface requests.If the interface message abstract of two interface requests is consistent, then it is assumed that connect twice Mouth request is identical.The accurate judgement requested same-interface is realized in turn.
By judging whether interface requests are identical using clip Text, guarantee system is without storing a large amount of network request ginseng Number, and only need the abstract of an occupancy 256bit can determine whether it is multiple request whether to be same request, further reduced and be System consumption, has saved electric energy, EMS memory occupation.
Certainly, in other exemplary embodiments of the disclosure, current interface request and interface can also directly be extracted The interface parameters of each interface requests in request queue, and the interface summary info of each interface requests is calculated, to be plucked according to interface Information is wanted directly to compare and judge.
Step S12 requests identical preamble interface requests with the current interface if judging to exist in interface requests queue, Then by the current interface request as repeat interface requests save to be used for store do not execute corresponding requests operate repetition ask Ask queue.
In this example embodiment, a repetitive requests list can be preset, the request set in the list does not execute Corresponding request operation.Judge current interface request there are when preamble interface requests, then show current interface request for due to Repetitive requests caused by user's operation or other reasons.The current interface can be requested to be added to repetitive requests queue at this time In.And it does not handle it to current interface request.So that it is guaranteed that identical request, which will not be repeated, is added to interface requests team In column, and then identical request is made not to be repeated as many times as required transmission.And then realize reduction client application running memory, cpu etc. The consumption of resource.
In addition, during identifying interface requests, if there are simultaneous multiple identical interfaces for identification client Request, then can be randomly selected an interface requests as preamble interface requests, add it to interface requests queue;Simultaneously by it His interface requests are added in repetitive requests queue, and establish the preamble interface requests and repetitive requests team in interface requests queue The incidence relation between other interface requests queues in column.
Step S13 establishes the relationship maps of the current interface request and the preamble interface requests.
It may include that multiple further interfaces of preamble interface requests are asked in repetitive requests queue in this example embodiment It asks.Therefore, after current interface request is added to repetitive requests queue, preamble interface requests and repetitive requests can be established The incidence relation between multiple requests in queue.To realize the global administration to interface requests.
Based on above content, refering to what is shown in Fig. 2, above-mentioned method can also include:
Step S14 shares described return the result to described if receiving returning the result for the preamble interface requests Current interface request.
In this example embodiment, specifically, above-mentioned step S14 may include:
Step S141, the preamble interface requests return the result if it exists, then to detect in the repetitive requests queue be It is no to there are repetition interface requests associated with the preamble interface requests;
Step S142, it is described if it exists to repeat interface requests, then interface requests and the preamble interface are repeated according to described Described return the result is matched to the repetition interface requests by the relationship maps of request.
When terminal receives the corresponding feedback result of the preamble interface requests in interface requests queue, can read The incidence relation of the preamble interface requests judges whether there is corresponding repetition interface requests.If the preamble interface requests exist It is corresponding to repeat interface requests, then the feedback result can be shared to its corresponding multiple repetitive requests.So that repetitive requests Although the interface requests in queue will not be sent, the also already truthful data of available server end response.It realizes to visitor Family end network request carries out effective global administration.
Based on above content, in book example embodiment, above-mentioned method can also include:
Step S15, if judging, there is no request identical preamble interface to be asked with the current interface in interface requests queue It asks, then current interface request is added to the interface requests queue, to execute corresponding request operation.
In above-mentioned method, if after identifying current interface, judging to be not present in interface requests queue and currently connect Mouth requests identical request, then can request be added in interface requests list by current interface, normally to handle current interface Request.
In conclusion the above method in this illustrative embodiment, when user triggers interface requests, first to current Interface requests are identified and judgeed in interface requests queue with the presence or absence of repetitive requests.And judge current interface request deposit In preamble interface requests, then current interface request is added in repetitive requests queue, and established and preamble interface requests Incidence relation.To not send to current interface request, the flow and memory consumption of terminal device are reduced.Meanwhile Can reduce server needed for make corresponding, reduce the traffic pressure of server.In addition, when terminal receives interface requests Feedback data when, can first to repeating judge in request queue with the presence or absence of with the interface requests of incidence relation, and It is when reading associated repetition interface requests, feedback result is shared.To which the duplicate interface requests that make can also be with Obtain the truthful data of server end response.And then realization is to the global administration of client network requests.In addition it is also possible to avoid The problem of due to application program itself, the caused transmission interface that repeats was requested.
It should be noted that although describing each step of method in the disclosure in the accompanying drawings with particular order, This does not require that or implies must execute these steps in this particular order, or have to carry out step shown in whole Just it is able to achieve desired result.Additional or alternative, it is convenient to omit multiple steps are merged into a step and held by certain steps Row, and/or a step is decomposed into execution of multiple steps etc..In addition, being also easy to understand, these steps be can be Such as it is either synchronously or asynchronously executed in multiple module/process/threads.
Further, in this example embodiment, a kind of interface calling device 30 is additionally provided.With reference to shown in Fig. 3, dress Setting 30 may include: that module 303 is established in request checking module 301, repetitive requests processing module 302 and association.Wherein:
The request checking module 301 can be used for reading current interface request, judge whether deposit in interface requests queue Identical preamble interface requests are being requested with the current interface.
If the repetitive requests processing module 302 can be used for judging exist and the current interface in interface requests queue Request identical preamble interface requests, then by the current interface request as repeat interface requests save to be used for store do not hold The repetitive requests queue of row corresponding requests operation.
It is described association establish module 303 can be used for establishing the preamble interface requests with repeatedly being associated with for interface requests reflect It penetrates, in order to the preamble interface requests according to relationship maps Automated generalization and corresponding repetition interface requests.
In a kind of exemplary embodiment of the disclosure, above-mentioned device 30 can also include: result-sharing module (in figure It is not shown).
If the result-sharing module can be used for receiving returning the result for the preamble interface requests, returned described It returns result-sharing and repeats interface requests to described.
In a kind of exemplary embodiment of the disclosure, above-mentioned device 30 can also include: interface identifier authentication module (not shown).
The interface identifier authentication module can be used for extracting in the current interface request and the interface requests queue The interface identifier of each interface requests is worked as with judging to whether there is in the interface requests queue according to the interface identifier with described Front port requests identical preamble interface requests.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
It should be noted that although being referred to several modules or list for acting the equipment executed in the above detailed description Member, but this division is not enforceable.In fact, according to embodiment of the present disclosure, it is above-described two or more Module or the feature and function of unit can embody in a module or unit.Conversely, an above-described mould The feature and function of block or unit can be to be embodied by multiple modules or unit with further division.As module or list The component of member display may or may not be physical unit, it can and it is in one place, or may be distributed over In multiple network units.It can select some or all of the modules therein according to the actual needs to realize the open scheme of wood Purpose.Those of ordinary skill in the art can understand and implement without creative efforts.
In an exemplary embodiment of the disclosure, a kind of electronic equipment of interface call method is additionally provided.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or Program product.Therefore, various aspects of the invention can be embodied in the following forms, it may be assumed that complete hardware embodiment, complete The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here Referred to as circuit, " module " or " system ".
The electronic equipment 600 of this embodiment according to the present invention is described referring to Fig. 4.The electronics that Fig. 4 is shown Equipment 600 is only an example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in figure 4, electronic equipment 600 is showed in the form of universal computing device.The component of electronic equipment 600 can wrap It includes but is not limited to: at least one above-mentioned processing unit 610, at least one above-mentioned storage unit 620, the different system components of connection The bus 630 of (including storage unit 620 and processing unit 610).
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 610 Row, so that various according to the present invention described in the execution of the processing unit 610 above-mentioned " illustrative methods " part of this specification The step of illustrative embodiments.For example, the processing unit 610 can execute step S11 as shown in fig. 1, reading is worked as Front port request judges to request identical preamble interface requests with the presence or absence of with the current interface in interface requests queue;Step Rapid S12 requests identical preamble interface requests with the current interface if judging to exist in interface requests queue, works as by described in Front port request is saved as interface requests are repeated to for storing the repetitive requests queue for not executing corresponding requests operation;Step S13 establishes the preamble interface requests and repeats the relationship maps of interface requests, in order to according to relationship maps Automated generalization institute State preamble interface requests and corresponding repetition interface requests.
Storage unit 620 may include the readable medium of volatile memory cell form, such as Random Access Storage Unit (RAM) 6201 and/or cache memory unit 6202, it can further include read-only memory unit (ROM) 6203.
Storage unit 620 can also include program/utility with one group of (at least one) program module 6205 6204, such program module 6205 includes but is not limited to: operating system, one or more application program, other program moulds It may include the realization of network environment in block and program data, each of these examples or certain combination.
Bus 630 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures Local bus.
Electronic equipment 600 can also be with one or more external equipments 700 (such as keyboard, sensing equipment, bluetooth equipment Deng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 600 communicate, and/or with make Any equipment (such as the router, modulation /demodulation that the electronic equipment 600 can be communicated with one or more of the other calculating equipment Device etc.) communication.This communication can be carried out by input/output (I/O) interface 650.Also, electronic equipment 600 can be with By network adapter 660 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, Such as internet) communication.As shown, network adapter 660 is communicated by bus 630 with other modules of electronic equipment 600. It should be understood that although not shown in the drawings, other hardware and/or software module can not used in conjunction with electronic equipment 600, including but not Be limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and Data backup storage system etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server, terminal installation or network equipment etc.) is executed according to disclosure embodiment Method.
In an exemplary embodiment of the disclosure, a kind of computer readable storage medium is additionally provided, energy is stored thereon with Enough realize the program product of this specification above method.In some possible embodiments, various aspects of the invention may be used also In the form of being embodied as a kind of program product comprising program code, when described program product is run on the terminal device, institute Program code is stated for executing the terminal device described in above-mentioned " illustrative methods " part of this specification according to this hair The step of bright various illustrative embodiments.
Refering to what is shown in Fig. 5, describing the program product for realizing the above method of embodiment according to the present invention 500, can using portable compact disc read only memory (CD-ROM) and including program code, and can in terminal device, Such as it is run on PC.However, program product of the invention is without being limited thereto, in this document, readable storage medium storing program for executing can be with To be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or It is in connection.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive List) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal, Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executing Matter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and its The program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, have Line, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages Code, described program design language include object oriented program language-Java, C++ etc., further include conventional Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network (WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP To be connected by internet).
In addition, above-mentioned attached drawing is only the schematic theory of processing included by method according to an exemplary embodiment of the present invention It is bright, rather than limit purpose.It can be readily appreciated that the time that above-mentioned processing shown in the drawings did not indicated or limited these processing is suitable Sequence.In addition, be also easy to understand, these processing, which can be, for example either synchronously or asynchronously to be executed in multiple modules.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by appended Claim is pointed out.

Claims (10)

1. a kind of interface call method, which is characterized in that including
Current interface request is read, judges to request identical preamble to connect with the presence or absence of with the current interface in interface requests queue Mouth request;
It, will be described current if judging to exist in interface requests queue and requesting identical preamble interface requests with the current interface Interface requests are saved as interface requests are repeated to for storing the repetitive requests queue for not executing corresponding requests operation;
It establishes the preamble interface requests and repeats the relationship maps of interface requests, in order to according to relationship maps Automated generalization institute State preamble interface requests and corresponding repetition interface requests.
2. the method according to claim 1, wherein the method also includes:
If judging to work as by described in interface requests queue there is no identical preamble interface requests are requested with the current interface Front port request is added to the interface requests queue, to execute corresponding request operation.
3. the method according to claim 1, wherein the method also includes:
If receiving returning the result for the preamble interface requests, by it is described return the result share to it is described repeat interface ask It asks.
4. if according to the method described in claim 3, the it is characterized in that, return knot for receiving the preamble interface requests Fruit, then by it is described return the result share to it is described repeat interface requests include:
The preamble interface requests return the result if it exists, then detect in the repetitive requests queue with the presence or absence of with it is described before Sequence interface requests are associated to repeat interface requests;
It is described if it exists to repeat interface requests, then according to the relationship maps for repeating interface requests and the preamble interface requests Described return the result is matched to the repetition interface requests.
5. the method according to claim 1, wherein in the judgement interface requests queue with the presence or absence of with it is described Current interface requests the identical preamble interface requests to include:
The interface identifier of each interface requests in the current interface request and the interface requests queue is extracted, to connect according to Mouth mark judges to request identical preamble interface requests with the presence or absence of with the current interface in the interface requests queue.
6. according to the method described in claim 5, it is characterized in that, judging the interface requests team according to the interface identifier Exist after requesting identical preamble interface requests with the current interface in column, the method also includes:
It extracts the current interface and requests required parameter corresponding with preamble interface requests;The key assignments of required parameter is done into word respectively Allusion quotation sequence, and press preset rules splicing character string;
Hash processing is carried out to obtain corresponding informative abstract, to work as according to informative abstract judgement to the character string Whether front port request and preamble interface requests are identical.
7. a kind of interface calling device characterized by comprising
Request checking module, for reading current interface request, judging whether there is in interface requests queue currently connects with described Mouth requests identical preamble interface requests;
Repetitive requests processing module, if requesting identical preamble with the current interface for judging to exist in interface requests queue Interface requests, then by the current interface request as repeat interface requests save to be used for store do not execute corresponding requests operation Repetitive requests queue;
Module is established in association, for establishing the preamble interface requests and repeating the relationship maps of interface requests, in order to basis Preamble interface requests described in relationship maps Automated generalization and corresponding repetition interface requests.
8. device according to claim 7, which is characterized in that described device further include:
Result-sharing module, if for receiving returning the result for the preamble interface requests, by it is described return the result it is shared Interface requests are repeated to described.
9. a kind of storage medium, which is characterized in that the storage medium is stored with computer program, and the computer program can be by Processor, which executes, completes interface call method described in any one of claim 1 to 6.
10. a kind of electric terminal characterized by comprising
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to perform claim requires interface call method described in 1-6 any one.
CN201910049481.8A 2019-01-18 2019-01-18 Interface call method, device, electronic equipment and storage medium Pending CN109857575A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910049481.8A CN109857575A (en) 2019-01-18 2019-01-18 Interface call method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910049481.8A CN109857575A (en) 2019-01-18 2019-01-18 Interface call method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109857575A true CN109857575A (en) 2019-06-07

Family

ID=66895144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910049481.8A Pending CN109857575A (en) 2019-01-18 2019-01-18 Interface call method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109857575A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110262885A (en) * 2019-06-20 2019-09-20 北京奇艺世纪科技有限公司 A kind of data request processing method, apparatus, storage medium and computer equipment
CN110543348A (en) * 2019-09-06 2019-12-06 北京奇艺世纪科技有限公司 instruction processing method, system, electronic equipment and storage medium
CN111158661A (en) * 2019-12-11 2020-05-15 中国平安财产保险股份有限公司 System interface docking method, device, medium and electronic equipment
CN111913765A (en) * 2020-08-17 2020-11-10 中消云(北京)物联网科技研究院有限公司 Data request processing method
CN113608893A (en) * 2021-07-23 2021-11-05 苏州浪潮智能科技有限公司 Method, system, terminal and storage medium for preventing repeated issuing of strategy to RabbitMQ

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110262885A (en) * 2019-06-20 2019-09-20 北京奇艺世纪科技有限公司 A kind of data request processing method, apparatus, storage medium and computer equipment
CN110543348A (en) * 2019-09-06 2019-12-06 北京奇艺世纪科技有限公司 instruction processing method, system, electronic equipment and storage medium
CN110543348B (en) * 2019-09-06 2023-03-24 北京奇艺世纪科技有限公司 Instruction processing method, system, electronic equipment and storage medium
CN111158661A (en) * 2019-12-11 2020-05-15 中国平安财产保险股份有限公司 System interface docking method, device, medium and electronic equipment
CN111913765A (en) * 2020-08-17 2020-11-10 中消云(北京)物联网科技研究院有限公司 Data request processing method
CN113608893A (en) * 2021-07-23 2021-11-05 苏州浪潮智能科技有限公司 Method, system, terminal and storage medium for preventing repeated issuing of strategy to RabbitMQ
CN113608893B (en) * 2021-07-23 2023-08-25 苏州浪潮智能科技有限公司 Method, system, terminal and storage medium for preventing repeated issuing strategy to RabbitMQ

Similar Documents

Publication Publication Date Title
CN109857575A (en) Interface call method, device, electronic equipment and storage medium
US11651250B2 (en) Automatically generated conversation output
CN107863108B (en) Information output method and device
CN110083455B (en) Graph calculation processing method, graph calculation processing device, graph calculation processing medium and electronic equipment
US20210329079A1 (en) Methods, devices and computer-readable storage media for processing a hosted application
CN109936621B (en) Information security multi-page message pushing method, device, equipment and storage medium
CN110728455B (en) Service processing method, service processing device, storage medium and electronic equipment
US10372737B2 (en) Automatic identification of retraining data in a classifier-based dialogue system
CN109922132A (en) Method, apparatus, electronic equipment and the storage medium of form request processing
CN112528179B (en) Two-dimensional code processing method, system, electronic equipment and storage medium
CN109495549B (en) Method, equipment and computer storage medium for application pull alive
US20150169152A1 (en) Automatically recovering and maintaining focus
CN110795181A (en) Application program interface display method and device based on skip protocol and electronic equipment
US20220245208A1 (en) Method for switching skin of mini-program page, and electronic device
CN109284450A (en) Order is at the determination method and device of single path, storage medium, electronic equipment
CN111611514A (en) Page display method and device based on user login information and electronic equipment
US20160070902A1 (en) Smart captchas
CN113961836A (en) Page jump method and device, electronic equipment and storage medium
US10776411B2 (en) Systematic browsing of automated conversation exchange program knowledge bases
KR102151322B1 (en) Information push method and device
CN116661936A (en) Page data processing method and device, computer equipment and storage medium
CN109144864B (en) Method and device for testing window
CN112131092A (en) Page debugging method and device
CN110321129A (en) Business based on developing instrument executes method, apparatus and computer equipment
US20190163830A1 (en) Customer service advocacy on social networking sites using natural language query response from site-level search results

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
CB02 Change of applicant information

Address after: 201, room 518000, building A, No. 1, front Bay Road, Qianhai Shenzhen Guangdong Shenzhen Hong Kong cooperation zone (Qianhai business secretary)

Applicant after: Shenzhen one ledger Intelligent Technology Co., Ltd.

Address before: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A

Applicant before: Shenzhen one ledger Intelligent Technology Co., Ltd.

CB02 Change of applicant information
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination