1 Star 0 Fork 9

luocanqi/eInkCalendar8266

forked from x_hd2007/eInkCalendar8266 
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
usertag.php 1.20 KB
一键复制 编辑 原始数据 按行查看 历史
xuhaidong@lenovo 提交于 2022-02-11 14:19 +08:00 . 提交电子墨水屏日历项目代码
<?php
// 加载用户标签
include_once('config.php');
include_once('./bll/util.php');
include_once('./bll/auth_check.php');
include_once('./bll/save_task.php');
include_once('./bll/api_result.php');
include_once('./bll/loadTodoTask.php');
/**
* 获取用户标签表数据
*/
function userTag_main()
{
$uid = $_GET["uid"];
$accKey = $_GET["ak"];
$einfo = "";
if (!isset($uid) || $uid == "")
{
$einfo = make_error_404();
}
if (!isset($acckey) || $acckey == "")
{
$einfo = make_error_404();
}
$auth = checkAuth($uid ,$acckey);
debugln("check result: " .$auth);
$auth = 1;
if ($auth <= 0)
{
// 记录错误授权日志
saveAuthLog($_SERVER['REMOTE_ADDR'], "tasktag.php", "用户验证失败");
$einfo = make_error_404();
header('Content-Type:application/json; charset=utf-8');
writeln(my_json_encode($einfo));
return ;
}
else
{
saveAuthLog($_SERVER['REMOTE_ADDR'], "tasktag.php", $uid ." - 获取任务标签");
header('Content-Type:application/json; charset=utf-8');
// load_todotask_tag("xuhaidong");
load_user_tag($uid);
}
}
userTag_main();
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/luocanqi/e-ink-calendar8266.git
git@gitee.com:luocanqi/e-ink-calendar8266.git
luocanqi
e-ink-calendar8266
eInkCalendar8266
master

搜索帮助