public function actionSync()
 {
     $menu = $this->app->menu;
     $merchant_id = $this->merchant_id;
     $menus = Menu::getMenusByMerchant($merchant_id);
     $buttons = $this->parseMenus($menus);
     if ($menu->add($buttons)) {
         Yii::$app->getSession()->setFlash('success', '同步微信菜单成功');
         return $this->ajaxReturn();
     } else {
         return $this->ajaxReturn(null, '同步菜单失败', 0);
     }
 }