...
|
...
|
@@ -525,7 +525,7 @@ class Helpers |
|
|
public static function getVipLevel($vipInfo)
|
|
|
{
|
|
|
$vipLevel = 0;
|
|
|
|
|
|
|
|
|
switch ($vipInfo) {
|
|
|
case '普通会员':
|
|
|
$vipLevel = 0;
|
...
|
...
|
@@ -540,10 +540,10 @@ class Helpers |
|
|
$vipLevel = 3;
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
|
|
|
return $vipLevel;
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 同步用户的会话
|
|
|
*
|
...
|
...
|
@@ -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
|
|
|
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;
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|