There are three different exchange rates in the above two formulas. The premium and discount exchange rates are foreign exchange rates, that is, 1 how much local currency a unit foreign currency can be converted into, and the forward and spot exchange rates in direct quotation refer to 1 how much local currency a unit foreign currency can be converted into.
It is exactly the same as the standard of foreign exchange rate, but the forward and spot exchange rates in indirect pricing method refer to how much foreign currency a unit's local currency can replace, which is just the opposite of the standard of foreign exchange rate, which leads to different formulas.