Loading…
后端
1.Tencent Serverless
打开腾讯云,新建一个PHP Web函数(懒得适配了,用原作者的吧
直接在下方编辑窗口中hello.php
中贴入以下代码
<?php
/**
* Baidu
* @editer: Weifeng
* @link: https://wfblog.net
* @version: 1.0
*/
error_reporting(0);
header("Access-Control-Allow-Origin:*");
header('Content-type: application/json');
$domain = @$_GET['domain'];
if(!isset($domain) || empty($domain) || $domain==''){
$data = array(
"code" => false,
"msg" => "未传入请求参数!&