'登录验证码:{code}', $gateway instanceof SmsbaoGateway => $gateway->getConfig()['login_template'] ?? '登录验证码:{code}', default => '' }; return Str::strtr($template, $this->getData($gateway)); } public function getTemplate(GatewayInterface $gateway = null) { return 'SMS_LOGIN'; } public function getData(GatewayInterface $gateway = null) { return [ 'code' => $this->data['code'], ]; } }