问题描述
我有一个 Leads 应用程序,两个文本字段分别用于主要电话和辅助电话。我需要通过将电话文本值与主要电话或辅助电话进行匹配来过滤应用。
我首先尝试使用此代码按主要电话进行过滤。如果未找到任何项目,请按辅助电话过滤。
过滤器仅适用于主要手机。不能使用辅助电话。
我的代码是:
// Get Lead ID search by main phone
$responses = PodioItem::filter($leadappid,$attributes = array('filters'=>array($primaryphone => $_REQUEST['From'])));
if ($responses->filtered != 0) {
$response = $responses[0];
$leadid = $response->item_id;
}
// Get Lead ID search by second phone
if ($responses->filtered == 0) {
$responses = PodioItem::filter($leadappid,$attributes = array('filters'=>array($secondaryphone => $_REQUEST['From'])));
if ($responses->filtered != 0) {
$response = $responses[0];
$leadid = $response->item_id;
}
}
我先尝试过滤辅助电话。它也不起作用。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)