This commit is contained in:
2025-03-28 21:25:51 +08:00
parent 5e9359e8a5
commit 0b0be7975b

View File

@@ -22,7 +22,6 @@ class Feedback extends BaseHttpApi
*
* 参数:
* content 反馈内容
* rel_wx 客户微信id
* rel_group 客户所在微信群id
*
* 接口:
@@ -33,14 +32,10 @@ class Feedback extends BaseHttpApi
function setUserFeedback(){
return Mmodel::catchJson(function (){
$content = input('content');
$rel_wx = input('rel_wx');//客户微信id
$wx_groupid = input('rel_group');//客户所在微信群id
if(empty($content)){
return Tools::set_fail('反馈内容不能为空');
}
if(empty($rel_wx)){
return Tools::set_fail('微信id不能为空');
}
if(empty($wx_groupid)){
return Tools::set_fail('群id不能为空');
}
@@ -51,10 +46,10 @@ class Feedback extends BaseHttpApi
$str = $content;
}
//查询是否有回访记录
$ret = Db::table('fa_firmcustomerfollowuprecord')
->where('rel_group',$wx_groupid)
->where('rel_wx',$rel_wx)
->find();
if(empty($ret)){
return Tools::set_fail('该客户无回访记录');