只有留言用户才会在微信用户列表显示

main
岩仔88 17 hours ago
parent 38f1a80365
commit fb99fc69c4

@ -10,42 +10,43 @@ class WeixinUserController
$page = request('page', 1);
$pageSize = request('pageSize', 15);
$searchInfo = request('searchInfo', []);
$list = DB::table('weixin_user')
->select('openid', 'status', 'created_at')
->select('weixin_user.openid', 'weixin_user.status', 'weixin_user.created_at')
->join('liu_yan', 'weixin_user.openid', '=', 'liu_yan.openid')
->orderBy('created_at', 'desc');
// 搜索功能
if (!empty($searchInfo['info'])) {
$list->where('openid', 'like', '%' . $searchInfo['info'] . '%');
$list->where('weixin_user.openid', 'like', '%' . $searchInfo['info'] . '%');
}
$count = $list->count();
$list = $list
->offset(($page - 1) * $pageSize)
->limit($pageSize)
->get();
return \Yz::Return(true, '获取成功', ['list' => $list, 'count' => $count]);
}
public function UpdateStatus(){
$openid = request('openid');
$status = request('status');
if (empty($openid) || $status === null) {
return \Yz::echoError1('参数不完整');
}
$result = DB::table('weixin_user')
->where('openid', $openid)
->update(['status' => $status]);
if ($result) {
return \Yz::Return(true, '修改成功');
} else {
return \Yz::echoError1('修改失败');
}
}
}
}

@ -5,7 +5,7 @@
</view>
<view class="content">
<text class="paragraph fadeInUp">
秦皇岛安尔然营销策划有限公司成立于2020年是一家专注于提供全方位营销解决方案的专业服务机构我们致力于为客户提供包括但不限于营销策划会议服务商务咨询庆典服务及礼仪服务
秦皇岛安尔然营销策划有限公司成立于2020年是一家专注于提供全方位营销解决方案的专业服务机构我们致力于为客户提供包括但不限于商务合作 会议服务 商务洽谈家庭影院等
</text>
<text class="paragraph fadeInUp">
在过去的几年里我们成功地为众多客户提供了量身定制的营销策略和服务方案帮助他们提升了品牌形象扩大了市场份额我们的专业团队由一群经验丰富富有创意的年轻人组成他们不仅拥有深厚的行业知识还具备敏锐的市场洞察力

Loading…
Cancel
Save