You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
95 lines
2.2 KiB
95 lines
2.2 KiB
10 months ago
|
<?php
|
||
|
// +----------------------------------------------------------------------
|
||
|
// | 天诚科技 [ 刘海东 17600099397赋能开发者,助力企业发展 ]
|
||
|
// +----------------------------------------------------------------------
|
||
|
// | Copyright (c) 2016~2020 https://www.tczxkj.com All rights reserved.
|
||
|
// +----------------------------------------------------------------------
|
||
|
// | Licensed 该系统并不是自由软件,未经许可不能去掉相关版权
|
||
|
// +----------------------------------------------------------------------
|
||
|
// | Author:甘肃天诚志信电子商务有限公司 刘海东 联系电话维系17600099397
|
||
|
// +----------------------------------------------------------------------
|
||
|
|
||
|
namespace basic;
|
||
|
|
||
|
use service\AccessTokenServeService;
|
||
|
|
||
|
/**
|
||
|
* Class BaseSmss
|
||
|
* @package crmeb\basic
|
||
|
*/
|
||
|
abstract class BaseSms extends BaseStorage
|
||
|
{
|
||
|
|
||
|
/**
|
||
|
* access_token
|
||
|
* @var null
|
||
|
*/
|
||
|
protected $accessToken = NULL;
|
||
|
|
||
|
|
||
|
public function __construct($name, AccessTokenServeService $accessTokenServeService,$configFile)
|
||
|
{
|
||
|
$this->accessToken = $accessTokenServeService;
|
||
|
$this->name = $name;
|
||
|
$this->configFile = $configFile;
|
||
|
$this->initialize();
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @param array $config
|
||
|
* @return mixed|void
|
||
|
*/
|
||
|
protected function initialize(array $config = [])
|
||
|
{
|
||
|
}
|
||
|
|
||
|
|
||
|
/**
|
||
|
* 开通服务
|
||
|
* @return mixed
|
||
|
*/
|
||
|
abstract public function open();
|
||
|
|
||
|
/**
|
||
|
* 修改
|
||
|
* @return mixed
|
||
|
*/
|
||
|
abstract public function modify($sign);
|
||
|
|
||
|
/**
|
||
|
* 信息
|
||
|
* @return mixed
|
||
|
*/
|
||
|
abstract public function info();
|
||
|
|
||
|
/**
|
||
|
* 发送短信
|
||
|
* @return mixed
|
||
|
*/
|
||
|
abstract public function send($phone, $templateId, $data);
|
||
|
|
||
|
/**
|
||
|
* 模版
|
||
|
* @return mixed
|
||
|
*/
|
||
|
abstract public function temps($page, $limit);
|
||
|
|
||
|
/**
|
||
|
* 申请模版
|
||
|
* @return mixed
|
||
|
*/
|
||
|
abstract public function apply($title, $content, $type);
|
||
|
|
||
|
/**
|
||
|
* 申请模版记录
|
||
|
* @return mixed
|
||
|
*/
|
||
|
abstract public function applys($temp_type, $page, $limit);
|
||
|
|
||
|
/**
|
||
|
* 发送记录
|
||
|
* @return mixed
|
||
|
*/
|
||
|
abstract public function record($record_id);
|
||
|
}
|