Explosion-proof two-way junction box