update:wechat 管理
This commit is contained in:
parent
e712f824f5
commit
214ca68b44
@ -101,7 +101,8 @@ class WechatUsersRepository extends CatchRepository
|
|||||||
*/
|
*/
|
||||||
public function tag($id, $data)
|
public function tag($id, $data)
|
||||||
{
|
{
|
||||||
$tagIds = WechatTags::whereIn('name', Utils::stringToArrayBy($data['tag']))->column('tag_id');
|
$tagIds = Utils::stringToArrayBy($data['tag']);
|
||||||
|
// WechatTags::whereIn('name', Utils::stringToArrayBy($data['tag']))->column('tag_id');
|
||||||
|
|
||||||
$user = $this->findBy($id);
|
$user = $this->findBy($id);
|
||||||
|
|
||||||
@ -134,6 +135,10 @@ class WechatUsersRepository extends CatchRepository
|
|||||||
$user->hasTags()->saveAll($attachIds);
|
$user->hasTags()->saveAll($attachIds);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
WechatUsers::where('id', $id)->update([
|
||||||
|
'tagid_list' => $data['tag'],
|
||||||
|
]);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user