POST api/AppLog/AddAppLoginLog

应用登录日志 内网上报地址 http://appdata.fdq.dev.q1.com/api/AppLog/AddAppLoginLog 外网上报地址 https://appdata.q1.com/api/AppLog/AddAppLoginLog

Request Information

URI Parameters

None.

Body Parameters

AppLoginLog
NameDescriptionTypeAdditional information
APPID

应用id

integer

Required

ServerID

服务器ID

integer

Required

ActorName

角色名

string

Max length: 32

ActorID

角色id

integer

None.

ActorLevel

角色等级

integer

None.

User

用户(用户名或用户ID)

string

Required

Max length: 32

PID

合作商id

integer

None.

IP

IP

string

Required

Max length: 32

MAC

MAC

string

Max length: 32

UUID

设备id

string

Max length: 32

RADID

广告id

string

Max length: 32

RSID

子站点id

string

Max length: 32

LoginTime

登录时间

integer

Required

Sign

签名sign=md5(APPID_MAC_UUID_RADID_RSID_LoginTime_ServerID_appkey)

string

Required

Max length: 1024

Action

动作(不传默认代表登录,也可传一个值过来代表创建角色)

string

None.

ExtInfo

扩展信息

string

None.

Request Formats

application/json, text/json

Sample:
{
  "APPID": 1,
  "ServerID": 2,
  "ActorName": "sample string 3",
  "ActorID": 4,
  "ActorLevel": 5,
  "User": "sample string 6",
  "PID": 7,
  "IP": "sample string 8",
  "MAC": "sample string 9",
  "UUID": "sample string 10",
  "RADID": "sample string 11",
  "RSID": "sample string 12",
  "LoginTime": 13,
  "Sign": "sample string 14",
  "Action": "sample string 15",
  "ExtInfo": "sample string 16"
}

application/xml, text/xml

Sample:
<AppLoginLog xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SzGla.WebApps.AppDataAPI.Models">
  <APPID>1</APPID>
  <Action>sample string 15</Action>
  <ActorID>4</ActorID>
  <ActorLevel>5</ActorLevel>
  <ActorName>sample string 3</ActorName>
  <ExtInfo>sample string 16</ExtInfo>
  <IP>sample string 8</IP>
  <LoginTime>13</LoginTime>
  <MAC>sample string 9</MAC>
  <PID>7</PID>
  <RADID>sample string 11</RADID>
  <RSID>sample string 12</RSID>
  <ServerID>2</ServerID>
  <Sign>sample string 14</Sign>
  <UUID>sample string 10</UUID>
  <User>sample string 6</User>
</AppLoginLog>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AppLoginLog'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.