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