1 Star 0 Fork 23

Semoon™ / WechatOauthProxy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
verify.php 559 Bytes
一键复制 编辑 原始数据 按行查看 历史
<?php
if (strtolower($_SERVER['REQUEST_METHOD']) == 'post') {
$res['code'] = -1001;
$res['message'] = '提交失败!';
$filePrefix = 'MP_verify_';
$callBackUrl = $_SERVER['HTTP_HOST'];
$txt = strip_tags(trim($_POST['txt']));
if (empty($txt)) {
echo json_encode($res);
exit();
}
file_put_contents('./' . $filePrefix . $txt . '.txt' , $txt);
$res['code'] = 1001;
$res['message'] = '提交成功!';
$res['data'] = array(
'callBackUrl'=>$callBackUrl
);
echo json_encode($res);
}
PHP
1
https://gitee.com/semoons/WechatOauthProxy.git
git@gitee.com:semoons/WechatOauthProxy.git
semoons
WechatOauthProxy
WechatOauthProxy
master

搜索帮助