As the increasing throughput of commercial ports and the carrying capacity of large-scale container terminals, the phenomena such as dangerous goods' wrong declaration and false reporting have become increasingly prominent. Intelligent supervision of dangerous goods is essential. Aimed at the problems of poor scalability, high communication overhead, and low efficiency of the existing Practical Byzantine Fault Tolerance (PBFT) algorithm in the consortium blockchain's scenario, we design a hybrid consensus algorithm Link-Identification-Based Raft and PBFT Hybrid Consensus Mechanism (LRPBFT). Compared with the existing traceability platform of dangerous goods based on the blockchain, the LRPBFT algorithm enables the platform to have less delay, greater throughput and higher security while uploads information to the chain.