Platform value is wrong

Hi everybody, 

I am working son Sugar Ondemand 9.3.

I have a logic hook that recovers the value of the platform parameter when an external application invokes sugar. However, it does not matter what value we pass it, it always returns "base" value, we have already tried with "mobile, opi, api (which is custom)", but it always returns "base" value , which is incorrect,
This is the line of code that we use to retrieve the value:
"$plataforma=$GLOBALS['service']->platform;"
Locally, it is working correctly.

If someone has an idea, i would thank you a lot.

Regards