|
@@ -318,6 +318,7 @@ class RedirectController extends BaseController
|
|
|
}
|
|
|
parse_str($info['query'],$output);
|
|
|
if(!isset($output['bid']) || !isset($output['cid'])) return redirect()->to('/');
|
|
|
+ $distribution_channel_id = decodeDistributionChannelId($channel_id);
|
|
|
if($from_type){
|
|
|
//['custom','template']
|
|
|
$push_info = explode('_',$from_type);
|
|
@@ -327,7 +328,7 @@ class RedirectController extends BaseController
|
|
|
}
|
|
|
if(str_contains($from_type,['custom']) && $push_id){
|
|
|
$info = CustomSendMsgs::customSendMsgsById($push_id);
|
|
|
- if(!$info || $info->distribution_channel_id != $this->distribution_channel_id){
|
|
|
+ if(!$info || $info->distribution_channel_id != $distribution_channel_id){
|
|
|
return redirect()->to('/');
|
|
|
}
|
|
|
$push_transfer_custom_flag = Cookie::get('push_transfer_custom_flag');
|
|
@@ -341,7 +342,7 @@ class RedirectController extends BaseController
|
|
|
}
|
|
|
if(str_contains($from_type,['template']) && $push_id){
|
|
|
$info = WechatTemplateMsgs::wechatTemplateMsgsById($push_id);
|
|
|
- if(!$info || $info->distribution_channel_id != $this->distribution_channel_id){
|
|
|
+ if(!$info || $info->distribution_channel_id != $distribution_channel_id){
|
|
|
return redirect()->to('/');
|
|
|
}
|
|
|
$push_transfer_template_flag = Cookie::get('push_transfer_template_flag');
|