CN109872146A - Third party's interface call method and system based on two dimension code reading device - Google Patents

Third party's interface call method and system based on two dimension code reading device Download PDF

Info

Publication number
CN109872146A
CN109872146A CN201910121819.6A CN201910121819A CN109872146A CN 109872146 A CN109872146 A CN 109872146A CN 201910121819 A CN201910121819 A CN 201910121819A CN 109872146 A CN109872146 A CN 109872146A
Authority
CN
China
Prior art keywords
interface
code reading
reading device
dimension code
calling
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
CN201910121819.6A
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.)
Beijing Inspiry Technology Co Ltd
Original Assignee
Beijing Inspiry Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Inspiry Technology Co Ltd filed Critical Beijing Inspiry Technology Co Ltd
Priority to CN201910121819.6A priority Critical patent/CN109872146A/en
Publication of CN109872146A publication Critical patent/CN109872146A/en
Pending legal-status Critical Current

Links

Landscapes

  • Cash Registers Or Receiving Machines (AREA)

Abstract

Present disclose provides a kind of third party's interface call method based on two dimension code reading device parses the interface type for including in calling interface instruction;It is obtained from preset interface call list and calls sublist with the consistent target interface of interface type;The server identification of sublist acquisition target interface parameter and destination server is called according to target interface;According to server identification, transaction payment request of data is sent to destination server;Judge whether target interface meets calling and require according to the corresponding waiting queuing data of target interface that message includes is replied;If meeting calling to require, the call request of target interface is generated, and charging and transactional operation are completed according to transaction payment module.The method increase accuracys and high efficiency that third party's interface calling is realized by two dimension code reading device, and the safety for subsequent transaction payment and applicability provide stable technical support.The disclosure additionally provides a kind of third party's interface calling system based on two dimension code reading device.

Description

Third party's interface call method and system based on two dimension code reading device
Technical field
This disclosure relates to which field of communication technology, connects in particular to a kind of third party based on two dimension code reading device Mouth call method and system.
Background technique
In the prior art, how accurately mobile payment science and technology has multiple payment channels, efficiently by calling payment interface It completes payment transaction and becomes urgent problem to be solved.
Summary of the invention
The technical issues of in order to solve in the prior art, the embodiment of the present disclosure provide a kind of based on two dimension code reading device Third party's interface call method and system, if receiving the calling interface instruction inputted by two dimension code reading device, parsing The interface type for including in calling interface instruction out;It is obtained and the consistent target interface of interface type from preset interface call list Sublist is called, preset interface call list includes that multiple interfaces sorted out according to interface type call sublist, each interface tune It include multiple interface parameters for being provided with priority orders with sublist;Sublist is called to obtain target interface parameter according to target interface And the server identification of destination server;According to server identification, transaction payment request of data is sent to destination server, is handed over Easy payment data request includes the generation timestamp at moment and the connecing for target interface for describing transaction payment request of data Mouth type and interface name, so that destination server judges whether to return according to timestamp replies message;If receiving destination service The answer message that device returns then judges that target interface is according to the corresponding waiting queuing data of target interface that answer message includes The no calling that meets requires;It is required if target interface meets calling, the call request of target interface is generated, by the tune of target interface It is sent to destination server, and the transaction payment module of invocation target interface with request, charging is completed according to transaction payment module With transactional operation.The accuracy and high efficiency that third party's interface calling is realized by two dimension code reading device are improved as a result, And stable technical support is provided for the safety of subsequent transaction payment.
In a first aspect, the embodiment of the present disclosure provides a kind of third party's interface called side based on two dimension code reading device Method, comprising the following steps: if receiving the calling interface instruction inputted by two dimension code reading device, parse the calling and connect The interface type for including in mouth instruction;It obtains from preset interface call list and is called with the consistent target interface of the interface type Sublist, the preset interface call list include that multiple interfaces sorted out according to the interface type call sublist, Mei Yisuo Stating interface and calling sublist includes multiple interface parameters for being provided with priority orders;Sublist is called to obtain according to the target interface The server identification of target interface parameter and destination server;According to the server identification, Xiang Suoshu destination server hair Easy payment data request is delivered, the transaction payment request of data includes the generation for describing the transaction payment request of data The interface type of the timestamp at moment and the target interface and interface name, so that the destination server is according to the time Stamp, which judges whether to return, replies message;If receiving the answer message that the destination server returns, answered according to The corresponding waiting queuing data of the target interface that multiple message includes judges whether the target interface meets calling and require;If The target interface meets calling and requires, then generates the call request of target interface, and the call request of the target interface is sent out It send to the destination server, and calls the transaction payment module of the target interface, completed according to the transaction payment module Charging and transactional operation.
One embodiment is a kind of wherein, further includes: is suitable for taking the photograph for bar code reading to the configuration for being laid in multiple scenes As the two dimension code reading device of head, two-sided asynchronous liquid crystal display panel and the control system based on central processing unit carries out group Net, and to the two dimension code reading device for the support and input equipment and printing equipment synergistic application for being laid in multiple scenes, The electric terminal and the server cluster three for controlling the two dimension code reading device are attached, wherein support and institute The two dimension code reading device for stating input equipment and the printing equipment synergistic application includes that at least one knows suitable for bar code The camera of reading, the light that at least one described camera for being suitable for bar code reading is used for 360 ° of full angles of real-time perception become Change, will pass through the variation operation that the central processing unit triggering liquid crystal display completes display content.
One embodiment is a kind of wherein, and the described pair of support for being laid in multiple scenes and input equipment and printing equipment are assisted With the two dimension code reading device of application, the control two dimension code reading roll electric terminal and the server set It includes: to be taken at least one the described two dimension code reading device for being laid in multiple scenes and cloud by WIFI that group three, which is attached, Business device cluster is attached;It by least one the described two dimension code reading device for being laid in multiple scenes and is controlled by bluetooth connection The electric terminal for making the two dimension code reading device is attached.
One embodiment is a kind of wherein, and the waiting queuing data includes the corresponding waiting team of the target interface The maximum of transaction payment associated by call request and the receiving time of each call request in column;It is described according to It replies the corresponding waiting queuing data of the target interface that message includes and judges whether the target interface meets calling and require, Including;If the maximum of transaction payment associated by call request is not more than the first default transaction payment volume in the waiting queue, Then determine that the target interface meets calling and requires.
One embodiment is a kind of wherein, further includes: if transaction payment associated by call request in the waiting queue Maximum is greater than the described first default transaction payment volume and less than the second default transaction payment volume, then is asked according to each calling The receiving time asked calculates transaction payment volume associated by the corresponding call request of multiple unit time periods, generates the unit time The corresponding relationship of section and transaction payment volume associated by call request, it is default that the first default transaction payment volume is less than described second Transaction payment volume.
One embodiment is a kind of wherein, further includes: passes through linear regression model (LRM): when Y (n)=aX (n)+b fitting is default Between transaction payment volume associated by unit interval and call request in section corresponding relationship, and institute is calculated according to least square method The linear regression coeffficient of equation of linear regression is stated, the Y (n) is that n-th of unit interval is corresponding in the preset time period Transaction payment volume associated by call request, the X (n) are n-th of unit interval in the preset time period, and a is institute Linear regression coeffficient is stated, the b is error coefficient;If the linear regression coeffficient is non-positive number, the target interface is determined Meet calling to require.
One embodiment is a kind of wherein, further includes: storage meets the institute called and required in the two dimension code reading device State the current called number of target interface.
Second aspect, the embodiment of the present disclosure provide a kind of computer readable storage medium, are stored thereon with computer journey The step of sequence, which realizes above-mentioned method when being executed by processor.
The third aspect, the embodiment of the present disclosure provide a kind of computer equipment, including memory, processor and are stored in On reservoir and the computer program that can run on a processor, the processor realize above-mentioned method when executing described program Step.
Fourth aspect, the embodiment of the present disclosure provide a kind of third party's interface calling system based on two dimension code reading device System, the system comprises: parsing module, if for receiving the calling interface instruction inputted by two dimension code reading device, solution The interface type for including in the calling interface instruction is precipitated;First obtains module, for obtaining from preset interface call list Sublist is called with the consistent target interface of the interface type, the preset interface call list includes multiple according to the interface class The interface that type is sorted out calls sublist, and it includes multiple interface ginsengs for being provided with priority orders that each interface, which calls sublist, Number;Second obtains module, for calling sublist to obtain target interface parameter and destination server according to the target interface Server identification;Sending module, for according to the server identification, Xiang Suoshu destination server to send transaction payment data and asks Ask, the transaction payment request of data include for describe the transaction payment request of data generation the moment timestamp and The interface type and interface name of the target interface are answered so that the destination server judges whether to return according to the timestamp Multiple message;Judgment module, if the answer message returned for receiving the destination server, is reported according to the answer The corresponding waiting queuing data of the target interface that text includes judges whether the target interface meets calling and require;Call mould Block requires if meeting calling for the target interface, the call request of target interface is generated, by the tune of the target interface It is sent to the destination server with request, and calls the transaction payment module of the target interface, according to the transaction payment Module completes charging and transactional operation.
A kind of third party's interface call method and system based on two dimension code reading device provided by the invention, if receiving The calling interface instruction inputted by two dimension code reading device, parses the interface type for including in calling interface instruction;From pre- Sublist is called with the consistent target interface of interface type if obtaining in interface call list, preset interface call list includes multiple bases The interface that interface type is sorted out calls sublist, and it includes multiple interfaces for being provided with priority orders that each interface, which calls sublist, Parameter;The server identification of sublist acquisition target interface parameter and destination server is called according to target interface;According to service Device mark sends transaction payment request of data to destination server, and transaction payment request of data includes for describing transaction payment Request of data generation the moment timestamp and target interface interface type and interface name so that destination server according to when Between stamp judge whether return reply message;If receiving the answer message of destination server return, include according to message is replied The corresponding waiting queuing data of target interface judge target interface whether meet calling require;It is wanted if target interface meets calling It asks, then generates the call request of target interface, the call request of target interface is sent to destination server, and invocation target connects The transaction payment module of mouth completes charging and transactional operation according to transaction payment module.The method increase known by two dimensional code Read apparatus realizes the accuracy and high efficiency of third party's interface calling, and is the safety and applicability of subsequent transaction payment Provide stable technical support.
Detailed description of the invention
In order to illustrate more clearly of the technical solution of the embodiment of the present disclosure, below to needed in embodiment description Attached drawing is briefly described:
Fig. 1 is third party interface call method of one of the one embodiment of the invention based on two dimension code reading device Steps flow chart schematic diagram;
Fig. 2 is third party interface calling system of one of the one embodiment of the invention based on two dimension code reading device Structural schematic diagram.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, by the following examples, it and combines attached Figure carries out a kind of specific embodiment of third party's interface call method and system based on two dimension code reading device of the present invention It is further described.It should be appreciated that described herein, specific examples are only used to explain the present invention, is not used to limit this Invention.
As shown in Figure 1, for third party interface call method of one of the one embodiment based on two dimension code reading device Flow diagram, specifically includes the following steps:
Step 101, it if receiving the calling interface instruction inputted by two dimension code reading device, parses calling interface and refers to The interface type for including in order.
It should be noted that before the interface type for including in parsing calling interface instruction further include: to being laid in The configuration of multiple scenes is suitable for the camera, two-sided asynchronous liquid crystal display panel and the control based on central processing unit of bar code reading The two dimension code reading device of system processed carries out networking, and assists to the support and input equipment that are laid in multiple scenes and printing equipment It is carried out with the two dimension code reading device of application, the electric terminal of control two dimension code reading device and the server cluster three Connection, wherein support that with the two dimension code reading device of input equipment and printing equipment synergistic application include that at least one is suitable for The camera of bar code reading, at least one is suitable for light of the camera of bar code reading for 360 ° of full angles of real-time perception and becomes Change, will pass through the variation operation that central processing unit triggering liquid crystal display completes display content.Specifically, to multiple scenes are laid in Support and the two dimension code reading device of input equipment and printing equipment synergistic application, control two dimension code reading roll electronics It includes: to be known at least one two dimensional code for being laid in multiple scenes by WIFI that terminal and server cluster three, which are attached, Read apparatus is attached with cloud server cluster;At least one two dimension code reading of multiple scenes will be laid in by bluetooth connection The electric terminal of device and control two dimension code reading device is attached.Further, it is also possible to will be laid in by wired connection more At least one two dimension code reading device of a scene and the electric terminal of control two dimension code reading device are attached.It mentions as a result, The diversity and multi-selection of Gao Liao networking arrangement.
It should be noted that the camera for being suitable for being not limited to bar code reading, which can perceive front, bar code or two dimensional code When, display content is removed, display screen is become into transparent glass convenient for recognition.The intelligence of two dimension code reading device is enhanced as a result, Property and ease for use.In addition, can also be distinguished while screen display content by being handled based on preset algorithm in central processing unit Bar code or QR code content.The diversity and flexibility that two dimension code reading device uses are improved as a result,.
In addition it is also necessary to explanation, two-sided asynchronous liquid crystal display panel includes: first substrate and is respectively arranged at first The first liquid crystal display and the second liquid crystal display of substrate two sides, the first liquid crystal display include close to first substrate The first electrode layer of one side surface and the liquid crystal layer being successively set in first electrode layer, the second electrode lay and the second substrate;The Two liquid crystal displays include the third electrode layer of close another side surface of first substrate and are successively set on third electrode layer Bistable liquid crystal layer, the 4th electrode layer, third substrate and backlight module.Specifically, first electrode layer and third electrode layer tool There is phase equipotential.First substrate is equipped at least one via hole for running through first substrate, and first electrode layer and third electrode layer are logical Via hole forms electrical connection.Flexible drive circuit board, first electrode layer and the are equipped between first electrode layer and third electrode layer Three electrode layers are electrically connected with the formation of flexible drive circuit board respectively.Electric field is null field between third electrode layer and the 4th electrode layer When, the second liquid crystal cells realize reflection display under ambient;There are when electric field between third electrode layer and the 4th electrode layer, Pellucidity is presented in second liquid crystal cells.There are when electric field between third electrode layer and the 4th electrode layer, the second liquid crystal cells are in Show pellucidity, the light in backlight module passes through the second liquid crystal display and first substrate, and the first liquid crystal display will Light is as backlight.It include the first tft array layer in first electrode layer or the second electrode lay;Third electrode layer or the 4th electrode It include the second tft array layer in layer.The second substrate is equipped with the first polaroid, the second substrate and the second electricity far from the side of liquid crystal layer Color membrane substrates are additionally provided between the layer of pole;The is equipped between third substrate and backlight module or between first substrate and first electrode layer Two polaroids.By the setting of two-sided asynchronous liquid crystal display panel, effectively improves and paid for mobile payment device Ease for use and high experience property.
It will be appreciated by persons skilled in the art that the control system based on central processing unit mainly incudes mould by barcode scanning Block, backlight module, supplementary lighting module, image capture module, decoder module, main control module composition.Specifically, barcode scanning induction module position In two dimension code reading device, i.e., above barcode scanning box, the barcode scanning movement of user can be perceived, this perception information is transmitted to master control mould Block, i.e. main control chip are handled.After main control chip receives user's barcode scanning signal, control transparence display window is closed all aobvious Show content, transparence display window becomes to complete transparent glass, and image in 2 D code information is allowed to complete across transparency display window Mouth is imaged.Induction module includes but is not limited to one of following several forms or multiple combinations mode: infrared distance perception Answer module;Ultrasonic distance induction module;Light sensing module;Electromagnetic field inducing module.In addition it is also necessary to which explanation, sweeps Also reusable image capture module carries out operation realization to code induction module, monitors mobile variation or light by image capture module Variation, perception barcode scanning movement.Further, transparence display window can show according to the instruction that main control module transmits and mention accordingly Show guidance information, all displays are closed in the instruction that can also be transmitted according to main control module, are become transparent glass window, are allowed two dimensional code Image light in image capture module normal through being imaged.Transparent liquid crystal display, example can be selected in transparence display window Such as transparent TN-LCD, transparent TFT-LCD, transparent OLED display screen, transparent PDP display screen plasma display.
Further, it should be noted that backlight module passes through light guide plate, light using white led lamps as light source The modes such as bowl form uniform white light, obtain clearly as the backlight of transparent video screen, while also as barcode scanning light filling Clear image in 2 D code information.Supplementary lighting module is located at transparence display with image capture module positioned at the top of transparent display screen The two sides of optical window.When distinguishing papery bar code, clearly bar code image information can be obtained as fill-in light photograph.Image capture module The image information in front of equipment can be obtained, collected image in 2 D code information is transmitted to decoder module.Decoder module is to obtaining The image in 2 D code information taken carries out image procossing, and carries out two dimensional code decoding according to decoding algorithm, and decoding result is transmitted to Main control module.Main control module realizes operation, the control of each functional module of equipment.In addition, the use based on two dimension code reading device Before barcode scanning, scanning guidance information, amount of money prompt information or other ad contents are shown on device transparency display window.Work as barcode scanning It when induction module perceives barcode scanning payment movement, closes window and shows information, become fully transparent barcode scanning recognition optical window, image Acquisition module obtains the two-dimensional barcode information in front by transparent optical window, and decoder module obtains image in 2 D code information and is decoded, After completing decoding, transparence display window shows the contents such as result information, advertising information.Subsequent equipment is recycled into next barcode scanning Logic.The diversity and flexibility of the application of two dimension code reading device are increased as a result,.
In addition it is also necessary to explanation, the structure of two dimension code reading device can also be to be configured with LCD screen and leaded light The spine two dimension code reading device of the shared windows of plate form, and including barcode scanning lamp bowl.Specifically, LCD screen and light guide plate The shared windows of form specifically include shared windows main body;Fixed window is provided in main body;Fixed window includes right-angled intersection The fisrt feature window and second feature window of setting;At least one is provided on fisrt feature window and second feature window Fixed device.Fixed device includes grab and card slot;Grab and card slot are separately positioned on fisrt feature window or second feature window The opposite sides of mouth is fixed after capable of being blocked LCD screen or light guide plate form by card slot by grab.In addition, Fixed device includes the grab being arranged in pairs, and each pair of grab is separately positioned on the opposite of fisrt feature window or second feature window Two sides.Grab includes being fixedly connected with portion and clamping portion;Portion is fixedly connected with to be fixedly connected with shared windows main body;Clamping portion fixation is set It sets in the side for being fixedly connected with portion.Clamping portion is provided with slide-in inclined-plane far from the side of main body, can facilitate light guide plate form or The entrance of LCD screen.Clamping portion is close to shared windows, the i.e. side of the side of tabula rasa form or LCD screen main body and fixation Interconnecting piece is vertical.Being fixedly connected with portion is elastic material.On different grabs, the distance between clamping portion and shared windows main body are no Together.Fisrt feature window and the coaxial arrangement of second feature window.It further include third feature window;Third feature window is respectively with One characteristic window is connected to second feature window intersection;It is provided at least one on third feature window and fixes device.
In addition it is also necessary to which explanation, supports the two dimension code reading device with input equipment and printing equipment synergistic application In input equipment be with the input keyboard of desktop computer cooperating or the input keyboard of PC all-in-one machine or have computing function with Assist the digital function keyboard of delivery operation function.Printing equipment is printer, is specifically included: paper feeding entrance is arranged and prints Mouthful body, be provided with thermal printing module in body, it is low to be provided at least one between paper feeding entrance and thermal printing module Warm cooling chamber, thermal printing module and printing outlet between by transmission mechanism be connected in turn overlay film module, be cold-pressed module, Cut module.Specifically, at least one sub-cooled chamber is used to reduce paper surface temperature using cold air;Thermal printing module For printing to paper, printed paper transport is given to overlay film module;Overlay film module is for receiving thermal printing module The paper of transmission, and by paper overlay film, give paper transport coated with film to cold pressing module;Cold pressing module is for receiving overlay film module The paper of transmission is cold-pressed paper on overlay film surface, and gives the paper sheet delivery after cold pressing to cutting module;Module is cut to use In the paper for receiving cold pressing module transfer, paper is cut by specification, and give the paper transport after the completion of cutting to printing outlet.This Outside, sub-cooled chamber is additionally provided between thermal printing module and overlay film module.In addition, being additionally provided on body interconnected Display module, controller, thermal printing module, cold pressing module, cut module and connect with controller and by work overlay film module Working condition is transferred to display module to controller, controller by state transfer.
Step 102, it is obtained from preset interface call list and calls sublist with the consistent target interface of interface type, it is default to connect Mouth call list includes that multiple interfaces sorted out according to interface type call sublist, and it includes multiple set that each interface, which calls sublist, It is equipped with the interface parameters of priority orders.
Step 103, the server mark of sublist acquisition target interface parameter and destination server is called according to target interface Know.
It is understood that include but is not limited to target interface parameter according to the information that target interface calls sublist to obtain, Further include simultaneously the first called side code key, is verifying the first called side code key and be in advance the second of the configuration of two dimension code reading device When called side code key is consistent and interface call instruction characterize data is called, the pre-configured first interface based on target interface Authorization field judges whether to push the data that destination server generates to two dimension code reading device.It should be noted that being based on The pre-configured first interface authorization field of target interface judges whether to push destination server to two dimension code reading device Before the data of generation further include: the first interface authorization message that destination server is directed to target interface input is obtained, by first Interface authorization message is filled into the interface authorization field of target interface, and first interface authorization field is formed.
In addition, it should be noted that, and interface consistent with the second called side code key in the first called side code key of verifying calls When instruction characterization interface authorization, the second interface authorization message that two dimension code reading device is directed to target interface input is obtained, by the Two interface authorization messages are filled into interface authorization field, and second interface authorization field is formed, and are based on second interface authorization field Judge whether to push the data that two dimension code reading device generates to other two dimension code reading devices, other two dimension code reading devices are pre- First the interface call instruction that characterize data is called is initiated to target interface.
In addition, also needing to further illustrate, first interface authorization field includes data queue's password, is based on target interface Pre-configured first interface authorization field judge whether to two dimension code reading device push destination server generate number According to including: at least to verify password that two dimension code reading device is sent and when data queue's password match, filled to two dimension code reading Set the data that push destination server generates.In addition, first interface authorization field includes access address limitation, it is based on target interface Pre-configured first interface authorization field judge whether to two dimension code reading device push destination server generate number According to include: at least verify two dimension code reading device IP address be not access address limitation in limited IP address when, to Two dimension code reading device pushes the data that destination server generates.In addition, first interface authorization field includes the call number upper limit And/or can call the period, the pre-configured first interface authorization field based on target interface judges whether to know to two dimensional code The data that read apparatus push destination server generates include: the calling time at least in verifying two dimension code reading device to target interface Number is less than the call number upper limit and/or current calling moment positioned at when can call in the period, pushes mesh to two dimension code reading device Mark the data that server generates.In addition, first interface authorization field includes authorised channel mark, matching in advance based on target interface The first interface authorization field set judge whether to two dimension code reading device push destination server generate data include: to Few gap marker in the channel that verifying two dimension code reading device is called is included in authorised channel mark, to two dimension code reading Device pushes the data that destination server generates.
Step 104, according to server identification, transaction payment request of data, transaction payment data are sent to destination server It requests the interface type comprising timestamp and target interface for describing the generation moment of transaction payment request of data and connects Mouth name, so that destination server judges whether to return according to timestamp replies message.
Step 105, if receiving the answer message that destination server returns, the target interface for including according to answer message Corresponding waiting queuing data judges whether target interface meets calling and require.
Specifically, waiting queuing data includes transaction payment associated by call request in the corresponding waiting queue of target interface Maximum and each call request receiving time;The corresponding waiting number of queues of target interface for including according to message is replied It is required it is judged that whether target interface meets calling, including;If waiting the maximum of transaction payment associated by call request in queue Volume is not more than the first default transaction payment volume, then determines that target interface meets calling and requires.
In addition, a kind of third party's interface call method based on two dimension code reading device that the disclosure proposes further include: if The maximum for waiting transaction payment associated by call request in queue is greater than the first default transaction payment volume and presets less than second Transaction payment volume calculates the corresponding call request institute of multiple unit time periods then according to the receiving time of each call request Connected transaction amount paid generates the corresponding relationship of transaction payment volume associated by unit interval and call request, the first default friendship Easy amount paid, which is less than, states the second default transaction payment volume.Further, one kind that the disclosure proposes is based on two dimension code reading device Third party's interface call method further include: pass through linear regression model (LRM): the list in Y (n)=aX (n)+b fitting preset time period The corresponding relationship of transaction payment volume associated by position period and call request, and equation of linear regression is calculated according to least square method Linear regression coeffficient, Y (n) is transaction payment associated by the corresponding call request of n-th of unit interval in preset time period Volume, X (n) are n-th of unit interval in preset time period, and a is linear regression coeffficient, and b is error coefficient;If linear regression system Number is non-positive number, then determines that target interface meets calling and requires.
Step 106, if target interface meets calling and requires, the call request of target interface is generated, by target interface Call request is sent to destination server, and the transaction payment module of invocation target interface, completes to count according to transaction payment module Take and transactional operation.
It should be noted that the call request for generating target interface includes: to obtain the realization class parameter of target interface, In, realize that class parameter is used to determine the specific realization class in target interface, by the interface type of target interface, interface name And the parameter of the realization class of target interface is packaged by preset algorithm, generates character string.Wherein, preset algorithm is write Values As String.The character string encryption generated by preset secret key pair, generates encrypted characters string, creation one A set, sets encryption word string for the default property value of set, sets code key for the key value of set, and set is converted For call request.
In addition, a kind of third party's interface call method based on two dimension code reading device that the disclosure proposes further include: two Storage meets the current called number for calling desired target interface in dimension code reading device.Further, it is to be appreciated that two Third party's interface currently called number can also be shown by tieing up on the transparent screen of code reading device.
A kind of third party's interface call method based on two dimension code reading device provided by the invention, if receiving by two The calling interface instruction for tieing up the input of code reading device, parses the interface type for including in calling interface instruction;From preset interface It is obtained in call list and calls sublist with the consistent target interface of interface type, preset interface call list includes multiple according to interface class The interface that type is sorted out calls sublist, and it includes multiple interface parameters for being provided with priority orders that each interface, which calls sublist,; The server identification of sublist acquisition target interface parameter and destination server is called according to target interface;According to server mark Know, sends transaction payment request of data to destination server, transaction payment request of data includes for describing transaction payment data The timestamp at generation moment and the interface type of target interface and interface name of request, so that destination server is according to timestamp Judge whether to return and replies message;If receiving the answer message that destination server returns, the mesh for including according to answer message The corresponding waiting queuing data of tag splice mouth judges whether target interface meets calling and require;It is required if target interface meets calling, The call request of target interface is sent to destination server, and invocation target interface by the call request for then generating target interface Transaction payment module, charging and transactional operation are completed according to transaction payment module.The method increase pass through two dimension code reading Device realizes the accuracy and high efficiency of third party's interface calling, and mentions for the safety of subsequent transaction payment with applicability Stable technical support is supplied.
Based on the same inventive concept, a kind of third party's interface calling system based on two dimension code reading device is additionally provided. Since the principle that this system solves the problems, such as is similar to a kind of aforementioned third party's interface call method based on two dimension code reading device, Therefore, the implementation of the system can realize that overlaps will not be repeated according to the specific steps of preceding method.
As shown in Fig. 2, for third party interface calling system of one of the one embodiment based on two dimension code reading device Structural schematic diagram.Third party's interface calling system 10 based on two dimension code reading device includes: parsing module 100, first It obtains module 200, second and obtains module 300, sending module 400, judgment module 500 and calling module 600.
Wherein, if parsing module 100 is used to receive the calling interface instruction inputted by two dimension code reading device, parsing The interface type for including in calling interface instruction out;First acquisition module 200 is for obtaining and connecing from preset interface call list The consistent target interface of mouth type calls sublist, and preset interface call list includes multiple interfaces sorted out according to interface type Sublist is called, it includes multiple interface parameters for being provided with priority orders that each interface, which calls sublist,;Second, which obtains module 300, uses In the server identification for calling sublist acquisition target interface parameter and destination server according to target interface;Sending module 400 For sending transaction payment request of data to destination server, transaction payment request of data includes to be used for according to server identification The timestamp at the generation moment of transaction payment request of data and the interface type of target interface and interface name are described, so that target Server judges whether to return according to timestamp replies message;If judgment module 500 is used to receive destination server return Message is replied, then judges whether target interface meets tune according to the corresponding waiting queuing data of target interface that answer message includes With requiring;It is required if calling module 600 meets calling for target interface, the call request of target interface is generated, by target The call request of interface is sent to destination server, and the transaction payment module of invocation target interface, according to transaction payment module Complete charging and transactional operation.
A kind of third party's interface call method based on two dimension code reading device provided by the invention passes through parsing mould first If block to receive the calling interface instruction inputted by two dimension code reading device, parses in calling interface instruction and include Interface type;It is obtained from preset interface call list by the first acquisition module and is called with the consistent target interface of interface type again Sublist, preset interface call list include that multiple interfaces sorted out according to interface type call sublist, and each interface calls son Table includes multiple interface parameters for being provided with priority orders;Sublist is called to obtain according to target interface by the second acquisition module again Take the server identification of target interface parameter and destination server;By sending module according to server identification, taken to target Business device sends transaction payment request of data, when transaction payment request of data includes the generation for describing transaction payment request of data The timestamp at quarter and the interface type of target interface and interface name, so that destination server judges whether to return according to timestamp Reply message;If making the answer message for receiving destination server return by judgment module, include according to message is replied The corresponding waiting queuing data of target interface judge target interface whether meet calling require;Make eventually by calling module It is required if target interface meets calling, generates the call request of target interface, the call request of target interface is sent to mesh Server, and the transaction payment module of invocation target interface are marked, charging and transactional operation are completed according to transaction payment module.This is System improves the accuracy and high efficiency that third party's interface calling is realized by two dimension code reading device, and is subsequent transaction The safety of payment and applicability provide stable technical support.
The embodiment of the invention also provides a kind of computer readable storage medium, stored on the computer readable storage medium There is computer program, which is executed by processor in Fig. 1.The embodiment of the invention also provides a kind of computers comprising instruction Program product.When the computer program product is run on computers, so that the method that computer executes above-mentioned Fig. 1.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..The embodiments described above only express several embodiments of the present invention, and description is more specific and detailed Carefully, but it cannot be understood as limitations on the scope of the patent of the present invention.It should be pointed out that for the common skill of this field For art personnel, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to this hair Bright protection scope.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.For the mesh of example and description Have been presented for above description.This description is not intended to for embodiment of the disclosure to be restricted to form disclosed herein.Although with On discussed multiple exemplary aspects and embodiment, but those skilled in the art will appreciate that its certain modification, modify, change Change, addition and sub-portfolio.

Claims (10)

1. a kind of third party's interface call method based on two dimension code reading device, which comprises the following steps:
If receiving the calling interface instruction inputted by two dimension code reading device, parses in the calling interface instruction and include Interface type;
It is obtained from preset interface call list and calls sublist, the preset interface tune with the consistent target interface of the interface type It include that multiple interfaces sorted out according to the interface type call sublist with table, it includes more that each interface, which calls sublist, A interface parameters for being provided with priority orders;
The server identification of sublist acquisition target interface parameter and destination server is called according to the target interface;
According to the server identification, Xiang Suoshu destination server sends transaction payment request of data, the transaction payment data The interface of timestamp of the request comprising the generation moment for describing the transaction payment request of data and the target interface Type and interface name, so that the destination server judges whether to return according to the timestamp replies message;
If receiving the answer message that the destination server returns, according to the target for replying message and including The corresponding waiting queuing data of interface judges whether the target interface meets calling and require;
It is required if the target interface meets calling, the call request of target interface is generated, by the calling of the target interface Request is sent to the destination server, and calls the transaction payment module of the target interface, according to the transaction payment mould Block completes charging and transactional operation.
2. third party's interface call method according to claim 1 based on two dimension code reading device, which is characterized in that also It include: that the camera of bar code reading, two-sided asynchronous liquid crystal display panel are suitable for the configuration for being laid in multiple scenes and are based on The two dimension code reading device of the control system of central processing unit carries out networking, and to be laid in the supports of multiple scenes with it is defeated Enter the two dimension code reading device of equipment and printing equipment synergistic application, the electric terminal of the control two dimension code reading device And the server cluster three is attached, wherein supports and the input equipment and the printing equipment synergistic application The two dimension code reading device include at least one be suitable for bar code reading camera, it is described at least one be suitable for bar code Light of the camera of recognition for 360 ° of full angles of real-time perception changes, will pass through the central processing unit triggering liquid crystal display Complete the variation operation of display content.
3. third party's interface call method according to claim 2 based on two dimension code reading device, which is characterized in that institute State the two dimension code reading device to the support and input equipment and printing equipment synergistic application that are laid in multiple scenes, control The two dimension code reading roll electric terminal and the server cluster three to be attached include: by WIFI by cloth At least one the described two dimension code reading device for being located at multiple scenes is attached with cloud server cluster;
By at least one the described two dimension code reading device for being laid in multiple scenes and the two dimensional code is controlled by bluetooth connection The electric terminal of reading device is attached.
4. third party's interface call method according to claim 1 based on two dimension code reading device, which is characterized in that institute Stating waiting queuing data includes that transaction payment associated by call request is most in the corresponding waiting queue of the target interface Wholesale and the receiving time of each call request;
The corresponding waiting queuing data of the target interface for including according to the answer message judges the target interface Whether meet calling to require, including;
If the maximum of transaction payment associated by call request is not more than the first default transaction payment volume in the waiting queue, Determine that the target interface meets calling and requires.
5. third party's interface call method according to claim 4 based on two dimension code reading device, which is characterized in that also If including: the maximum of transaction payment associated by call request in the waiting queue greater than the described first default transaction payment volume And it is each to calculate multiple unit time periods then according to the receiving time of each call request less than the second default transaction payment volume Transaction payment volume associated by self-corresponding call request generates pair of transaction payment volume associated by unit interval and call request It should be related to, the first default transaction payment volume is less than the described second default transaction payment volume.
6. third party's interface call method according to claim 5 based on two dimension code reading device, which is characterized in that also Include: to pass through linear regression model (LRM): the unit interval in Y (n)=aX (n)+b fitting preset time period is closed with call request Join the corresponding relationship of transaction payment volume, and calculates the linear regression coeffficient of the equation of linear regression, institute according to least square method Stating Y (n) is transaction payment volume associated by the corresponding call request of n-th of unit interval, the X in the preset time period It (n) is n-th of unit interval in the preset time period, a is the linear regression coeffficient, and the b is error coefficient;
If the linear regression coeffficient is non-positive number, determine that the target interface meets calling and requires.
7. third party's interface call method according to claim 1 based on two dimension code reading device, which is characterized in that also It include: the current called number that storage meets the target interface for calling requirement in the two dimension code reading device.
8. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor The step of any one of claim 1-7 the method is realized when row.
9. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, which is characterized in that the processor realizes side described in any one of described claim 1-7 when executing described program The step of method.
10. a kind of third party's interface calling system based on two dimension code reading device, which is characterized in that the system comprises:
Parsing module, if parsing the calling for receiving the calling interface instruction inputted by two dimension code reading device The interface type for including in interface instruction;
First obtains module, calls son with the consistent target interface of the interface type for obtaining from preset interface call list Table, the preset interface call list includes that multiple interfaces sorted out according to the interface type call sublist, each described It includes multiple interface parameters for being provided with priority orders that interface, which calls sublist,;
Second obtains module, for calling sublist to obtain target interface parameter and destination server according to the target interface Server identification;
Sending module, for according to the server identification, Xiang Suoshu destination server to send transaction payment request of data, described Transaction payment request of data includes the timestamp and the mesh for describing the generation moment of the transaction payment request of data The interface type and interface name of tag splice mouth, so that the destination server judges whether to return according to the timestamp replies report Text;
Judgment module, if the answer message returned for receiving the destination server, according to the answer message The corresponding waiting queuing data of the target interface for including judges whether the target interface meets calling and require;
Calling module requires if meeting calling for the target interface, the call request of target interface is generated, by the mesh The call request of tag splice mouth is sent to the destination server, and calls the transaction payment module of the target interface, according to institute It states transaction payment module and completes charging and transactional operation.
CN201910121819.6A 2019-02-17 2019-02-17 Third party's interface call method and system based on two dimension code reading device Pending CN109872146A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910121819.6A CN109872146A (en) 2019-02-17 2019-02-17 Third party's interface call method and system based on two dimension code reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910121819.6A CN109872146A (en) 2019-02-17 2019-02-17 Third party's interface call method and system based on two dimension code reading device

Publications (1)

Publication Number Publication Date
CN109872146A true CN109872146A (en) 2019-06-11

Family

ID=66918767

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910121819.6A Pending CN109872146A (en) 2019-02-17 2019-02-17 Third party's interface call method and system based on two dimension code reading device

Country Status (1)

Country Link
CN (1) CN109872146A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110298421A (en) * 2019-06-26 2019-10-01 云宝宝大数据产业发展有限责任公司 A kind of online generation, offline generation and the verification method and device of two dimensional code
CN117853108A (en) * 2024-03-05 2024-04-09 湖南星富通科技有限公司 Multichannel payment method, system and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6327629B1 (en) * 1996-05-31 2001-12-04 International Business Machines Corporation Stored procedure universal calling interface
CN106529935A (en) * 2016-11-21 2017-03-22 航天信息股份有限公司 WeChat payment method and system
CN109034317A (en) * 2018-08-28 2018-12-18 努比亚技术有限公司 A kind of two-dimensional code scanning method, terminal and computer readable storage medium
CN109189509A (en) * 2018-09-03 2019-01-11 中国平安人寿保险股份有限公司 The response method and server that call method, the interface of interface call
CN109240838A (en) * 2018-09-20 2019-01-18 深圳市牛鼎丰科技有限公司 Interface call method, device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6327629B1 (en) * 1996-05-31 2001-12-04 International Business Machines Corporation Stored procedure universal calling interface
CN106529935A (en) * 2016-11-21 2017-03-22 航天信息股份有限公司 WeChat payment method and system
CN109034317A (en) * 2018-08-28 2018-12-18 努比亚技术有限公司 A kind of two-dimensional code scanning method, terminal and computer readable storage medium
CN109189509A (en) * 2018-09-03 2019-01-11 中国平安人寿保险股份有限公司 The response method and server that call method, the interface of interface call
CN109240838A (en) * 2018-09-20 2019-01-18 深圳市牛鼎丰科技有限公司 Interface call method, device, computer equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110298421A (en) * 2019-06-26 2019-10-01 云宝宝大数据产业发展有限责任公司 A kind of online generation, offline generation and the verification method and device of two dimensional code
CN110298421B (en) * 2019-06-26 2023-11-03 云宝宝大数据产业发展有限责任公司 Online generation, offline generation and verification method and device for two-dimensional code
CN117853108A (en) * 2024-03-05 2024-04-09 湖南星富通科技有限公司 Multichannel payment method, system and storage medium

Similar Documents

Publication Publication Date Title
US10212244B2 (en) Information push method, server, user terminal and system
CN108537629B (en) A kind of the generation system and generation method of custom card
US20210311686A1 (en) Electronic board, system and control method for controlling electronic board
CN105591885A (en) Resource sharing method and device
CN109872146A (en) Third party's interface call method and system based on two dimension code reading device
CN109753834A (en) Performance test methods and device based on two dimension code reading device
CN105809840B (en) The self-service processing equipment of material, the system and method being applicable in
CN108828816A (en) A kind of RGBW mould group, display screen and terminal device for supporting full frame fingerprint recognition
CN109670819A (en) Double vehicle positioning stop fields method of payment and device based on GPS and LBS
CN109634646A (en) The method and apparatus of barcode scanning terminal coupling firmware updating based on SFTP
CN110210878A (en) Commodity source tracing method and device based on two dimension code reading device
CN109901865A (en) The method and apparatus of firmware upgrade
CN109886375B (en) Method and system for replacing bound two-dimensional code reading devices in batches
KR20080037261A (en) Kiosk terminal having dual mode
CN109934588A (en) A kind of business handling method and device
CN108920535A (en) A kind of large-size screen monitors input method and system
CN206003242U (en) Integrated service self-service terminal and IntServ platform
CN109636405A (en) Barcode scanning method of payment and device based on face identification functions
CN109902781A (en) Data transmission method and system based on two dimension code reading device
CN109922140A (en) Batch binds the method and system of two dimension code reading device
CN109886671A (en) Two dimensional code method of payment and device based on double screen
CN109640346A (en) Data transfer optimization method and system based on two dimension code reading device
CN109961283A (en) Two dimensional code method of payment and device based on dynamic password and digital certificate
CN207097130U (en) A kind of Traffic Accident Disposing self-service machine
CN109886672A (en) Two dimensional code method of payment and device based on dual camera

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190611