Summary of the invention
Based on this, it is necessary to for the encryption reagent information of used reagent is applied to other diagnostic instrments at present
It is upper and the problem of can not detect, a kind of reagent verification method, device, storage medium and computer equipment are provided.
A kind of reagent verification method, comprising:
Reagent checking request is obtained, includes the encryption reagent information of reagent to be replaced in the reagent checking request;
The encryption reagent information of reagent to be replaced is decrypted, judges whether reagent to be replaced is authorization reagent;
If it is determined that reagent to be replaced is authorization reagent, then obtain after the encryption reagent information of reagent to be replaced is decrypted
Reagent information, and judge decryption after reagent information it is whether effective;
If it is determined that the reagent information after decryption is effective, it is determined that reagent to be replaced passes through verifying.
The encryption reagent information of reagent to be replaced is decrypted in one of the embodiments, judges reagent to be replaced
It whether is authorization reagent, comprising:
The encryption reagent information of reagent to be replaced is decrypted;
If successful decryption, it is determined that reagent to be replaced is authorization reagent, otherwise determines that reagent to be replaced is unauthorized reagent.
In one of the embodiments, if it is determined that reagent to be replaced is authorization reagent, then obtains and reagent to be replaced is added
Close reagent information be decrypted after reagent information, and judge decryption after reagent information it is whether effective, comprising:
If it is determined that reagent to be replaced is authorization reagent, then obtain after the encryption reagent information of reagent to be replaced is decrypted
Reagent information;
It inquires in database with the presence or absence of the reagent information after decryption;
If it does not exist, it is determined that the reagent information after decryption is effective, otherwise, it determines the reagent information after decryption is invalid.
It in one of the embodiments, further include the diagnostic equipment currently needed using reagent to be replaced in reagent checking request
The facility information of device,
After then determining reagent to be replaced by verifying further include:
It needs the reagent information after decryption and currently to add together using the facility information of the diagnostic instrments of reagent to be replaced
Diagnostic instrments are returned to after close, so that diagnostic instrments further verify the reagent to be replaced.
In one of the embodiments, further include:
It receives diagnostic instrments and further verifies the verification result after reagent to be replaced;
If verification result is that database is recorded in the reagent information after decryption by verifying.
In one of the embodiments, before obtaining reagent checking request, further includes:
It is identified to needing the diagnostic instrments using reagent to share address, so that diagnostic instrments are identified according to address sends reagent
Checking request.
A kind of reagent verifying device, comprising:
Reagent checking request acquiring unit includes to more in the reagent checking request for obtaining reagent checking request
Change the encryption reagent information of reagent;
Reagent judging unit is authorized, is decrypted for the encryption reagent information to reagent to be replaced, judges examination to be replaced
Whether agent is authorization reagent;
Effective judging unit is used for if it is determined that reagent to be replaced is authorization reagent, then encryption of the acquisition to reagent to be replaced
Reagent information be decrypted after reagent information, and judge decryption after reagent information it is whether effective;
Authentication unit, for if it is determined that the reagent information after decryption is effective, it is determined that reagent to be replaced passes through verifying.
Authorization reagent judging unit is specifically used in one of the embodiments:
The encryption reagent information of reagent to be replaced is decrypted;
If successful decryption, it is determined that reagent to be replaced is authorization reagent, otherwise determines that reagent to be replaced is unauthorized reagent.
A kind of computer readable storage medium, is stored thereon with computer program, which is executed by processor
The step of Shi Shixian method as above.
A kind of computer equipment, including memory, processor and storage can be run on a memory and on a processor
Computer program, the step of processor realizes method as above when executing described program.
Mentioned reagent verification method, device, storage medium and computer equipment are tried by the encryption to reagent to be replaced
Agent information is decrypted, and judges whether reagent to be replaced is authorization reagent;If it is determined that when the reagent to be replaced is authorization reagent, then
The reagent information after the encryption reagent information of the reagent to be replaced is decrypted is obtained, and the further reagent after judgement decryption
Whether information is effective;When reagent information only after decryption is effective, then it can determine that the reagent to be replaced passes through verifying.It is logical
Double verification is crossed, it can not so as to avoid the encryption reagent information of used reagent to be applied on other diagnostic instrments
The problem of detecting improves the correctness that reagent uses.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.
The embodiment of the invention provides a kind of reagent verification methods, as shown in Figure 1, may include steps of::
Step S101 obtains reagent checking request, wherein includes the encryption reagent of reagent to be replaced in reagent checking request
Information;
The encryption reagent information of reagent to be replaced is decrypted in step S102, judges whether reagent to be replaced is authorization
Reagent;
Step S103, however, it is determined that reagent to be replaced is authorization reagent, then obtains the encryption reagent information to reagent to be replaced
Reagent information after being decrypted, and judge whether the reagent information after decryption is effective;
Step S104, if it is determined that the reagent information after decryption is effective, it is determined that reagent to be replaced passes through verifying.
In the present embodiment, in order to avoid the encryption reagent information of used reagent is applied to it in the prior art
The problem of can not being detected on his diagnostic instrments, to be verified by introducing WEB server to reagent.Specifically, working as
When diagnostic instrments need replacing reagent, then the reagent checking request of reagent to be replaced can be sent to WEB server, wherein examination
It may include the encryption reagent information of reagent to be replaced in agent checking request, reagent information is then the unique identification of reagent, is led to
Often shown by way of encryption.
After WEB server receives reagent checking request, the encryption reagent information of reagent to be replaced is decrypted, thus
Judge whether reagent to be replaced is authorization reagent, if it is determined that the reagent to be replaced is authorization reagent, then obtains to examination to be replaced
The encryption reagent information of agent be decrypted after reagent information, and further judge decryption after reagent information it is whether effective, i.e.,
Whether the reagent information after judging decryption is previously used;If the reagent information after decryption was not used, determine to decrypt
Reagent information afterwards is effective, may thereby determine that the reagent to be replaced by verifying, otherwise determines that the reagent to be replaced cannot lead to
Cross verifying.Therefore, it avoids and the encryption reagent information of used reagent is applied on other diagnostic instrments and can not be examined
The problem of measuring improves the correctness that reagent uses.
In one embodiment, the encryption reagent information of reagent to be replaced is decrypted, whether judges reagent to be replaced
To authorize reagent, comprising: the encryption reagent information of reagent to be replaced is decrypted;Judge whether can successful decryption, if can be at
Function decryption then determines reagent to be replaced for authorization reagent;Otherwise determine that reagent to be replaced is unauthorized reagent.
In the present embodiment, it is decrypted by encryption reagent information of the WEB server to reagent to be replaced, if cannot
Successful decryption then shows that the reagent to be replaced is not genuine reagent or is not the specified reagent of apparatus manufacturer, so that it is determined that should
Reagent to be replaced is unauthorized reagent.If can with successful decryption, show the reagent to be replaced be likely to be genuine reagent or
The specified reagent of apparatus manufacturer, so that it is determined that the reagent to be replaced is authorization reagent.
In one embodiment, if it is determined that the reagent to be replaced is authorization reagent, then obtains to the reagent to be replaced
Encryption reagent information be decrypted after reagent information, and judge decryption after reagent information it is whether effective, comprising: when determine to
Replacing reagent is then to obtain the reagent information after the encryption reagent information of reagent to be replaced is decrypted when authorizing reagent;It looks into
It askes with the presence or absence of the reagent information after decryption in database, then determines that the reagent information after decryption is invalid if it exists;Otherwise it determines
Reagent information after decryption is effective.
In the present embodiment, all diagnostic instrments are stored in database to have used or the reagent of reagent currently in use
Information.Therefore, after the encryption reagent information of WEB server successful decryption reagent to be replaced, then inquire in the database whether
Deposit reagent information after decryption, and if so, show that the reagent information has been used, can determine the reagent information without
Effect, and the reagent to be replaced may be forgery reagent, so that the reagent to be replaced cannot pass through verifying.If do not deposited in database
Reagent information after decryption then shows that the reagent information is not used by, and the reagent information after may thereby determine that decryption has
Effect, the reagent to be replaced can pass through verifying.The present embodiment used by using all diagnostic instrments of database purchase or
The reagent information of reagent currently in use, and database is inquired by WEB server, to realize reagent information in diagnostic equipment
It is shared between device, avoids the problem of used reagent information is applied on other diagnostic instrments and can not be detected, together
When but also forge reagent cannot be used, reagent imitation behavior can be inhibited to a certain extent.
In one embodiment, as shown in Fig. 2, can also include currently needing using examination to be replaced in reagent checking request
The facility information of the diagnostic instrments of agent, therefore can also include the following steps: after determining reagent to be replaced by verifying
Step S201 needs the reagent information after decryption and currently to believe using the equipment of the diagnostic instrments of reagent to be replaced
Breath returns to diagnostic instrments after encrypting together, so that diagnostic instrments further verify reagent to be replaced.
It in the present embodiment, then will be to reagent to be replaced after WEB server determines reagent to be replaced by verifying
It encrypts the reagent information after reagent information is decrypted, currently need the facility information one using the diagnostic instrments of reagent to be replaced
The diagnostic instrments are returned after same encryption, and is further parsed and is verified by the control software of diagnostic instrments.Specifically, by
Include the unique device information of diagnostic instrments in return information, therefore, the control software of diagnostic instrments to return information into
When row parsing, whether the unique device information that can verify diagnostic instrments is consistent with itself, if it is inconsistent, can not be in this diagnosis
Parsing is completed on instrument, the problem of so as to avoid reagent is misused between different diagnostic instrments.
It, just can be further to the reagent information in return information only when the unique device information of diagnostic instrments is consistent
Parsed, and inquire parsing after reagent information whether used in this TV station diagnostic instrments, if used, show to
Reagent authentication failed is replaced, if do not used, by verifying, and reagent to be replaced can be applied to the diagnostic instrments
On.
In one embodiment, as shown in figure 3, the reagent verification method can also include:
Step S301 receives diagnostic instrments and further verifies the verification result after the reagent to be replaced;
Step S302, if verification result is that database is recorded in the reagent information after decryption by verifying.
In the present embodiment, WEB server can also receive diagnostic instrments and further verify testing after the reagent to be replaced
Card is as a result, be recorded database for the reagent information after decryption, thus to database in the case where diagnostic instrments are verified
It is updated.
It in one embodiment, can also include: to the diagnosis needed using reagent before obtaining reagent checking request
Instrument shares address mark, so that diagnostic instrments are identified according to the address sends reagent checking request.
In the present embodiment, WEB server shows the address mark of itself, so that needing the diagnosis using reagent
Instrument can know the address mark of WEB server.Specifically the address mark that WEB server shows can be cured in advance and examined
In the control software of disconnected instrument, or in the configuration file of write-in control software, to need to verify examination to be replaced in diagnostic instrments
When agent, it can be identified according to the address and the facility information of diagnostic instrments generates two dimensional code, and be shown in the control of diagnostic instrments
Software interface accesses WEB server so as to directly scan the two-dimensional code by mobile terminal, so that access procedure is more square
Just quick, and according to the encryption reagent information for prompting to input reagent to be replaced of WEB server or scan adding in reagent packaging
Close reagent information, so that WEB server verifies reagent to be replaced.
In one embodiment, reagent information can be presented in reagent packaging by way of encryption, or uses it
His mode is issued to user, and the form of expression can be bar code, two-dimensional bar code or character string etc..
The embodiment of the invention also provides a kind of reagents to verify device, as shown in figure 4, including that reagent checking request obtains list
Member 401, authorization reagent judging unit 402, effective judging unit 403 and authentication unit 404, wherein reagent checking request obtains
Unit 401 is taken, includes the encryption reagent information of reagent to be replaced for obtaining reagent checking request, in reagent checking request;It awards
Weigh reagent judging unit 402, be decrypted for the encryption reagent information to reagent to be replaced, judge reagent to be replaced whether be
Authorize reagent;Effective judging unit 403 is used for if it is determined that reagent to be replaced is authorization reagent, then acquisition is to reagent to be replaced
The reagent information after reagent information is decrypted is encrypted, and judges whether the reagent information after decryption is effective;Authentication unit 404,
For if it is determined that the reagent information after decryption is effective, it is determined that reagent to be replaced passes through verifying.
In one embodiment, authorization reagent judging unit 402 specifically can be also used for, and try the encryption of reagent to be replaced
Agent information is decrypted;If successful decryption, it is determined that reagent to be replaced is authorization reagent, otherwise determines that reagent to be replaced is non-awards
Weigh reagent.
In one embodiment, effective judging unit 403 specifically can be also used for, however, it is determined that reagent to be replaced is authorization examination
Agent then obtains the reagent information after the encryption reagent information of reagent to be replaced is decrypted;It whether there is in inquiry database
Reagent information after decryption;If it does not exist, it is determined that the reagent information after decryption is effective, otherwise, it determines the reagent letter after decryption
Breath is invalid.
It in one embodiment, can also include the diagnostic instrments currently needed using reagent to be replaced in agent checking request
Facility information, therefore, as shown in figure 5, the reagent verifying device can also include transmission unit 501, be mainly used for solve
Reagent information after close and diagnosis is returned after currently needing to encrypt together using the facility information of the diagnostic instrments of reagent to be replaced
Instrument, so that diagnostic instrments further verify the reagent to be replaced.
In one embodiment, transmission unit 501 specifically can be also used for, to the diagnostic instrments transmission needed using reagent
Address mark, so that diagnostic instrments are identified according to address sends reagent checking request.
In one embodiment, as shown in fig. 6, reagent verifying device can also include receiving unit 601 and record more
New unit 602, wherein receiving unit 601 further verifies the verification result after reagent to be replaced for receiving diagnostic instrments;Note
Record updating unit 602 is used to that database then to be recorded in the reagent information after decryption when the verification result is to pass through verifying
In, the information in database is updated.
The embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, the meter
Calculation machine program realizes following steps when being executed by processor: obtaining reagent checking request, wherein include in reagent checking request to
Replace the encryption reagent information of reagent;The encryption reagent information of reagent to be replaced is decrypted, whether judges reagent to be replaced
To authorize reagent;If it is determined that reagent to be replaced is authorization reagent, then obtains and the encryption reagent information of reagent to be replaced is solved
Reagent information after close, and judge whether the reagent information after decryption is effective;If it is determined that the reagent information after decryption is effective, then really
Fixed reagent to be replaced passes through verifying.
In one embodiment, the encryption reagent information of reagent to be replaced is decrypted, whether judges reagent to be replaced
To authorize reagent, comprising: the encryption reagent information of reagent to be replaced is decrypted;If successful decryption, it is determined that examination to be replaced
Agent is authorization reagent, otherwise determines that reagent to be replaced is unauthorized reagent.
In one embodiment, however, it is determined that reagent to be replaced is authorization reagent, then obtains the encryption to reagent to be replaced and try
Agent information be decrypted after reagent information, and judge decryption after reagent information it is whether effective, comprising: if it is determined that examination to be replaced
Agent is authorization reagent, then obtains the reagent information after the encryption reagent information of reagent to be replaced is decrypted;Inquire database
In with the presence or absence of decryption after reagent information;If it does not exist, it is determined that the reagent information after decryption is effective, otherwise, it determines decryption
Reagent information afterwards is invalid.
It in one embodiment, further include the diagnostic instrments currently needed using reagent to be replaced in reagent checking request
Facility information, it is determined that reagent to be replaced by verifying after further include: by after decryption reagent information and currently need using
The facility information of the diagnostic instrments of reagent to be replaced returns to diagnostic instrments after encrypting together, is somebody's turn to do so that diagnostic instrments are further verified
Reagent to be replaced.
In one embodiment, further includes: receive diagnostic instrments and further verify the verification result after reagent to be replaced;If
Verification result is that database then is recorded in the reagent information after decryption by verifying.
In one embodiment, before obtaining reagent checking request, further includes: to the diagnostic instrments needed using reagent
Address mark is sent, so that diagnostic instrments are identified according to the address sends reagent checking request.
The embodiment of the invention also provides a kind of computer equipment, including memory, processor and it is stored in memory
Computer program that is upper and can running on a processor, wherein processor realizes following steps when executing described program: obtaining examination
Agent checking request, wherein include the encryption reagent information of reagent to be replaced in reagent checking request;Encryption to reagent to be replaced
Reagent information is decrypted, and judges whether reagent to be replaced is authorization reagent;If it is determined that reagent to be replaced is authorization reagent, then obtain
Reagent information after taking the encryption reagent information to reagent to be replaced to be decrypted, and judge whether the reagent information after decryption has
Effect;If it is determined that the reagent information after decryption is effective, it is determined that reagent to be replaced passes through verifying.
In one embodiment, the encryption reagent information of reagent to be replaced is decrypted, whether judges reagent to be replaced
To authorize reagent, comprising: the encryption reagent information of reagent to be replaced is decrypted;If successful decryption, it is determined that examination to be replaced
Agent is authorization reagent, otherwise determines that reagent to be replaced is unauthorized reagent.
In one embodiment, however, it is determined that reagent to be replaced is authorization reagent, then obtains the encryption to reagent to be replaced and try
Agent information be decrypted after reagent information, and judge decryption after reagent information it is whether effective, comprising: if it is determined that examination to be replaced
Agent is authorization reagent, then obtains the reagent information after the encryption reagent information of reagent to be replaced is decrypted;Inquire database
In with the presence or absence of decryption after reagent information;If it does not exist, it is determined that the reagent information after decryption is effective, otherwise, it determines decryption
Reagent information afterwards is invalid.
It in one embodiment, further include the diagnostic instrments currently needed using reagent to be replaced in reagent checking request
Facility information, it is determined that reagent to be replaced by verifying after further include: by after decryption reagent information and currently need using
The facility information of the diagnostic instrments of reagent to be replaced returns to diagnostic instrments after encrypting together, is somebody's turn to do so that diagnostic instrments are further verified
Reagent to be replaced.
In one embodiment, further includes: receive diagnostic instrments and further verify the verification result after reagent to be replaced;If
Verification result is that database then is recorded in the reagent information after decryption by verifying.
In one embodiment, before obtaining reagent checking request, further includes: to the diagnostic instrments needed using reagent
Address mark is sent, so that diagnostic instrments are identified according to the address sends reagent checking request.
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to a above-mentioned
The all possible combination of each technical characteristic in embodiment is all described, as long as however, the combination of these technical characteristics not
There are contradictions, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention
Range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.