You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

25 lines
772 B

<?php
include '../../../functions.php';
header('Access-Control-Allow-Origin:*');
$body = $_REQUEST['body'];
$ak = $_REQUEST['ak'];
$userID = $_REQUEST['userID'];
$memobirdID = $_REQUEST['memobirdID'];
$res = gugu__send($ak, $userID, $memobirdID, $body);
if(strpos($res,'showapi_res_code') === false){
echo json_encode(array("showapi_res_code" => 0, "showapi_res_error" => "ak, 咕咕号或咕咕机编号错误!"));
}else{
echo $res;
}
yimian__log("log_gugu", array("timestamp" => date('Y-m-d H:i:s', time()), "ip" => ip2long(get_ip()), "body" => $body, "who" => $userID));
yimian__log("log_api", array("api" => "gugu", "timestamp" => date('Y-m-d H:i:s', time()), "ip" => ip2long(get_ip()), "_from" => get_from(), "content" => $userID.": ".$body));
die();