---+!! =paraworld.map.GetModelByID= <div style="float: right; margin: 5px; width: 250px; color: #4e5155; background-color: #f0eded; border: #ccc 1px solid; padding: 5px"> *Contents* %TOC% </div> ---++ Description 依主键获得一个Model的信息 ---++ Parameters |*Required*|*Name*|*Type*|*Description*| |<font color="#4682b4">required</font>|modelID|%BLUE%string%ENDCOLOR%|Model的ID| |optional|isSimple|%BLUE%boolean%ENDCOLOR%|若要返回精简模式的数据,则为True,若要返回全部字段数据,则为False。默认值为False| ---++ Example Return XML <verbatim> <msg xmlns=""> <modelID type="double">83</modelID> <modelType type="double">1</modelType> <picURL type="string">/Uploads/MapModel/2D/1f9d9783-3425-45e1-871e-77c06f8eb0_0.png</picURL> <texturePath type="string">nicaodi_1.png</texturePath> <package type="string">111</package> <version type="string">1-1-1</version> <manufacturerType type="double">1</manufacturerType> <manufacturerID type="string">00000000-0000-0000-0000-000000000000</manufacturerID> <manufacturerName type="string">ParaEngine</manufacturerName> <price type="double">100.00</price> <price2 type="double">-1.00</price2> <price2StartTime type="datetime">9999-12-31 0:00:00</price2StartTime> <price2EndTime type="datetime">1900-1-1 0:00:00</price2EndTime> <addDate type="datetime">2007-11-6 15:59:06</addDate> <ownerUserID type="string">fae5feb1-9d4f-4a78-843a-1710992d4e70</ownerUserID> <ownerUserName type="string">zzzzzz</ownerUserName> <modelPath type="string">nicaodi_1.png</modelPath> <allowEdit type="boolean">True</allowEdit> <directions type="string">0</directions> </msg> </verbatim> ---++ Error Codes 当发生异常时,返回数据中会有含有错误码的“errorCode”节点。 0:无异常 500:未知错误 499:提供的数据不完整 498:非法的访问 497:数据不存在或已被删除 496:未登录 ---++ Test Cases ---+++!! case 1 Input: <verbatim> { ["modelID"]=83, ["isSimple"]=false, } </verbatim> _Result_: <verbatim> { ["picURL"]="/Uploads/MapModel/2D/1f9d9783-3425-45e1-871e-77c06f8eb0_0.png", ["price"]=100, ["ownerUserID"]="fae5feb1-9d4f-4a78-843a-1710992d4e70", ["price2"]=-1, ["allowEdit"]=true, ["ownerUserName"]="zzzzzz", ["texturePath"]="nicaodi_1.png", ["manufacturerName"]="ParaEngine", ["manufacturerID"]="00000000-0000-0000-0000-000000000000", ["modelType"]=1, ["version"]="1-1-1", ["directions"]="0", ["package"]="111", ["modelPath"]="nicaodi_1.png", ["modelID"]=83, ["manufacturerType"]=1, } </verbatim>
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r3 - 2008-04-18
-
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