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