<?php

function sc_send( $text , $desp = '' ,$template='' ,$topic='' ){

$postdata = http_build_query(
array(
    'title' => $text,
    'content' => $desp,
    'token' => '',
    'template'=> $template,
    'topic'=> $topic
    
    )
);

$opts = array('http' =>

array(
    'method'  => 'POST',
    'header'  => 'Content-type: application/x-www-form-urlencoded',
    'content' => $postdata
)

);

$context = stream_context_create($opts);

return $result = file_get_contents('http://www.pushplus.plus/send', false, $context);
}

//sc_send("12312","123123321","html","sys");
?>

最后修改:2021 年 03 月 21 日
如果觉得我的文章对你有用,请随意赞赏