接口地址:http://service.uwan.com/admin.php?c=InterfaceNotice&a=NoticeList
参数说明(以下参数POST或GET传输):
参数 |
类型 |
必须 |
说明 |
server_marking |
String |
必须 |
服务器标识(没有和游戏拟定的,一般都使用域名) |
成功返回:
{"status":1,"info":"InterfaceNotice_NoticeList","data":json_encode($data)}
其中:
$data = array(
'list'=>array(
0=>array(
'id'=>'id',
'title'=>'公告标题',
'content'=>'公告内容',
),
1=>'省略...',
),
'total'=>'总数', //最多显示5条数据,不需要分页
);
失败返回:
{"status":0,"info":"error game_id","data":null} //游戏ID错误
{"status":0,"info":"server_marking empty","data":null} //服务器标识为空
{"stas":0,"info":"game server non-existent","data":null} //标识找不到对应服务器,有关server_marking参数定义,请联系后台管理员