paraworld.map.GetWorlds
Description
取得指定用户上传的所有世界
Parameters
Example Return XML
<msg>
<worlds>
<param index="1">
<worldID type="double">7</worldID>
<name type="string">testWorld666</name>
<desc type="string">test desc</desc>
<lastModifiedDate type="datetime">2007-11-7 18:16:07</lastModifiedDate>
<lastVisitDate type="datetime">2007-12-12 10:59:27</lastVisitDate>
<version type="string">1-4-4</version>
<approved type="boolean">1-4-4</approved>
<ownerID type="string">fae5feb1-9d4f-4a78-843a-1710992d4e70</ownerID>
<ownerUserName type="string">test</ownerUserName>
<spaceServer type="string">http://map/Uploads/World/fae5feb1-9d4f-4a78-843a-1710992d4e70/fa5cc000-a024-48c1-8e3d-71521fdfcb82.zip?CRC32=4253830545</spaceServer>
<jabberGSL type="string"></jabberGSL>
<GSL type="string"></GSL>
<gameServer type="string"></gameServer>
<visits type="double">7</visits>
<ranking type="double">1</ranking>
<ageGroup type="double">2</ageGroup>
<gameData type="string" />
</param>
<param index="2">
<worldID type="double">4</worldID>
<name type="string">testWorld222</name>
<desc type="string">test desc</desc>
<lastModifiedDate type="datetime">2007-11-7 18:16:19</lastModifiedDate>
<lastVisitDate type="datetime">2007-12-12 10:59:52</lastVisitDate>
<version type="string">1-1-1</version>
<approved type="boolean">1-1-1</approved>
<ownerID type="string">fae5feb1-9d4f-4a78-843a-1710992d4e70</ownerID>
<ownerUserName type="string">test</ownerUserName>
<spaceServer type="string">http://map/Uploads/World/fae5feb1-9d4f-4a78-843a-1710992d4e70/fa5cc000-a024-48c1-8e3d-71521fdfcb83.zip?CRC32=4253830546</spaceServer>
<jabberGSL type="string"></jabberGSL>
<GSL type="string"></GSL>
<gameServer type="string"></gameServer>
<visits type="double">12</visits>
<ranking type="double">2</ranking>
<ageGroup type="double">2</ageGroup>
<gameData type="string" />
</param>
</worlds>
</msg>
Example Return JSON
{"worlds":[]}
Error Codes
当发生异常时,返回数据中会有一个“errorCode”节点,该节点记录了错误码。0:无异常 500:未知错误 499:提供的数据不完整 498:非法的访问 497:数据不存在或已被删除 496:未登录.......
Test Cases
case 1
Input:
{
["uid"]="fae5feb1-9d4f-4a78-843a-1710992d4e70",
}
Result:
{
["worlds"]={
[1]={
["gameData"]="",
["GSL"]="test gsl",
["ageGroup"]=2,
["ranking"]=1,
["jabberGSL"]="test jabberGSL",
["version"]="1-1-1",
["desc"]="test desc",
["spaceServer"]="http:/mapUploads/World/fae5feb1-9d4f-4a78-843a-1710992d4e70/43d56810-033a-4e15-8b69-15794aed9138.zip?CRC32=4253830545",
["gameServer"]="test Server
["name"]="test",
["ownerID"]="fae5feb1-9d4f-4a78-843a-1710992d4e70",
["ownerUserName"]="test"
["approved"]=true,
["worldID"]=1,
["visits"]=6,
},
},
}
Topic revision: r2 - 2008-12-10
- CaoYF