allocatr/application/common/Logic/NoticeLogic.php
2025-04-01 12:00:41 +08:00

47 lines
682 B
PHP

<?php
namespace app\common\Logic;
use app\common\services\alibaba\DyvmsService;
use think\Exception;
/**
* 通知
*/
class NoticeLogic
{
public function __construct($types = [])
{
}
/**
* 派单通知
* @return void
*/
public function dispatchNotice($dispatch,$type)
{
$ttsCode = '';
$outId = '';
try {
$reponse = DyvmsService::getInstance()->call($dispatch->worker_tel, $ttsCode, $outId);
}catch (Exception $exception){
dump($exception->getMessage());
}
}
/**
* 超时通知
* @return void
*/
public function overTimeNotice(){
}
}