|
@@ -18,24 +18,10 @@ class User extends BaseController {
|
|
'userid' => input('unionid'),
|
|
'userid' => input('unionid'),
|
|
'name' => input('nickName'),
|
|
'name' => input('nickName'),
|
|
'avatar' => input('avatar'),
|
|
'avatar' => input('avatar'),
|
|
- 'key' => md5(input('userid').CommonService::getSetData()['channel_auth_code'])
|
|
|
|
|
|
+ 'key' => md5(input('unionid').CommonService::getSetData()['channel_auth_code'])
|
|
];
|
|
];
|
|
session('unionid', input('unionid'));
|
|
session('unionid', input('unionid'));
|
|
- if (session('unionid')){
|
|
|
|
- $visitorId = input('visitorId');
|
|
|
|
- $notifyUrl = input('notify_url');
|
|
|
|
- var_dump(input());
|
|
|
|
- die();
|
|
|
|
- //增加客户自己的验证逻辑,例如登录,关注,付费,填手机号等
|
|
|
|
- $key = md5($visitorId.CommonService::getSetData()['channel_auth_code']);
|
|
|
|
- if(strpos($notifyUrl,'?') !== false){//url参数处理,将key加到url参数中
|
|
|
|
- $returnUrl = $notifyUrl."&key=".$key."&expire=3600";
|
|
|
|
- }else{
|
|
|
|
- $returnUrl = $notifyUrl."?key=".$key."&expire=3600";
|
|
|
|
- }
|
|
|
|
- header("Location:".$returnUrl);//跳转到直播观看页
|
|
|
|
- die();
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
header('Location:http://mudu.tv/activity.php?a=userAssign&'.http_build_query($params));
|
|
header('Location:http://mudu.tv/activity.php?a=userAssign&'.http_build_query($params));
|
|
}
|
|
}
|
|
}
|
|
}
|