123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- <?php
- namespace crmeb\basic;
- use crmeb\services\AccessTokenServeService;
- abstract class BaseSmss extends BaseStorage
- {
-
- protected $accessToken = NULL;
-
- public function __construct(string $name, AccessTokenServeService $accessTokenServeService, string $configFile)
- {
- $this->accessToken = $accessTokenServeService;
- $this->name = $name;
- $this->configFile = $configFile;
- $this->initialize();
- }
-
- protected function initialize(array $config = [])
- {
- }
-
- abstract public function open();
-
- abstract public function modify(string $sign = null, string $phone, string $code);
-
- abstract public function info();
-
- abstract public function send(string $phone, string $templateId, array $data);
-
- abstract public function temps(int $page, int $limit, int $type);
-
- abstract public function apply(string $title, string $content, int $type);
-
- abstract public function applys(int $tempType, int $page, int $limit);
-
- abstract public function record($record_id);
- }
|