---+!! =paraworld.bag.SwapItems= <div style="float: right; margin: 5px; width: 250px; color: #4e5155; background-color: #f0eded; border: #ccc 1px solid; padding: 5px"> *Contents* %TOC% </div> ---++ Description 建议交换物品的步骤: (1)用户A向用户B提交一个交换物品的请求(这里需要一个API:RequestSwap),请求中包含以下参数:sessionKey(当前登录用户的sessionKey);to(用户B的用户ID);items(用户A愿意交换的物品的ID、数量的集合,物品与数量之间用英文逗号分隔,多个物品之间用竖线分隔);swapItems(期望得到的用户B的物品的ID、数量的集合,物品ID与数量之间用英文逗号分隔,多个物品之间用竖线分隔)。将该请求保存在Cache中(一小时),等待用户B的确认。 (2)用户B查看其收到的所有交换物品的请求(这里需要一个API:GetSwap),同意或拒绝(这里需要一个API:DealWithSwap)
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r1 - 2009-02-06
-
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