fixed
This commit is contained in:
@@ -78,6 +78,9 @@ class Tasktimer extends Controller
|
|||||||
if(empty($cust)){
|
if(empty($cust)){
|
||||||
return Tools::set_fail('有回访计划,客户不存在');
|
return Tools::set_fail('有回访计划,客户不存在');
|
||||||
}
|
}
|
||||||
|
if(empty($return_record['visit_msg'])){
|
||||||
|
return Tools::set_fail('有回访记录但无回访内容,请填写回访内容后再试');
|
||||||
|
}
|
||||||
//查询客户所绑定的ai客服
|
//查询客户所绑定的ai客服
|
||||||
$ai_config = Db::table('fa_aicustomerservice')
|
$ai_config = Db::table('fa_aicustomerservice')
|
||||||
->where('id',$cust['aicustomerservice_ids'])
|
->where('id',$cust['aicustomerservice_ids'])
|
||||||
@@ -111,6 +114,15 @@ class Tasktimer extends Controller
|
|||||||
if($exc_time > time()){
|
if($exc_time > time()){
|
||||||
return Tools::set_fail('未到计划回访时间');
|
return Tools::set_fail('未到计划回访时间');
|
||||||
}
|
}
|
||||||
|
if(empty($cust['rel_group'])){
|
||||||
|
return Tools::set_fail('客户无绑定群');
|
||||||
|
}
|
||||||
|
if(empty($cust['wx_nickname'])){
|
||||||
|
return Tools::set_fail('客户无绑定微信昵称');
|
||||||
|
}
|
||||||
|
if(empty($cust['rel_wx'])){
|
||||||
|
return Tools::set_fail('客户无绑定微信');
|
||||||
|
}
|
||||||
|
|
||||||
$logic = new MessageWechatLogic();
|
$logic = new MessageWechatLogic();
|
||||||
$logic->setBaseUrl($base_url);
|
$logic->setBaseUrl($base_url);
|
||||||
|
|||||||
Reference in New Issue
Block a user