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.
27 lines
639 B
27 lines
639 B
<?php
|
|
|
|
|
|
namespace App\Admin\Common;
|
|
|
|
|
|
use AlibabaCloud\Client\AlibabaCloud;
|
|
use AlibabaCloud\Client\Exception\ClientException;
|
|
use AlibabaCloud\Client\Exception\ServerException;
|
|
use Dcat\Admin\Controllers\AdminController;
|
|
use Graze\GuzzleHttp\JsonRpc\Client;
|
|
|
|
class Sms extends AdminController
|
|
{
|
|
/**
|
|
* 远程RPC调用
|
|
* @param $phone
|
|
* @param $template
|
|
* @param $templateParams
|
|
* @param string $signName
|
|
* @return string
|
|
*/
|
|
public static function rpcSent($phone, $template, $templateParams, $signName)
|
|
{
|
|
return Rpc::alisSmsSent($phone, $template, $templateParams, $signName);
|
|
}
|
|
}
|