江湖家居6.0版公司收不到业主报名优惠活动短信的解决办法
江湖家居V6.0标准版和至尊版,后台短信设置无误,短信模版也设置正常,但是装饰公司收不到业主报名优惠活动短信通知,不知什么原因?解决方法:
打开 D:\jhzzb6.0\system\home\controllers\youhui.ctl.php 文件,查找如下代码:
public functionsign($youhui_id)
{
if(!($youhui_id = (int)$youhui_id) && !($youhui_id = $this->GP('youhui_id'))){
$this->error(404);
}else if(!$detail = K::M('company/youhui')->detail($youhui_id)){
$this->error(404);
}else if(empty($detail['audit'])){
$this->err->add("内容审核中,暂不可访问", 211)->response();
}elseif($data= $this->checksubmit('data')){
if(!$data = $this->check_fields($data,'contact,mobile')){
$this->error(404);
}else{
$verifycode_success = true;
$access = $this->system->config->get('access');
if($access['verifycode']['yuyue']){
if(!$verifycode = $this->GP('verifycode')){
$verifycode_success = false;
$this->err->add('验证码不正确', 212);
}else if(!K::M('magic/verify')->check($verifycode)){
$verifycode_success = false;
$this->err->add('验证码不正确', 212);
}
}
if($verifycode_success){
$data['uid'] = (int)$this->uid;
$data['company_id'] = $detail['company_id'];
$data['youhui_id'] = $youhui_id;
$data['city_id'] = $this->request['city_id'];
if($id = K::M('company/sign')->create($data)){
K::M('company/youhui')->update_count($youhui_id, 'sign_num', 1);
$smsdata = $maildata = array('contact'=>$data['contact'] ? $data['contact'] : '业主','mobile'=>$data['mobile'],'youhui'=>$detail['title']);
K::M('sms/sms')->send($data['mobile'], 'youhui_yuyue', $smsdata);
K::M('sms/sms')->company('youhui_tongzhi', $smsdata);
K::M('helper/mail')->sendmail($detail['mail'], 'youhui_yuyue', $maildata);
$this->err->add('恭喜您报名成功!');
}
}
}
}else{
$access = $this->system->config->get('access');
$this->pagedata['yuyue_yz'] = $access['verifycode']['yuyue'];
$this->pagedata['youhui_id'] = $youhui_id;
$this->pagedata['detail'] = $detail;
$this->tmpl = 'youhui/sign.html';
}
}
}
把其中的 K::M('sms/sms')->company('youhui_tongzhi', $smsdata);代码改为
页:
[1]