Disclosure of Invention
In view of the above problems, the present invention provides a channel provider access method and device for a charging operator platform, so that the whole channel provider docking and verification process does not need manual configuration, automatic verification and online can be performed based on the above logic, and the channel provider access efficiency to the operator platform is improved.
In a first aspect, the present application provides the following technical solutions by way of examples:
a channel provider access method for charging an operator platform is applied to the operator platform, and comprises the following steps:
acquiring an identification code and a docking mode corresponding to a channel provider to be accessed; configuring joint debugging permission and testing permission for the channel trader according to the identification code and the docking mode, and generating configuration information; after the channel provider completes docking development based on the configuration information, receiving verification information fed back by the channel provider; verifying whether the client corresponding to the channel provider is accessed to the operator platform or not according to the verification information; if yes, judging that the channel provider is successfully accessed.
Optionally, the identification code is any one or more of the following: physical address, identity card number, mobile phone number, server serial number.
Optionally, the verification information includes an adapter model and an adapter version; the receiving the verification information fed back by the channel provider comprises:
and receiving the adaptation model and the adaptation version fed back by the channel trader.
Optionally, the verification information further includes a test video for performing a function test after the channel provider accesses the operator platform; the receiving the verification information fed back by the channel provider comprises:
and receiving the test video fed back by the channel trader.
Optionally, the verifying, according to the verification information, whether the client corresponding to the channel provider accesses the operator platform includes:
detecting the test video frame by frame, and judging whether the test video comprises preset characteristic information or not; the preset characteristic information comprises energy charging entrance information, energy charging site detail information, order interface information and payment interface information;
if so, determining that the client corresponding to the channel provider is accessed to the operator platform; if not, determining that the client corresponding to the channel provider is not accessed to the operator platform.
Optionally, the performing frame-by-frame detection on the test video and determining whether the test video includes preset feature information includes:
marking video images of the test video every other preset frame number; the preset frame number is determined according to the frame rate of the test video; and detecting all video images with marks, and judging whether preset characteristic information exists in the test video.
In a second aspect, based on the same inventive concept, the present application further provides the following technical solutions through embodiments:
a channel provider access device for charging an operator platform is applied to the operator platform, and the device comprises:
the acquisition module is used for acquiring an identification code and a docking mode corresponding to a channel merchant to be accessed; the configuration module is used for configuring joint debugging permission and testing permission for the channel trader according to the identification code and the butt joint mode and generating configuration information; the receiving module is used for receiving verification information fed back by the channel provider after the channel provider completes docking development based on the configuration information; the verification module is used for verifying whether the client corresponding to the channel provider is accessed to the operator platform or not according to the verification information; and the judging module is used for judging that the channel trader is successfully accessed when the verification result of the verifying module is positive.
Optionally, the identification code is any one or more of the following: physical address, identity card number, mobile phone number, server serial number.
Optionally, the verification information includes an adapter model and an adapter version; the receiving module is specifically configured to:
and receiving the adaptation model and the adaptation version fed back by the channel trader.
Optionally, the verification information further includes a test video for performing a function test after the channel provider accesses the operator platform; the receiving module is further specifically configured to:
and receiving the test video fed back by the channel trader for testing.
Optionally, the verification module is specifically configured to:
detecting the test video frame by frame, and judging whether the test video comprises preset characteristic information or not; the preset characteristic information comprises energy charging entrance information, energy charging site detail information, order interface information and payment interface information; if so, determining that the client corresponding to the channel provider is accessed to the operator platform; if not, determining that the client corresponding to the channel provider is not accessed to the operator platform.
Optionally, the verification module is further specifically configured to:
marking video images of the test video every other preset frame number; the preset frame number is determined according to the frame rate of the test video; and detecting all video images with marks, and judging whether the preset characteristic information exists in the test video.
In a third aspect, based on the same inventive concept, the present application further provides the following technical solutions through embodiments:
a computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of the above first aspects.
The channel provider access method of the charging operator platform provided by the embodiment of the invention is applied to the operator platform, and the method comprises the steps of obtaining an identification code and a docking mode corresponding to a channel provider to be accessed; then, configuring joint debugging permission and testing permission for the channel trader according to the identification code and the butt joint mode, and generating configuration information; after the channel provider completes docking development based on the configuration information, receiving verification information fed back by the channel provider; verifying whether the client corresponding to the channel provider is accessed to the operator platform or not according to the verification information; if yes, judging that the channel provider is successfully accessed. In the embodiment, the channel provider authority is configured through the identification code, then automatic verification is performed on the operator platform according to the verification information, whether the client corresponding to the channel provider is accessed to the operator platform or not is verified, and if the verification is passed, the client of the channel provider is connected to the online. The method of the invention ensures that the whole docking and verification process of the channel provider does not need manual configuration, and automatic verification and online can be carried out based on the logic, thereby improving the efficiency of the channel provider accessing the operator platform and the verification accuracy.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
First embodiment
Referring to fig. 1, fig. 1 is a flowchart illustrating a channel provider access method for a charging operator platform according to a first embodiment of the present invention. The method is applied to the operator platform when the channel provider accesses the operator platform so as to realize automatic identification and access of the channel provider.
In this embodiment, the charging energy may indicate that the new energy vehicle is charged, the hydrogen-fueled vehicle is hydrogenated, and the fuel-fueled vehicle (gas-fueled vehicle) is fueled (charged). The operator platform integrates station information such as a charging station, a gas station, a hydrogen station, and the like, such as a location of the station, a fuel price of the station, a gun number of the station, and a fee settlement of the station. The channel provider is an operator of the third-party platform; when the third-party platform needs to provide the charging service, the charging service can be provided for the user through the operator platform by accessing the operator platform. The method of the embodiment is used for solving the problem that a channel provider cannot automatically access to an operator platform, and the specific implementation process is as follows.
Specifically, the method comprises the following steps:
step S10: and acquiring an identification code and a docking mode corresponding to the channel provider to be accessed.
In step S10, each distributor has an identification code associated with it. The identification code should be carried when the channel provider communicates the access request to the carrier platform. When the access request is transmitted, the channel provider can directly transmit the access request through a platform corresponding to the channel provider or communicate with an operator platform through other systems or software. The carrier platform is guaranteed to identify the channel provider. The identification code can be a physical address of a channel provider server and/or a server serial number, and can be an identity card number of an operator of a channel provider; however, in order to ensure the fixed identification code and avoid the change of the identification code caused by the replacement of the equipment or the change of personnel in the later period, a fixed mobile phone number is adopted as the identification code of the channel provider in the embodiment. The efficiency and accuracy of identification are guaranteed. It should be noted that the identification code may be any one or more of the above physical address, identification number or mobile phone number, and the verification accuracy can be improved by the above identification code combined verification, so as to avoid being attacked by the network.
The docking method, that is, the docking method between the platform corresponding to the channel provider and the platform of the operator, may specifically include: the API (Application Programming Interface) is accessed in conjunction with H5(HTML5.0), H5 is accessed in conjunction with a non-sensitive login, and H5 is accessed in conjunction with a login page, without limitation.
Step S20: and configuring joint debugging permission and testing permission for the channel trader according to the identification code and the docking mode, and generating configuration information.
In step S20, to access the carrier platform, the channel provider needs to obtain the joint regulation authority and the test authority on the carrier platform. Specifically, the operator platform records the identification code and performs authority allocation on the identification code. Distributing joint debugging authority for the channel trader, wherein the joint debugging authority can be used for accessing an operator platform when the channel trader develops the platform; and distributing test authority for the channel trader, and testing whether each function is normal or not by testing the platform developed by the channel trader. In addition, the operator platform can also issue corresponding development tools and corresponding protocols to the channel trader. For example, the configuration of the corresponding access protocol, communication format, and authentication logic, etc. by the carrier platform to the distributor may be performed according to the prior art. The configuration information is information such as joint debugging authority, testing authority, development tools and protocols. Therefore, the channel trader can carry out the docking development of the platform based on the configuration information.
Step S30: and after the channel provider completes docking development based on the configuration information, receiving verification information fed back by the channel provider.
In step S30, the verification information may be custom data reported by the channel provider, such as an adapted model and an adapted version of the mobile phone; the intermediate data generated during the test of the platform of the channel provider and the platform of the operator can be further used. For example, the verification data generated when the platform of the channel provider accesses the platform of the carrier, the request information when the platform of the channel provider calls the platform of the carrier to the relevant function module, and so on. In this embodiment, since it is necessary to verify that each function of the platform of the channel provider after accessing the platform of the operator is complete, the functions include, but are not limited to, charging entry information, charging site detail information, order interface information, payment interface information, and the like on the platform of the operator. If the verification of the adapter model, the adapter version and the intermediate data is simply carried out, whether the function is good or not when the channel provider accesses the channel provider is difficult to be determined correctly. Therefore, in this embodiment, an adaptive model and an adaptive version are adopted, and a test video for performing a function test after a channel provider accesses an operator platform is combined, so as to automatically judge and identify the functional integrity of the channel provider after the channel provider platform accesses the operator platform. The method comprises the following specific steps:
step S40: and verifying whether the client corresponding to the channel provider is accessed to the operator platform or not according to the verification information.
Please refer to fig. 2, which includes:
step S41: detecting the test video frame by frame, and judging whether the test video comprises preset characteristic information or not; the preset characteristic information comprises energy charging entrance information, energy charging site detail information, order interface information and payment interface information.
In step S41, the test video is decoded, and a video picture of each frame of the test video can be obtained. The decoding method is not limited, and hard decoding, soft decoding, and the like may be used. The channel trader can adopt the mode of mobile phone/computer screen recording to generate the test video, thereby ensuring enough definition and improving the identification accuracy.
Specifically, video images of a test video every other preset frame number can be marked; the preset frame number is determined according to the frame rate of the test video; and then, detecting all video images with marks, and judging whether preset characteristic information exists in the test video. The preset feature information is information referred to when identifying the video picture. Specifically, the video picture and the characteristic information can be adopted for characteristic comparison, so that whether the corresponding same characteristics exist in the video picture or not is identified; in addition, a historical video picture can be used as input, and the characteristic information corresponding to the video picture is used as calibrated output to train the neural network model, so that the trained neural network model is obtained.
In an implementation manner, after the operator platform receives the test video, the video picture is input into the model to obtain a feature detection result, and the feature detection result includes all feature information corresponding to the input video picture. Based on this, the present embodiment also provides a manner of detecting feature information, in which feature detection is implemented by recognizing character information in a video picture. The following detection method can be used for optimizing computing resources while ensuring the identification accuracy. Specifically, the charging entry information corresponds to a first identification character, the charging site detail information corresponds to a second identification character, the order interface information corresponds to a third identification character, and the payment interface information corresponds to a fourth identification character. The first to fourth recognition characters select a character which can have a representative effect on the corresponding feature information. Therefore, the specific step of detecting the feature information may include:
step S411: and performing feature detection on the video picture according to the first recognition character, the second recognition character, the third recognition character and the fourth recognition character.
In step S411, it is possible to compare whether there are characters identical to the first recognition character, the second recognition character, the third recognition character, and the fourth recognition character to the video picture. Specifically, in this embodiment, the first identification character may be "refuel", "charge" or "gas filling" and is an independent character, rather than characters such as "gas station", "charge station", and the like; if the first recognition character is recognized in the video picture, the video picture can be determined to contain the charging entry information. The second identification character at least comprises at least one of a 'gas station', 'charging station' or 'gas station', and also comprises characters describing addresses of the 'gas station', 'charging station' or 'gas station', for example, xx number in xx district xx of xx city, and also comprises characters describing prices; if the second recognition character is recognized in the video picture, the fact that the video picture contains the charging site detail information can be determined. It should be noted that the charging site detail information is generally determined by the operator platform, so that the second recognition character can be flexibly adjusted according to the data update of the operator platform. The third identification character comprises a transaction order number, an oil number and a gun number; if the third recognition character is recognized in the video picture, the video picture can be determined to contain the order interface information. The fourth identification character comprises 'order confirmation' or 'payment confirmation', and if the fourth identification character is identified in the video picture, the video picture can be determined to contain the payment interface information.
Step S412: when the first recognition character, the second recognition character, the third recognition character and the fourth recognition character exist in all the video pictures at the same time, obtaining a first detection result; the first detection result is a result indicating that all types of feature information exist in the video picture.
In step S412, it can be automatically identified through the first detection result that the functions of all the operator platforms accessed in the test video are complete, which indicates that the channel provider has normally accessed. That is, step S50 may be performed.
Step S50: if yes, judging that the channel provider is successfully accessed.
And after the access is finished, the client of the channel provider can be on-line. The client side of the channel provider is a platform corresponding to the channel provider. The specific time of online can be determined by matching the channel provider and the operator platform, or the channel provider makes a reservation for the online time to the operator platform. The online operation can be manually triggered by a worker in the background, the worker can also configure a corresponding online control code, and when the test is passed and the appointed online time is reached, the code is triggered to be executed so as to perform online on the client side of the distributor.
Step S413: when the first recognition character, the second recognition character, the third recognition character and the fourth recognition character do not exist in all the video pictures at the same time, obtaining a second detection result; the second detection result is a result indicating that one or more types of feature information are missing in the video picture.
Through the second detection result in step S413, it can be determined that the function of the accessed operator platform in the test video is incomplete, and the test video is not accessed normally, so that the user cannot be provided with a complete charging service. I.e., the test fails, instructions or information for retesting are fed back to the distributor until the test is passed.
Step S42: and if so, determining that the client corresponding to the channel provider is accessed to the operator platform.
In step S42, the description is continued with the example in step S41, that is, if the feature detection result indicates that all types of feature information exist in the video picture, it is determined that the client corresponding to the channel provider accesses the carrier platform. And when the characteristic detection result is the first detection result, completing the butt joint of the client corresponding to the channel provider and the operator platform.
Step S43: if not, determining that the client corresponding to the channel provider is not accessed to the operator platform.
In step S43, the description is continued with the example in step S41, that is, when the feature detection result is the second detection result, the docking between the distributor and the operator platform is problematic, and the docking needs to be retested.
Furthermore, when the video picture identification is carried out after the test video is decoded, the designated video picture can be identified in a marking mode, so that the identification quantity is reduced, and the identification efficiency is improved. For example:
firstly, acquiring a frame rate of a test video; and then, marking at equal intervals of preset frame numbers from the first piece of the video picture according to the frame rate, so as to ensure that the identification rate is improved by uniformly marking. Wherein the larger the frame rate, the larger the preset number of intervals. For example, when the frame rate is 30, the marking may be performed every 9 video pictures, that is, every 10 video pictures detects 1 frame, and when the frame rate is 60, the marking may be performed every 19 video pictures, that is, every 20 video pictures detects 1 frame, and the specific preset number may be set by a user, but it should be ensured that the preset number is 1/2 smaller than the frame rate. And finally, carrying out feature detection on the marked video picture according to preset feature information to obtain a feature detection result.
The channel provider access method for the energy-charging operator platform is applied to the operator platform, and the channel provider access method is used for acquiring an identification code and a docking mode corresponding to a channel provider needing to be accessed to the operator platform; then, configuring joint debugging permission and testing permission for the channel trader according to the identification code and the butt joint mode, and generating configuration information; after the channel provider completes docking development based on the configuration information, receiving verification information fed back by the channel provider; verifying whether the client corresponding to the channel provider is accessed to the operator platform or not according to the verification information; and if so, carrying out on-line connection on the client of the channel provider. In the embodiment, the channel provider authority is configured through the identification code, then automatic verification is performed on the operator platform according to the verification information, whether the client corresponding to the channel provider is accessed to the operator platform or not is verified, and if the verification is passed, the client of the channel provider is connected to the online. The whole docking and verification process of the channel provider does not need manual configuration, automatic verification and online can be carried out based on the logic, and the efficiency of accessing the channel provider to the operator platform is improved; manual verification is not needed, and the reliability of verification is improved.
Second embodiment
Referring to fig. 3, a second embodiment of the present invention provides a distributor access device 300 capable of charging an operator platform based on the same inventive concept. The apparatus 300 is applied to a carrier platform, and the apparatus 300 includes:
an obtaining module 301, configured to obtain an identification code and a docking manner corresponding to a channel provider to be accessed;
the configuration module 302 is configured to configure joint debugging permission and testing permission for the channel provider according to the identification code and the docking manner, and generate configuration information;
a receiving module 303, configured to receive verification information fed back by the channel provider after the channel provider completes docking development based on the configuration information;
the verification module 304 is configured to verify whether the client corresponding to the channel provider accesses the operator platform according to the verification information;
the determining module 305 is configured to determine that the channel provider is successfully accessed if the verification result of the verifying module is yes.
As an optional implementation manner, the identification code is any one or more of the following: physical address, identity card number, mobile phone number, server serial number.
As an optional implementation manner, the verification information includes an adapter model and an adapter version; the receiving module 303 is specifically configured to:
and receiving the adaptation model and the adaptation version fed back by the channel trader.
As an optional implementation manner, the verification information further includes a test video for performing a function test after the channel provider accesses the operator platform; the receiving module 303 is further specifically configured to:
and receiving the test video fed back by the channel trader for testing.
As an optional implementation manner, the verification module 304 is specifically configured to:
detecting the test video frame by frame, and judging whether the test video comprises preset characteristic information or not; the preset characteristic information comprises energy charging entrance information, energy charging site detail information, order interface information and payment interface information; if so, determining that the client corresponding to the channel provider is accessed to the operator platform; if not, determining that the client corresponding to the channel provider is not accessed to the operator platform.
As an optional implementation manner, the verification module 304 is further specifically configured to:
marking video images of the test video every other preset frame number; the preset frame number is determined according to the frame rate of the test video; and detecting the video images of all the marks, and judging whether preset characteristic information exists in the test video.
It should be noted that the apparatus 300 according to the embodiment of the present invention is implemented and produces the same technical effects as the foregoing method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the foregoing method embodiments for the parts of the apparatus embodiments that are not mentioned.
The device-integrated functional modules provided by the present invention may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, all or part of the flow of the method of implementing the above embodiments may also be implemented by a computer program, which may be stored in a computer readable storage medium and used by a processor to implement the steps of the above embodiments of the method. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components in an apparatus according to an embodiment of the invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.