|
@@ -6,7 +6,7 @@ require_once "../public/_pdo.php";
|
|
|
require_once '../ucenter/function.php';
|
|
require_once '../ucenter/function.php';
|
|
|
require_once '../share/function.php';
|
|
require_once '../share/function.php';
|
|
|
|
|
|
|
|
-if(!isset($_COOKIE["userid"])){
|
|
|
|
|
|
|
+if(!isset($_COOKIE["userid"]) || !isset($_COOKIE["user_uid"])){
|
|
|
echo json_encode(array(), JSON_UNESCAPED_UNICODE);
|
|
echo json_encode(array(), JSON_UNESCAPED_UNICODE);
|
|
|
exit;
|
|
exit;
|
|
|
}
|
|
}
|
|
@@ -73,9 +73,9 @@ $output = array();
|
|
|
foreach ($channelList as $key => $value) {
|
|
foreach ($channelList as $key => $value) {
|
|
|
# code...
|
|
# code...
|
|
|
$new = $value;
|
|
$new = $value;
|
|
|
- $name = $_userinfo->getName($value["owner_uid"]);
|
|
|
|
|
|
|
+ $name = $_userinfo->getName($value["owner_uid"]);
|
|
|
$new["username"] = $name["username"];
|
|
$new["username"] = $name["username"];
|
|
|
- $new["nickname"] = $name["nickname"];
|
|
|
|
|
|
|
+ $new["nickname"] = $name["nickname"];
|
|
|
$new["count"] = 0;
|
|
$new["count"] = 0;
|
|
|
$new["all"] = 1;
|
|
$new["all"] = 1;
|
|
|
$new["owner"] = $value["owner_uid"];
|
|
$new["owner"] = $value["owner_uid"];
|
|
@@ -85,4 +85,4 @@ foreach ($channelList as $key => $value) {
|
|
|
|
|
|
|
|
echo json_encode($output, JSON_UNESCAPED_UNICODE);
|
|
echo json_encode($output, JSON_UNESCAPED_UNICODE);
|
|
|
|
|
|
|
|
-?>
|
|
|
|
|
|
|
+?>
|