---+!! =paraworld.map.UpdateWorld= <div style="float: right; margin: 5px; width: 250px; color: #4e5155; background-color: #f0eded; border: #ccc 1px solid; padding: 5px"> *Contents* %TOC% </div> ---++ Description 修改指定的World。只有该World的所有者和Paraworld的管理者有权限执行此功能。 ---++ Parameters |*Required*|*Name*|*Type*|*Description*| |<font color="#4682b4">required</font>|sessionKey|%BLUE%string%ENDCOLOR%|用户凭证。| |^|worldID|%BLUE%int%ENDCOLOR%|被修改的World的ID| |<font color="#4682b4">optional</font>|name|%BLUE%string%ENDCOLOR%|指定新的名称| |^|desc|%BLUE%string%ENDCOLOR%|指定新的描述| |^|version|%BLUE%string%ENDCOLOR%|引擎版本| |^|spaceServer|%BLUE%string%ENDCOLOR%|空间服务器| |^|jabberGSL|%BLUE%string%ENDCOLOR%|用“;”分隔的Jabber精简游戏服务器地址| |^|gsl|%BLUE%string%ENDCOLOR%|精简游戏服务器地址| |^|gameServer|%BLUE%string%ENDCOLOR%|游戏服务器IP或URL| |^|ageGroup|%BLUE%int%ENDCOLOR%|ESRP| |^|price|%BLUE%int%ENDCOLOR%|价格| |^|preview|%BLUE%string%ENDCOLOR%|世界截图的URL| |^|type|%BLUE%int%ENDCOLOR%|类别,默认值为0,表示没有设置类别| |^|location|%BLUE%string%ENDCOLOR%|地理位置| |^|format|%BLUE%int%ENDCOLOR%|返回的数据格式(0:XML 1:JSON),默认值为0| ---++ Example Return XML <verbatim> <msg xmlns=""> <isSuccess type="boolean">True</isSuccess> </msg> </verbatim> ---++ Example Return JSON <verbatim> {"isSuccess":"true"} </verbatim> ---++ Error Codes 当发生异常时,返回数据中会有一个“errorCode”节点,该节点记录了错误码。0:无异常 500:未知错误 499:提供的数据不完整 498:非法的访问 497:数据不存在或已被删除 496:未登录 ---++ Test Cases ---+++!! case 1 Input: <verbatim> { ["desc"]="new desc", ["name"]="new name", ["worldID"]="3", ["sessionKey"]="6ea1ce24-bdf7-4893-a053-eb5fd2a74281", } </verbatim> _Result_: <verbatim> { ["isSuccess"]=true, } </verbatim>
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r5
<
r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r5 - 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