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.
23 lines
384 B
23 lines
384 B
<?php
|
|
namespace app\common\sms;
|
|
|
|
use think\facade\Db;
|
|
use app\common\sms\SmsFactory;
|
|
|
|
class Sms
|
|
{
|
|
//使用靜態方法,建立物流單
|
|
public static function createSms($smscode,$data)
|
|
{
|
|
|
|
$sms = SmsFactory::createSmsService($smscode);
|
|
|
|
$result = $sms->sendSms($data);
|
|
|
|
if(!$result){
|
|
return FALSE;
|
|
}
|
|
return TRUE;
|
|
|
|
}
|
|
} |