if (! empty($keyword))
{
if ($search_result = $this->model('search')->search_questions($keyword, null, 5))
{
$contentStr = '为您找到下列相关问题:' . "\n\n";
foreach ($search_result AS $key => $val)
{
$contentStr .= '• <a href="' . get_js_url('/m/question/' . $val['question_id']) . '">' . $val['question_content'] . '</a>' . "\n";
}
}
else
{
$contentStr = '没有找到相关问题';
}
}
else
{
$contentStr = '欢迎来到 ' . get_setting('site_name');
}
aw本意是想 加关注时返回 欢迎来到 xxx 吧?
不过默认却是:没有找到相关问题
我觉得是判断上的问题。
临时解决办法:
if ($keyword != "Hello2BizUser")
{
if ($search_result = $this->model('search')->search_questions($keyword, null, 5))
{
$contentStr = '为您找到下列相关问题:' . "\n\n";
foreach ($search_result AS $key => $val)
{
$contentStr .= '• <a href="' . get_js_url('/m/question/' . $val['question_id']) . '">' . $val['question_content'] . '</a>' . "\n";
}
}
else
{
$contentStr = '没有找到相关问题';
}
}
else
{
$contentStr = '欢迎来到 ' . get_setting('site_name');
}
[/quote][/quote]因为添加好友时微信默认返回了 Hello2BizUser 不知道是不是aw所谓,反正我测试时返回了这个 [quote] 编辑器没有下拉框 ,内容多了好麻烦?原来是下面有个按钮 希望能有小提示引导。 [quote] 360极速浏览器,ie9.10模式下。编辑问题提交问题,提示问题不存在。