...
|
...
|
@@ -554,10 +554,26 @@ class Helpers |
|
|
* @param string $callback 回调方法名
|
|
|
* @return string
|
|
|
*/
|
|
|
public static function syncUserSession($uid, $refer = '', $callback='call')
|
|
|
public static function syncUserSession($uid, $refer = '', $callback = 'call')
|
|
|
{
|
|
|
return 'http://m1.yohobuy.com/Passport/session/index?callback=' . $callback
|
|
|
. '&sign=' . md5($uid . 'Js8Yn0!EwPM45-ws') . '&uid=' . $uid . '&go=' . $refer;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 退出清除用户的会话
|
|
|
*
|
|
|
* 转向老的PHP服务器上处理, 因购物车相关的操作会依赖SESSION
|
|
|
*
|
|
|
* @param int $uid 用户ID
|
|
|
* @param string $refer 访问来源
|
|
|
* @param string $callback 回调方法名
|
|
|
* @return string
|
|
|
*/
|
|
|
public static function logoutSession($token, $callback = 'call')
|
|
|
{
|
|
|
return 'http://m1.yohobuy.com/Passport/session/logout?callback=' . $callback
|
|
|
. '&sign=' . md5('Js8Yn0!EwPM45-ws') . '&token=' . $token;
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|