|
@@ -17,13 +17,12 @@ class Index {
|
|
|
|
|
|
$visitorId = input('visitorId');
|
|
|
$notifyUrl = input('notify_url');
|
|
|
- var_dump(input());
|
|
|
- die();
|
|
|
-// if (empty(session('unionid'))){
|
|
|
-// header("Location:".CommonService::getAuthUrl());
|
|
|
-//// redirect(CommonService::getAuthUrl());
|
|
|
-// die();
|
|
|
-// }
|
|
|
+
|
|
|
+ if (empty(Session::get('wxId'))){
|
|
|
+ header("Location:".CommonService::getAuthUrl());
|
|
|
+// redirect(CommonService::getAuthUrl());
|
|
|
+ die();
|
|
|
+ }
|
|
|
//增加客户自己的验证逻辑,例如登录,关注,付费,填手机号等
|
|
|
$key = md5($visitorId.CommonService::getSetData()['channel_auth_code']);
|
|
|
if(strpos($notifyUrl,'?') !== false){//url参数处理,将key加到url参数中
|