...
|
...
|
@@ -799,7 +799,12 @@ class Helpers |
|
|
*/
|
|
|
public static function syncUserSession($uid, $refer = '', $callback = 'call')
|
|
|
{
|
|
|
return 'http://mapi.yohobuy.com/Passport/session/index?callback=' . $callback
|
|
|
if(APPLICATION_ENV == 'production') {
|
|
|
$domain = 'http://mapi.yohobuy.com';
|
|
|
} else {
|
|
|
$domain = 'http://m1.yohobuy.com';
|
|
|
}
|
|
|
return $domain.'/Passport/session/index?callback=' . $callback
|
|
|
. '&sign=' . md5(md5($uid . 'Js8Yn0!EwPM45-ws')) . '&uid=' . $uid . '&go=' . $refer;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -815,7 +820,12 @@ class Helpers |
|
|
*/
|
|
|
public static function logoutSession($token, $refer = '', $callback = 'call')
|
|
|
{
|
|
|
return 'http://mapi.yohobuy.com/Passport/session/logout?callback=' . $callback
|
|
|
if(APPLICATION_ENV == 'production') {
|
|
|
$domain = 'http://mapi.yohobuy.com';
|
|
|
} else {
|
|
|
$domain = 'http://m1.yohobuy.com';
|
|
|
}
|
|
|
return $domain.'/Passport/session/logout?callback=' . $callback
|
|
|
. '&sign=' . md5(md5('Js8Yn0!EwPM45-ws')) . '&token=' . $token . '&go=' . $refer;
|
|
|
}
|
|
|
|
...
|
...
|
|