CN117171185B - Logistics data changing method and related equipment based on industrial identification - Google Patents

Logistics data changing method and related equipment based on industrial identification Download PDF

Info

Publication number
CN117171185B
CN117171185B CN202311441669.XA CN202311441669A CN117171185B CN 117171185 B CN117171185 B CN 117171185B CN 202311441669 A CN202311441669 A CN 202311441669A CN 117171185 B CN117171185 B CN 117171185B
Authority
CN
China
Prior art keywords
data
determining
logistics
industrial
position information
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.)
Active
Application number
CN202311441669.XA
Other languages
Chinese (zh)
Other versions
CN117171185A (en
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.)
Jiangsu Zhongtian Internet Technology Co ltd
Original Assignee
Jiangsu Zhongtian Internet 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 Jiangsu Zhongtian Internet Technology Co ltd filed Critical Jiangsu Zhongtian Internet Technology Co ltd
Priority to CN202311441669.XA priority Critical patent/CN117171185B/en
Publication of CN117171185A publication Critical patent/CN117171185A/en
Application granted granted Critical
Publication of CN117171185B publication Critical patent/CN117171185B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The application provides a logistics data changing method and device based on an industrial identifier, electronic equipment and storage medium, wherein the logistics data changing method based on the industrial identifier comprises the following steps: generating request data based on preset operation of a user on the industrial identifier; carrying out semantic recognition on a request message recorded in the request data to obtain a data operation requirement; classifying the data operation demands, and determining the execution level of the data operation demands; acquiring the position information of the electronic equipment, and determining the authority level of the electronic equipment according to the position information; when the execution level and the authority level are the same, verifying the identity of the user in the blockchain associated with the industrial identity; and when the identity identification passes the verification, changing the logistics data in the block chain based on the logistics data operation instruction corresponding to the request message. The application relates to the technical field of data analysis, and can improve the security of logistics data change based on industrial identification.

Description

Logistics data changing method and related equipment based on industrial identification
Technical Field
The application relates to the technical field of data analysis, in particular to the technical field of logistics data change based on industrial identification, and especially relates to a logistics data change method based on industrial identification and related equipment, wherein the related equipment comprises a logistics data change device based on industrial identification, electronic equipment and a storage medium.
Background
With the development of industrial internet technology, organizations and enterprises generally tend to associate and manage organization-related data using industrial internet identification. For example, e-commerce platforms typically use industry identification to manage logistics information so that users or logistics companies can review or alter the logistics information at any time. At present, a user generally performs a preset operation on an industrial identifier to change the logistics data associated with the industrial identifier, however, the problem of data leakage caused by tampering of the industrial identifier exists, so that the security is lower when the logistics data is changed.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a method and related equipment for changing logistics data based on industrial identification, so as to solve the technical problem of low data security in the process of changing the data. The related equipment comprises a logistics data changing device based on the industrial identification, electronic equipment and a storage medium.
The application provides a logistics data changing method based on industrial identification, which comprises the following steps: generating request data based on preset operation of a user on the industrial identifier; carrying out semantic recognition on the request message recorded in the request data to obtain a data operation requirement; classifying the data operation requirements, and determining the execution level of the data operation requirements; acquiring the position information of the electronic equipment, and determining the authority level of the electronic equipment according to the position information; when the execution level and the authority level are the same, verifying the identity of the user in the blockchain associated with the industrial identity; and when the identity identification passes the verification, changing the logistics data in the block chain based on the logistics data operation instruction corresponding to the request message.
In some embodiments, the performing semantic recognition on the logistics data operation instruction recorded in the request data to obtain the data operation requirement includes: analyzing the request data according to a preset communication protocol to obtain a request message; word segmentation is carried out on the request message to obtain a plurality of message words; inputting the plurality of message words into a semantic recognition model trained in advance to a convergence state to obtain the semantics of each message word; filling each message vocabulary into a pre-stored prompt template according to the semantics corresponding to each message vocabulary to obtain prompt data; and inputting the prompt data to a generated pre-training model to obtain the data operation requirement.
In some embodiments, when the data operation requirement includes a new, delete, change, or query, the classifying the data operation requirement, determining the execution level of the data operation requirement includes: when the data operation requirement is a query, determining that the execution level of the data operation requirement is low; and when the data operation requirement comprises addition, deletion or change, determining the execution level of the data operation requirement to be high.
In some embodiments, the determining the permission level of the electronic device according to the location information includes: determining track data in the logistics data according to the request data; when the track data does not include the position information, determining that the authority level is low; when the track data comprises the position information, acquiring the current time; and verifying the position information according to the current time and the track data, and determining that the authority level of the electronic equipment is high-grade when the position information passes verification.
In some embodiments, the track data includes a plurality of time stamps, each time stamp corresponding to one location information, and the verifying the location information based on the current time and the track data includes: determining a timestamp closest to the current time as a target timestamp; determining the position information corresponding to the target timestamp as target position information; calculating a time difference between the target timestamp and the current time, and determining a distance between the target position information and the position information; calculating a logistics update rate according to the time difference and the distance; and when the logistics updating rate is within a preset rate range, determining that the position information passes verification.
In some embodiments, the blockchain includes a plurality of nodes, and verifying the identity of the user in the blockchain associated with the industrial identity includes: encrypting the identity based on a secret key to obtain a first digital signature corresponding to the identity; transmitting the first digital signature to the plurality of nodes; receiving a comparison result returned by each node, wherein when the second digital signature stored in the node is the same as the first digital signature, the comparison result is determined to be the same; when the second digital signature stored in the node is different from the first digital signature, determining that the comparison result is different; and when the comparison result is that the same node number is greater than or equal to half of the plurality of nodes, determining that the identity mark passes verification.
In some embodiments, the changing the logistics data in the blockchain based on the logistics data operation instruction corresponding to the request message includes: writing current position information and current time of the electronic device to each node in the blockchain; detecting a data change state corresponding to each node in the block chain according to a preset period, wherein the data change state is used for representing the state of each node in the block chain for changing data; and when the data change state corresponding to each node is successful, determining that the logistics data in the block chain is changed.
The embodiment of the application also provides a logistics data changing device based on the industrial identification, which comprises: the generation module is used for generating request data based on preset operation of a user on the industrial identifier; the identification module is used for carrying out semantic identification on the request message recorded in the request data to obtain the data operation requirement; the determining module is used for classifying the data operation requirements and determining the execution level of the data operation requirements; the determining module is further used for obtaining the position information of the electronic equipment and determining the authority level of the electronic equipment according to the position information; the determining module is further configured to verify the identity of the user in a blockchain associated with the industrial identifier when the execution level and the authority level are the same; and the changing module is used for changing the logistics data in the block chain based on the logistics data operation instruction corresponding to the request message when the identity authentication is passed.
The embodiment of the application also provides electronic equipment, which comprises: a memory storing at least one instruction; and the processor executes the instructions stored in the memory to realize the logistics data changing method based on the industrial identification.
The embodiment of the application also provides a computer readable storage medium, wherein at least one instruction is stored in the computer readable storage medium, and the at least one instruction is executed by a processor in electronic equipment to realize the logistics data changing method based on the industrial identification.
According to the technical scheme, the data operation requirements are obtained by carrying out semantic recognition on the request message recorded in the request data, so that the accuracy of understanding the request data is improved, and the accuracy of data change operation is further improved. And classifying the data operation requirements, determining the execution level of the data operation requirements, determining the authority level of the electronic equipment according to the position information, and evaluating whether a user changes the data in the blockchain by using the electronic equipment at the current position according to the execution level and the authority level, thereby improving the safety of data change.
Drawings
Fig. 1 is an application scenario diagram of a method for changing logistics data based on industrial identification according to an embodiment of the present application.
Fig. 2 is a flowchart of a method for changing logistics data based on industrial identification according to an embodiment of the present application.
FIG. 3 is a flow chart of a method of determining operational requirements provided by an embodiment of the present application.
Fig. 4 is a flowchart of a method for determining a permission level of an electronic device according to an embodiment of the present application.
Fig. 5 is a functional block diagram of a logistics data changing apparatus based on industrial identification according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order that the objects, features and advantages of the present application may be more clearly understood, a more particular description of the invention will be rendered by reference to specific embodiments thereof which are illustrated in the appended drawings. It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application, the described embodiments are merely some, rather than all, of the embodiments of the present application.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more of the described features. In the description of the present application, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The term "and/or" as used herein includes any and all combinations of one or more of the associated listed items.
The embodiment of the application provides a logistics data changing method based on industrial identification, which can be applied to one or more electronic devices, wherein the electronic devices are devices capable of automatically performing numerical calculation and/or information processing according to preset or stored instructions, and the hardware comprises, but is not limited to, a microprocessor, an application specific integrated circuit (Application Specific Integrated Circuit, an ASIC), a programmable gate array (Field-Programmable Gate Array, FPGA), a digital processor (Digital Signal Processor, DSP), an embedded device and the like.
The electronic device may be any electronic product that can interact with a customer in a human-machine manner, such as a personal computer, tablet, smart phone, personal digital assistant (Personal Digital Assistant, PDA), gaming machine, interactive web television (Internet Protocol Television, IPTV), smart wearable device, etc.
The electronic device may also include a network device and/or a client device. Wherein the network device includes, but is not limited to, a single network server, a server group composed of a plurality of network servers, or a Cloud based Cloud Computing (Cloud Computing) composed of a large number of hosts or network servers.
The network in which the electronic device is located includes, but is not limited to, the internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (Virtual Private Network, VPN), and the like.
As shown in fig. 1, the method for changing logistics data based on industrial identification provided in the present application may be applied to an electronic device 100, where the electronic device 100 is communicatively connected to a database 200, and is used for verifying data to be verified stored in the database 200.
Wherein the electronic device 100 comprises a display device 101, the display device 101 being adapted to present the industrial identification 102 to a user. The electronic device 100 generates data request data in response to a preset operation performed on the industrial identifier 102 by a user, and performs a change operation on the blockchain 210 stored in the database 200 according to the data request data, where the change operation includes adding, deleting, modifying, and querying.
The electronic device 100 may be a mobile phone or a mobile terminal, and the database 200 may be a data storage device in the mobile phone or the terminal, or may be a distributed storage cluster communicatively connected to the electronic device 100. The display device 101 may be a display of a cell phone or terminal and the industrial identification 102 may be a two-dimensional code, a bar code or a hyperlink in the display. The user may click on the industry identification 102 causing the electronic device 100 to generate data request data. For example, when the industry identifier 102 is associated with logistics data corresponding to a commodity in the blockchain 210, the data request data is used to characterize the need to make changes to that logistics data. The electronic device 100 determines whether to change the logistics data according to the current position and the current time, so that the security of data change can be improved.
Fig. 2 is a flowchart of a method for changing logistics data based on industrial identification according to an embodiment of the present application. The order of the steps in the flowchart may be changed and some steps may be omitted according to various needs. The logistics data changing method based on the industrial identification comprises the following steps.
S20, generating request data based on preset operation of the user on the industrial identification.
In one embodiment of the present application, the industry identifier may be an industry identifier in a front-end page for associating logistics data stored in a distributed manner in a blockchain. The front-end page is used for displaying data, for example, the front-end page can be a commodity introduction page, a production line attribute page and the like. The industrial identifier may be a hyperlink, a two-dimensional code, or a bar code in the front-end page, which is not limited in this application.
In an embodiment of the present application, when a user needs to perform an operation on data stored in a blockchain, a preset operation may be performed on an industrial identifier, for example, clicking a hyperlink, scanning a two-dimensional code, and the like. And the electronic equipment responds to the preset operation of the user on the industrial identification to generate request data. Wherein the requested data is used to characterize a user's need to operate on data in a blockchain associated with the industrial identification.
In one embodiment of the present application, the industry identifier is a static identifier, i.e., the industry identifier is used to associate a network address of the blockchain storing the logistics data. After the user scans the industrial identifier through the electronic device, a dynamic code is obtained, and the dynamic code is used for representing the generation of request data according to the network address associated with the industrial identifier. Wherein the requested data is used to characterize the operational needs of the user on the data stored in the blockchain. For example, the requested data may be used to characterize a user's need to add, delete, alter, or query data stored in the blockchain.
In an embodiment of the present application, the request data conforms to a preset communication protocol, for example, TCP, UDP, HTTP. The request data includes a request header and a request message, the request header including a network address of a request sender (e.g., an electronic device in the present application) and a network address of a request receiver (e.g., all nodes in a blockchain in the present application).
S21, carrying out semantic recognition on the request message recorded in the request data to obtain the data operation requirement.
In one embodiment of the present application, to determine the need of a user to operate on data stored in a blockchain, the semantics of the requested data need first be analyzed to determine the data operation need. In order to ensure more accurate semantic analysis of the request data, the request data can be analyzed according to a communication protocol corresponding to the request data, a logistics data operation instruction recorded in the request data is determined, prompt data is constructed according to a pre-stored prompt template, so that formatted prompt data are obtained, semantic analysis is carried out on the prompt data, and operation requirements corresponding to the request data are obtained. Specifically, please refer to the corresponding detailed description of fig. 3 for determining the operation requirement method.
S22, classifying the data operation requirements, and determining the execution level of the operation requirements.
In an embodiment of the present application, after determining the operation requirement, in order to determine whether an operation corresponding to the operation requirement changes data in the blockchain, an execution level corresponding to the operation requirement may be determined by classifying the operation requirement, where the execution level is used to characterize whether the operation requirement of the user needs to change the data in the blockchain.
In an embodiment of the present application, the data operation requirement corresponding to the requested data includes adding, deleting, changing or querying. Wherein determining the operational requirement permission level comprises: when the operation requirement is new, modified or deleted, determining that the authority level is high; and when the operation requirement is a query, determining that the authority level is low. Wherein classifying the data operation requirement, determining an execution level of the data operation requirement includes: when the operation requirement is a query, determining that the execution level of the data operation requirement is low; and when the operation requirement comprises addition, deletion or change, determining the execution level of the data operation requirement to be high. Specifically, when the data operation requirement is a query, it indicates that the user desires to query the data stored in the blockchain by performing a preset operation on the industrial identifier, and the data stored in the blockchain is not affected, so that the execution level of the data operation requirement can be determined to be low; when the data operation requirement comprises a new or deleted or changed, indicating that the user desires to change the data stored in the blockchain by performing a preset operation on the industrial identifier, the data stored in the blockchain is affected, so that the execution level of the data operation requirement can be determined to be high.
S23, acquiring the position information of the electronic equipment, and determining the authority level of the electronic equipment according to the position information.
In an embodiment of the present application, different data operation requirements correspond to different authority levels, and different authority levels correspond to different data processing manners. Therefore, when the electronic equipment sends out request data which belong to different authority levels, whether the electronic equipment currently has the authority for carrying out data operation can be judged according to the current geographic position of the electronic equipment.
In an embodiment of the present application, the location information of the electronic device may be determined by executing a pre-stored location obtaining instruction, where the location information may be a geographic name, longitude and latitude coordinates, or administrative area name, which is not limited in this application. After determining the location information of the electronic device, a permission level of the electronic device may be determined according to the location information, wherein the permission level is used to characterize a permission of the electronic device to execute the operation instruction in the request data. Specifically, please refer to the detailed description corresponding to fig. 4 for a method for determining the permission level of the electronic device.
And S24, when the execution level and the authority level are the same, verifying the identity of the user in the blockchain associated with the industrial identity.
In an embodiment of the present application, when the execution level of the data operation requirement is low, it indicates that the data stored in the blockchain does not need to be changed, and when the electronic device is not on the product circulation path, the instruction corresponding to the data operation may also be executed; when the execution level of the data operation requirement is high, which indicates that the data stored in the blockchain needs to be changed, the electronic equipment can only diameter the data operation instruction when the electronic equipment is on the circulation path of the product, so that the operations of adding, deleting and changing the data in the blockchain are realized.
In an embodiment of the present application, in order to further ensure accuracy of data verification, so as to improve data security, when the execution level and the authority level are the same, the identity of the user may also be verified in the blockchain associated with the industrial identity. Specifically, the blockchain includes a plurality of nodes, and verifying the identity of the user in the blockchain associated with the industrial identity includes: encrypting the identity based on a secret key to obtain a first digital signature corresponding to the identity; transmitting the first digital signature to the plurality of nodes; receiving a comparison result returned by each node, wherein when the second digital signature stored in the node is the same as the first digital signature, the comparison result is determined to be the same; when the second digital signature stored in the node is different from the first digital signature, determining that the comparison result is different; and when the comparison result is that the same node number is greater than or equal to half of the plurality of nodes, determining that the identity mark passes verification.
S25, when the identity authentication is passed, the logistics data in the block chain is changed based on the logistics data operation instruction corresponding to the request message.
In an embodiment of the present application, when the identity of the user passes the authentication, it indicates that the user currently operating the electronic device may operate on the data in the blockchain. Specifically, the changing the logistics data in the blockchain based on the logistics data operation instruction corresponding to the request message includes: writing current position information and current time of the electronic device to each node in the blockchain; detecting a data change state corresponding to each node in the block chain according to a preset period, wherein the data change state is used for representing the state of each node in the block chain for changing data; and when the data change state corresponding to each node is successful, determining that the logistics data in the block chain is changed.
According to the technical scheme, the data operation requirements are obtained by carrying out semantic recognition on the request message recorded in the request data, so that the accuracy of understanding the request data is improved, and the accuracy of data change operation is further improved. And classifying the data operation requirements, determining the execution level of the data operation requirements, determining the authority level of the electronic equipment according to the position information, and evaluating whether a user changes the data in the blockchain by using the electronic equipment at the current position according to the execution level and the authority level, thereby improving the safety of data change.
FIG. 3 is a flow chart of a method for determining data operation requirements according to an embodiment of the present application. The order of the steps in the flowchart may be changed and some steps may be omitted according to various needs. The method for determining the data operation requirement provided by the embodiment of the application comprises the following steps.
S30, analyzing the request data according to a preset communication protocol to obtain a request message.
In an embodiment of the present application, the request data may be parsed according to a preset communication protocol corresponding to the request data, to obtain a request header and a request packet of the request data, so as to obtain a network address of a data sender and a network address of a data receiver recorded in the request header, and determine the request data from the request packet. For example, when the preset communication protocol is a TCP protocol, the data from the 1 st byte to 60 th byte in the request data may be determined as the request header according to the format of the TCP protocol, and all the data after the 60 th byte in the request data may be determined as the request packet.
S31, word segmentation is carried out on the request message, and a plurality of message words are obtained.
In an embodiment of the present application, in order to perform finer granularity analysis on a request message, so as to improve accuracy of determining data operation requirements, a pre-stored word segmentation tool may be used to segment a request message to obtain a plurality of message vocabularies. The pre-stored word segmentation tool refers to a program or software with a word segmentation function, and the application is not limited to the program or the software. Illustratively, the pre-stored word segmentation tools may be a Jieba word segmentation tool, a HanLP word segmentation tool, or the like.
S32, inputting the plurality of message words into a semantic recognition model trained to a convergence state in advance to obtain the semantics of each message word.
In an embodiment of the present application, to determine the semantics of each message vocabulary, a plurality of message vocabularies may be input into a semantic recognition model trained in advance to a convergence state. The semantic recognition model may be any model with a semantic recognition function, for example, the semantic recognition model may be a long-term and short-term memory model, a cyclic neural network model, and the like, which is not limited in this application.
S33, filling each message vocabulary into a pre-stored prompt template according to the semantics corresponding to each message vocabulary, and obtaining prompt data.
In an embodiment of the present application, the message vocabulary may be filled into a pre-constructed alert template according to the semantics corresponding to each message vocabulary, so as to obtain alert data. The prompt template comprises one or more of the following prompt messages: background hints, instruction hints, examples, and constraints. The background prompt is used for characterizing the background of the content recorded in the request message, for example, the background prompt information can be "you are a semantic recognition assistant with high intention understanding ability"; the instruction prompt information is used for representing the operation to be completed and outputting a result, for example, the instruction prompt information can be 'recognition semantics', and can also be 'translation of a text'; the constraint information is used for representing the constraint condition of the output data of the generated pre-training model, for example, the constraint condition information can be "output maximum byte number", "output language", "output format" and the like; the example information is used to characterize possible forms of operational requirements corresponding to the requested data.
For example, when the content in the request message is "adding the current geographical location information and the current time information to the logistics data of the blockchain", the target description information includes data table 1, field 1, integer data; data table 2, field 2, single precision floating point data, then the hint information may be:
"background prompt: you are a semantic understanding assistant.
Instruction prompting: the semantics corresponding to the following need to be identified. The associated data table description information includes: table 1: field 1: external key, integer data; table 2: field 2: internal key, single precision floating point data. Data operation requirements: equal data is selected from the outer keys of table 1 and the inner keys of table 2.
Limiting conditions: the textual description is output, no more than 20 bytes.
Example information: and adding the geographic position information and the current time information to the logistics data.
In this way, the discrete message vocabulary is structured by utilizing the pre-constructed prompting template to obtain the prompting information related to the request data, so that the generated pre-training model is convenient to understand the semantics of the request data, and the accuracy of the subsequent determination of the operation requirement can be improved.
S34, inputting the prompt data to a generated pre-training model to obtain the operation requirement corresponding to the request data.
In an embodiment of the present application, after obtaining the prompt data, the semantics corresponding to the request data, that is, the operation requirements corresponding to the request data, may be obtained by inputting the prompt data into the generated pre-training model. The operation requirement is used for representing the requirement of a user for carrying out preset operation on the industrial identification.
In an embodiment of the present application, request data sent to the electronic device after the user performs the preset operation on the industrial identifier is used to characterize a request of the user for performing the operation on the logistics order, where a request message in the request data is also used to record order information that the user needs to query. As shown in fig. 4, a flowchart of a method for determining a permission level of an electronic device according to an embodiment of the present application is provided. The order of the steps in the flowchart may be changed and some steps may be omitted according to various needs. The method for determining the permission level of the electronic equipment comprises the following steps.
S40, determining track data in the logistics data according to the request data.
In an embodiment of the present application, the request message of the request data is further used for recording logistics data of the product, where the logistics data includes a product name, buyer data, seller data, track data, and the like. Specifically, the track data is used for representing the path of the product circulation corresponding to the logistics data. The track data comprises a plurality of time stamps, and each time stamp corresponds to one piece of position information. For example, the format of the trajectory data may be: "timestamp 1: position information 1; timestamp 2: position information 2; timestamp 3: position information 3; timestamp 3: position information 3".
For example, when the request data is used for representing that the user adds the logistics transfer information to the logistics data through the electronic device, the track data is used for representing a product circulation path corresponding to an order corresponding to the logistics data in a product circulation process.
And S41, when the track data does not comprise the position information, determining that the authority level is low.
In an embodiment of the present application, when the track data does not include the current location information of the electronic device, it indicates that the electronic device has deviated from the path of the product circulation. Thus, the permission level of the electronic device may be determined to be low. Wherein the permission level is low for characterizing that the electronic device is not currently permitted to perform the high-level operation.
S42, when the track data comprises the position information, acquiring the current time.
In an embodiment of the present application, when the track data includes the position information, the electronic device is currently in a path of the product circulation in the logistics order, which indicates that the electronic device is not currently deviated from the path of the product circulation. In order to further determine whether the location information is reasonable and whether the electronic device can perform data change at the location corresponding to the location information, the current time may be acquired and the location information may be verified according to the current time and the track data.
And S43, verifying the position information according to the current time and the track data, and determining that the authority level of the electronic equipment is high when the position information passes verification.
In an embodiment of the present application, in order to determine whether the current location and the current time of the electronic device can change the data in the blockchain, the location information may be verified according to the current time and the track data, and when the location information passes verification, it indicates that the current location and the current time of the electronic device can change the data in the blockchain.
In one embodiment of the present application, the trajectory data includes a plurality of time stamps, each time stamp corresponding to one piece of location information, wherein each piece of location information is used to characterize a node in a commodity circulation path (e.g., a transfer station on a logistics transportation route). Specifically, verifying the location information according to the current time and the trajectory data includes: determining a timestamp closest to the current time as a target timestamp; determining the position information corresponding to the target timestamp as target position information; calculating a time difference between the target timestamp and the current time, and determining a distance between the target position information and the position information; calculating a logistics update rate according to the time difference and the distance; and when the logistics updating rate is within a preset rate range, determining that the position information passes verification.
In an embodiment of the present application, a timestamp that is closest to the current time is used to characterize a time when the logistics information is updated last time, and the location information corresponding to the timestamp is the location where the logistics information is updated last time.
Referring to fig. 5, fig. 5 is a functional block diagram of a physical distribution data changing device based on an industrial identifier according to an embodiment of the present application. The logistics data changing apparatus 11 based on the industrial identification includes a generating module 110, an identifying module 111, a determining module 112 and a changing module 113. The module/unit referred to herein is a series of computer readable instructions capable of being executed by the processor 13 and of performing a fixed function, stored in the memory 12. In the present embodiment, the functions of the respective modules/units will be described in detail in the following embodiments.
The generating module 110 is configured to generate request data based on a preset operation of the user on the industrial identification line.
The identifying module 111 is configured to perform semantic identification on the request message recorded in the request data, so as to obtain a data operation requirement.
The determining module 112 is configured to classify the data operation requirement, and determine an execution level of the data operation requirement.
The determining module 112 is further configured to obtain location information of the electronic device, and determine a permission level of the electronic device according to the location information.
The determining module 112 is further configured to verify the identity of the user in the blockchain associated with the industrial identity when the execution level and the authority level are the same.
And the changing module 113 is configured to change the logistics data in the blockchain based on the logistics data operation instruction corresponding to the request message when the identity verification passes.
In some embodiments, the identification module 111 is specifically configured to: analyzing the request data according to a preset communication protocol to obtain a request message; word segmentation is carried out on the request message to obtain a plurality of message words; inputting the plurality of message words into a semantic recognition model trained in advance to a convergence state to obtain the semantics of each message word; filling each message vocabulary into a pre-stored prompt template according to the semantics corresponding to each message vocabulary to obtain prompt data; and inputting the prompt data to a generated pre-training model to obtain the data operation requirement.
In some embodiments, when the data operation requirement includes a new addition, deletion, change, or query, the determining module 112 classifies the data operation requirement, and determining the execution level of the data operation requirement includes: when the data operation requirement is a query, determining that the execution level of the data operation requirement is low; and when the data operation requirement comprises addition, deletion or change, determining the execution level of the data operation requirement to be high.
In some embodiments, the determining module 112 is specifically configured to: determining track data in the logistics data according to the request data; when the track data does not include the position information, determining that the authority level is low; when the track data comprises the position information, acquiring the current time; and verifying the position information according to the current time and the track data, and determining that the authority level of the electronic equipment is high-grade when the position information passes verification.
In some embodiments, the track data includes a plurality of time stamps, each time stamp corresponding to one location information, and the determining module 112 verifies the location information based on the current time and the track data includes: determining a timestamp closest to the current time as a target timestamp; determining the position information corresponding to the target timestamp as target position information; calculating a time difference between the target timestamp and the current time, and determining a distance between the target position information and the position information; calculating a logistics update rate according to the time difference and the distance; and when the logistics updating rate is within a preset rate range, determining that the position information passes verification.
In some embodiments, the determining module 112 is specifically configured to: encrypting the identity based on a secret key to obtain a first digital signature corresponding to the identity; transmitting the first digital signature to the plurality of nodes; receiving a comparison result returned by each node, wherein when the second digital signature stored in the node is the same as the first digital signature, the comparison result is determined to be the same; when the second digital signature stored in the node is different from the first digital signature, determining that the comparison result is different; and when the comparison result is that the same node number is greater than or equal to half of the plurality of nodes, determining that the identity mark passes verification.
In some embodiments, the modification module 113 is specifically configured to: writing current position information and current time of the electronic device to each node in the blockchain; detecting a data change state corresponding to each node in the block chain according to a preset period, wherein the data change state is used for representing the state of each node in the block chain for changing data; and when the data change state corresponding to each node is successful, determining that the logistics data in the block chain is changed.
According to the technical scheme, the data operation requirements are obtained by carrying out semantic recognition on the request message recorded in the request data, so that the accuracy of understanding the request data is improved, and the accuracy of data change operation is further improved. And classifying the data operation requirements, determining the execution level of the data operation requirements, determining the authority level of the electronic equipment according to the position information, and evaluating whether a user changes the data in the blockchain by using the electronic equipment at the current position according to the execution level and the authority level, thereby improving the safety of data change.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device 1 comprises a memory 12 and a processor 13. The memory 12 is configured to store computer readable instructions, and the processor 13 is configured to execute the computer readable instructions stored in the memory to implement the method for changing logistics data based on industrial identification according to any one of the above embodiments.
In an embodiment of the present application, the electronic device 1 further comprises a bus, a computer program stored in said memory 12 and executable on said processor 13, such as a logistics data modification program based on an industrial identification.
Fig. 6 shows only an electronic device 1 with a memory 12 and a processor 13, it being understood by a person skilled in the art that the structure shown in fig. 6 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than shown, or may combine certain components, or a different arrangement of components.
In connection with fig. 2, the memory 12 in the electronic device 1 stores a plurality of computer readable instructions to implement a method for altering logistics data based on an industrial identification, the processor 13 being executable to implement: generating request data based on preset operation of a user on the industrial identifier; carrying out semantic recognition on the request message recorded in the request data to obtain a data operation requirement; classifying the data operation requirements, and determining the execution level of the data operation requirements; acquiring the position information of the electronic equipment, and determining the authority level of the electronic equipment according to the position information; when the execution level and the authority level are the same, verifying the identity of the user in the blockchain associated with the industrial identity; and when the identity identification passes the verification, changing the logistics data in the block chain based on the logistics data operation instruction corresponding to the request message.
Specifically, the specific implementation method of the above instructions by the processor 13 may refer to the description of the relevant steps in the corresponding embodiment of fig. 2, which is not repeated herein.
It will be appreciated by those skilled in the art that the schematic diagram is merely an example of the electronic device 1 and does not constitute a limitation of the electronic device 1, the electronic device 1 may be a bus type structure, a star type structure, the electronic device 1 may further comprise more or less other hardware or software than illustrated, or a different arrangement of components, e.g. the electronic device 1 may further comprise an input-output device, a network access device, etc.
It should be noted that the electronic device 1 is only used as an example, and other electronic products that may be present in the present application or may be present in the future are also included in the scope of the present application and are incorporated herein by reference.
The memory 12 includes at least one type of readable storage medium, which may be non-volatile or volatile. The readable storage medium includes flash memory, a removable hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 12 may in some embodiments be an internal storage unit of the electronic device 1, such as a mobile hard disk of the electronic device 1. The memory 12 may in other embodiments also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the electronic device 1. The memory 12 may be used not only for storing application software installed in the electronic device 1 and various types of data, such as codes of a logistics data change program based on an industrial identification, but also for temporarily storing data that has been output or is to be output.
The processor 13 may be comprised of integrated circuits in some embodiments, for example, a single packaged integrated circuit, or may be comprised of multiple integrated circuits packaged with the same or different functions, including one or more central processing units (Central Processing unit, CPU), microprocessors, digital processing chips, graphics processors, a combination of various control chips, and the like. The processor 13 is a Control Unit (Control Unit) of the electronic device 1, connects the respective components of the entire electronic device 1 using various interfaces and lines, executes various functions of the electronic device 1 and processes data by running or executing programs or modules stored in the memory 12 (for example, executing a logistics data change program based on an industrial identification, etc.), and calling data stored in the memory 12.
The processor 13 executes the operating system of the electronic device 1 and various types of applications installed. The processor 13 executes the application program to implement the steps of the various embodiments of the industrial identifier-based logistics data modification method described above, such as the steps shown in fig. 2.
Illustratively, the computer program may be partitioned into one or more modules/units that are stored in the memory 12 and executed by the processor 13 to complete the present application. The one or more modules/units may be a series of computer readable instruction segments capable of performing the specified functions, which instruction segments describe the execution of the computer program in the electronic device 1. For example, the computer program may be divided into a generation module 110, an identification module 111, a determination module 112 and a modification module 113.
The integrated units implemented in the form of software functional modules described above may be stored in a computer readable storage medium. The software functional module is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a computer device, or a network device, etc.) or a Processor (Processor) to execute portions of the method for changing logistics data based on industrial identification according to various embodiments of the present application.
The integrated modules/units of the electronic device 1 may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as a stand alone product. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by instructing the relevant hardware device by a computer program, where the computer program may be stored in a computer readable storage medium, and the computer program may implement the steps of each method embodiment described above when executed by a processor.
Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory, other memories, and the like.
Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created from the use of blockchain nodes, and the like.
The bus may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, only one arrow is shown in FIG. 6, but only one bus or one type of bus is not shown. The bus is arranged to enable a connection communication between the memory 12 and at least one processor 13 or the like.
The embodiment of the application further provides a computer readable storage medium (not shown), in which computer readable instructions are stored, and the computer readable instructions are executed by a processor in an electronic device to implement the method for changing logistics data based on industrial identification according to any one of the embodiments.
In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be other manners of division when actually implemented.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units can be realized in a form of hardware or a form of hardware and a form of software functional modules.
Furthermore, it is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. Several of the elements or devices described in the specification may be embodied by one and the same item of software or hardware. The terms first, second, etc. are used to denote a name, but not any particular order.
Finally, it should be noted that the above embodiments are merely for illustrating the technical solution of the present application and not for limiting, and although the present application has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that the technical solution of the present application may be modified or substituted without departing from the spirit and scope of the technical solution of the present application.

Claims (10)

1. A method for changing logistics data based on industrial identification, which is applied to electronic equipment, and is characterized in that the method comprises the following steps:
generating request data based on preset operation of a user on the industrial identifier;
carrying out semantic recognition on the request message recorded in the request data to obtain a data operation requirement;
classifying the data operation requirements, and determining the execution level of the data operation requirements;
acquiring the position information of the electronic equipment, and determining the authority level of the electronic equipment according to the position information;
when the execution level and the authority level are the same, verifying the identity of the user in the blockchain associated with the industrial identity;
and when the identity identification passes the verification, changing the logistics data in the block chain based on the logistics data operation instruction corresponding to the request message.
2. The method for changing logistics data based on industrial identification according to claim 1, wherein said performing semantic recognition on the logistics data operation instruction recorded in the request data to obtain the data operation requirement comprises:
analyzing the request data according to a preset communication protocol to obtain a request message;
Word segmentation is carried out on the request message to obtain a plurality of message words;
inputting the plurality of message words into a semantic recognition model trained in advance to a convergence state to obtain the semantics of each message word;
filling each message vocabulary into a pre-stored prompt template according to the semantics corresponding to each message vocabulary to obtain prompt data;
and inputting the prompt data to a generated pre-training model to obtain the data operation requirement.
3. The method for changing logistics data based on industrial identification of claim 1, wherein when the data operation requirement comprises a new addition, a deletion, a change or a query, the classifying the data operation requirement, determining the execution level of the data operation requirement comprises:
when the data operation requirement is a query, determining that the execution level of the data operation requirement is low;
and when the data operation requirement comprises addition, deletion or change, determining the execution level of the data operation requirement to be high.
4. The method for changing logistics data based on industrial identification of claim 1, wherein said determining the authority level of said electronic apparatus based on said location information comprises:
Determining track data in the logistics data according to the request data;
when the track data does not include the position information, determining that the authority level is low;
when the track data comprises the position information, acquiring the current time;
and verifying the position information according to the current time and the track data, and determining that the authority level of the electronic equipment is high-grade when the position information passes verification.
5. The method of claim 4, wherein the track data includes a plurality of time stamps, each time stamp corresponding to one location information, and wherein verifying the location information based on the current time and the track data comprises:
determining a timestamp closest to the current time as a target timestamp;
determining the position information corresponding to the target timestamp as target position information;
calculating a time difference between the target timestamp and the current time, and determining a distance between the target position information and the position information;
calculating a logistics update rate according to the time difference and the distance;
and when the logistics updating rate is within a preset rate range, determining that the position information passes verification.
6. The industrial-identity-based logistics data alteration method of claim 1, wherein the blockchain comprises a plurality of nodes, and verifying the identity of the user in the blockchain associated with the industrial identity comprises:
encrypting the identity based on a secret key to obtain a first digital signature corresponding to the identity;
transmitting the first digital signature to the plurality of nodes;
receiving a comparison result returned by each node, wherein when the second digital signature stored in the node is the same as the first digital signature, the comparison result is determined to be the same; when the second digital signature stored in the node is different from the first digital signature, determining that the comparison result is different;
and when the comparison result is that the same node number is greater than or equal to half of the plurality of nodes, determining that the identity mark passes verification.
7. The method for changing logistics data based on industrial identification of claim 6, wherein the changing logistics data in the blockchain based on the logistics data operation instruction corresponding to the request message comprises:
writing current position information and current time of the electronic device to each node in the blockchain;
Detecting a data change state corresponding to each node in the block chain according to a preset period, wherein the data change state is used for representing the state of each node in the block chain for changing data;
and when the data change state corresponding to each node is successful, determining that the logistics data in the block chain is changed.
8. An industrial-identifier-based logistics data modification apparatus, comprising a module for implementing the industrial-identifier-based logistics data modification method as set forth in any one of claims 1 to 7, the apparatus comprising:
the generation module is used for generating request data based on preset operation of a user on the industrial identifier;
the identification module is used for carrying out semantic identification on the request message recorded in the request data to obtain the data operation requirement;
the determining module is used for classifying the data operation requirements and determining the execution level of the data operation requirements;
the determining module is further used for obtaining the position information of the electronic equipment and determining the authority level of the electronic equipment according to the position information;
the determining module is further configured to verify the identity of the user in a blockchain associated with the industrial identifier when the execution level and the authority level are the same;
And the changing module is used for changing the logistics data in the block chain based on the logistics data operation instruction corresponding to the request message when the identity authentication is passed.
9. An electronic device, the electronic device comprising:
a memory storing computer readable instructions; a kind of electronic device with high-pressure air-conditioning system
A processor executing computer readable instructions stored in the memory to implement the industrial identification-based logistics data alteration method of any one of claims 1 to 7.
10. A computer readable storage medium having stored thereon computer readable instructions which when executed by a processor implement the industrial identification based logistics data change method of any one of claims 1 to 7.
CN202311441669.XA 2023-11-01 2023-11-01 Logistics data changing method and related equipment based on industrial identification Active CN117171185B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311441669.XA CN117171185B (en) 2023-11-01 2023-11-01 Logistics data changing method and related equipment based on industrial identification

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311441669.XA CN117171185B (en) 2023-11-01 2023-11-01 Logistics data changing method and related equipment based on industrial identification

Publications (2)

Publication Number Publication Date
CN117171185A CN117171185A (en) 2023-12-05
CN117171185B true CN117171185B (en) 2024-01-05

Family

ID=88943484

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311441669.XA Active CN117171185B (en) 2023-11-01 2023-11-01 Logistics data changing method and related equipment based on industrial identification

Country Status (1)

Country Link
CN (1) CN117171185B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108475365A (en) * 2015-12-30 2018-08-31 微软技术许可有限责任公司 By management role classification and divide priority
CN112085417A (en) * 2020-09-24 2020-12-15 北京工业大学 Industrial Internet identification distribution and data management method based on block chain
CN112966028A (en) * 2021-03-26 2021-06-15 全球能源互联网研究院有限公司 Data traceability system, method and device based on industrial internet identification
CN114493451A (en) * 2022-01-29 2022-05-13 山东浪潮工业互联网产业股份有限公司 Logistics management method and device based on industrial internet identification analysis

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115701607A (en) * 2021-08-02 2023-02-10 深圳富联富桂精密工业有限公司 Rule updating method based on block chain, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108475365A (en) * 2015-12-30 2018-08-31 微软技术许可有限责任公司 By management role classification and divide priority
CN112085417A (en) * 2020-09-24 2020-12-15 北京工业大学 Industrial Internet identification distribution and data management method based on block chain
CN112966028A (en) * 2021-03-26 2021-06-15 全球能源互联网研究院有限公司 Data traceability system, method and device based on industrial internet identification
CN114493451A (en) * 2022-01-29 2022-05-13 山东浪潮工业互联网产业股份有限公司 Logistics management method and device based on industrial internet identification analysis

Also Published As

Publication number Publication date
CN117171185A (en) 2023-12-05

Similar Documents

Publication Publication Date Title
CN109067541B (en) Data verification method and device based on block chain and electronic equipment
CN110602248B (en) Abnormal behavior information identification method, system, device, equipment and medium
CN112241506B (en) User behavior backtracking method, device, equipment and system
CN110352425A (en) The cognition supervision compliance automation of block chain transaction
CN109359026A (en) Log reporting method, device, electronic equipment and computer readable storage medium
US20210168156A1 (en) System and method for verification of reliability and validity of crowd sourcing users
CN113283675B (en) Index data analysis method, device, equipment and storage medium
CN112328486A (en) Interface automation test method and device, computer equipment and storage medium
CN115329381A (en) Sensitive data-based analysis and early warning method and device, computer equipment and medium
CN113434542B (en) Data relationship identification method and device, electronic equipment and storage medium
CN113408254A (en) Page form information filling method, device, equipment and readable medium
CN111639903A (en) Review processing method for architecture change and related equipment
CN112434506A (en) Electronic protocol signing processing method, device, computer equipment and medium
CN117171185B (en) Logistics data changing method and related equipment based on industrial identification
CN113177543B (en) Certificate identification method, device, equipment and storage medium
CN112950154B (en) Flow information matching method, device, equipment and storage medium
CN112085469B (en) Data approval method, device, equipment and storage medium based on vector machine model
CN114637672A (en) Automatic data testing method and device, computer equipment and storage medium
CN113934729A (en) Data management method based on knowledge graph, related equipment and medium
CN117312349B (en) Data updating method based on industrial identification and related equipment
CN111597453A (en) User image drawing method and device, computer equipment and computer readable storage medium
CN117171816B (en) Data verification method based on industrial identification and related equipment
CN111061885A (en) Electronic document making method and system
CN115577867B (en) Method and system for creating spot check task, computer equipment and storage medium
US20220245124A1 (en) Verified entity attributes

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
GR01 Patent grant
GR01 Patent grant