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