they are different.
Even if you buy ticket, shanghai-ottawa-shanghai here, the price is a little higher than ottawa-shanghai-ottawa.
For aircanada, it does not matter much if you buy ticket in canada or china.
But for air china, it is a little cheaper here.
Sawol