Exemplo n.º 1
0
 /**
  * 微信粉丝分组数据同步到本地数据库.
  */
 public function syncToLocal()
 {
     $easywechat = app('easywechat');
     $groupData = $easywechat->user_group->lists();
     $this->clearLocal();
     foreach ($groupData['groups'] as $key => $group) {
         $this->fanGroupReposifoty->create($this->formatFromWeChat($group));
     }
 }