示例#1
0
 /**
  * 将微信现有菜单同步到本地.
  *
  * @return \Illuminate\Http\JsonResponse
  */
 public function getSyncFromWechat()
 {
     // 当前选中的公众号
     $currentAccount = $this->accountService->chosedAccount();
     $this->menuService->syncToLocal($currentAccount);
     return success('同步成功');
 }
示例#2
0
 /**
  * Execute the job.
  */
 public function handle(MenuService $menuService)
 {
     if (!$this->account) {
         $this->delete();
     }
     $menuService->syncToLocal($this->account);
     $this->delete();
 }