发布推送

This commit is contained in:
ROmani
2024-02-26 00:41:25 +08:00
parent 70304f730b
commit 1a9008b318
33 changed files with 1515 additions and 216 deletions

View File

@ -0,0 +1,21 @@
<?php
namespace App\Service;
use App\Thrid\Sms\Movider\Movider;
use App\Thrid\Sms\SmsInterface;
class SmsService
{
function sendSmsCode($phone, $code): bool
{
return $this->getChannel()->sendSmsCode($phone, $code);
}
function getChannel(): SmsInterface
{
return new Movider();
}
}