微信标签管理

This commit is contained in:
JaguarJack
2020-06-21 18:04:30 +08:00
parent 4392f25e97
commit fbf9c11191
10 changed files with 400 additions and 11 deletions

View File

@@ -46,4 +46,9 @@ class WechatUsers extends CatchModel
const BlOCK = 2; // 拉黑
const UNBLOCK = 1; // 取消拉黑
public function hasManyTags()
{
return $this->belongsToMany(WechatTags::class, 'wechat_user_has_tags', 'tag_id', 'user_id');
}
}