---+!! =paraworld.map.GetWorldByID= <div style="float: right; margin: 5px; width: 250px; color: #4e5155; background-color: #f0eded; border: #ccc 1px solid; padding: 5px"> *Contents* %TOC% </div> ---++ Description 依据ID取得一个World ---++ Parameters |*Required*|*Name*|*Type*|*Description*| |<font color="#4682b4">required</font>|worldID|%BLUE%string%ENDCOLOR%|要取得的World的ID| |<font color="#4682b4">optional</font>|format|%BLUE%int%ENDCOLOR%|返回的数据格式(0:XML 1:JSON),默认值为0| ---++ Example Return XML <verbatim> <msg> <worldID type="double">9</worldID> <name type="string">test world</name> <desc type="string">this is a test world.</desc> <lastModifiedDate type="datetime">2008-6-4 18:05:01</lastModifiedDate> <lastVisitDate type="datetime">2008-6-5 14:10:49</lastVisitDate> <version type="string" /> <approved type="boolean" /> <ownerID type="string">6ea1ce24-bdf7-4893-a053-eb5fd2a74281</ownerID> <ownerUserName type="string">LiXizhi</ownerUserName> <spaceServer type="string" /> <jabberGSL type="string" /> <GSL type="string" /> <gameServer type="string" /> <visits type="double">1</visits> <ranking type="double">1</ranking> <ageGroup type="double">1</ageGroup> <gameData type="string" /></msg> </verbatim> ---++ Example Return JSON <verbatim> {"worldID":"1","name":"test1","desc":"testtesttest","lastModifiedDate":"2008-09-27T14:10:21.983","lastVisitDate":"2008-12-10T15:49:12.45", "version":"1-1-1","approved":"false","ownerID":"9a557859-65c7-4636-8801-b0e7f8be3e21","ownerUserName":"ABC","spaceServer":"","jabberGSL":"", "GSL":"","gameServer":"","visits":"11","ranking":"1","ageGroup":"4","gameData":"9a557859-65c7-4636-8801-b0e7f8be3e21","price":"-1"} </verbatim> ---++ Error Codes 当发生异常时,返回数据中会有一个“errorCode”节点,该节点记录了错误码。0:无异常 500:未知错误 499:提供的数据不完整 498:非法的访问 497:数据不存在或已被删除 496:未登录 ---++ Test Cases ---+++!! case 1 Input: <verbatim> { ["worldID"]="3", } </verbatim> _Result_: <verbatim> { ["gameData"]="", ["GSL"]="", ["ageGroup"]=1, ["ranking"]=1, ["jabberGSL"]="", ["version"]="", ["desc"]="this is a test world.", ["spaceServer"]="", ["gameServer"]="", ["name"]="test world", ["ownerID"]="6ea1ce24-bdf7-4893-a053-eb5fd2a74281", ["ownerUserName"]="LiXizhi", ["approved"]=true, ["worldID"]=3, ["visits"]=1, } </verbatim>
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r2
<
r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r2 - 2008-12-10
-
CaoYF
Home
Site map
CCWeb web
HaqiTeen web
Main web
ParaEngine web
TWiki web
Main Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
导航页WebTopMenu
Preferences
开发指南
Getting Started
ParacraftSDK
NPL
MCML
NPL Reference Manual
美术Mod
Account
Log In
English
简体中文
簡體中文
E
dit
A
ttach
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback