app = $app; $this->doRouteAfter(); $channel = $this->request->getChannel(); if($this->request->param('channel', '')){ $channel = $this->request->param('channel'); } switch ($channel) { case MemberLoginTypeDict::WECHAT: $controller = 'wechat.Wechat'; $action = 'register'; break; case MemberLoginTypeDict::WEAPP: $controller = 'weapp.Weapp'; $action = 'register'; break; } $this->controller = $controller ?? ''; $this->actionName = $action ?? ''; $this->request ->setController($this->controller ?? '') ->setAction($this->actionName); } }