注意:修改完之后后台重新发一个帖子
文件地址:app/services/community/CommunityServices.php
方法:saveData
修改代码:
/** @var CommunityUserServices $communityUserServices */
$communityUserServices = app()->make(CommunityUserServices::class);
if (!$communityUserServices->get(['type' => 0, 'relation_id' => 0])) {
$communityUserServices->save(['type' => 0, 'relation_id' => 0, 'add_time' => time()]);
}
如下图: