作者 何书鹏
1 个管道 的构建 通过 耗费 1 秒

扫码场景

... ... @@ -93,11 +93,14 @@ class Wechat extends Frontend
$user = WechatService::getUserByOpenid($openid);
$house = House::get($house_id);
// 发送内容
$content = "欢迎关注{$house['name']}!"."\n";
$content = "欢迎关注{$house['name']}!";
$phoneList = HousePhone::where('house_id',$house_id)->select();
if(!empty($phoneList)){
$content .= "\n";
foreach ($phoneList as $v) {
$content .= "\n"."{$v['name']}:{$v['phone']}";
}
}
$content .= "\n\n"."业主账号:%u"
."\n\n"."<a href='https://weixin.qq.com/'>查看物业公告</a>"
."\n\n"."<a href='https://weixin.qq.com/'>给物业留言</a>";
... ...