上传物品使用接口
This commit is contained in:
parent
103ae988f4
commit
5eade44a74
@ -62,8 +62,8 @@ type (
|
||||
RecoverTicket(session IUserSession) (errdata *pb.ErrorData)
|
||||
//出售道具
|
||||
SellItem(session IUserSession, items map[string]int32, bPush bool) (errdata *pb.ErrorData, atno []*pb.UserAtno)
|
||||
//使用物品
|
||||
UseItem(session IUserSession, gid string, amount int32) (errdata *pb.ErrorData)
|
||||
//使用物品 slt 0合成 1分解
|
||||
UseItem(session IUserSession, gid string, amount int32, slt int32) (errdata *pb.ErrorData)
|
||||
//清理物品
|
||||
CleanItemById(session IUserSession, t string) (errdata *pb.ErrorData)
|
||||
}
|
||||
|
@ -215,8 +215,7 @@ func (this *Items) AddItems(session comm.IUserSession, items map[string]int32, b
|
||||
|
||||
//使用物品
|
||||
func (this *Items) UseItem(session comm.IUserSession, gid string, amount int32, slt int32) (errdata *pb.ErrorData) {
|
||||
|
||||
return
|
||||
return this.modelItems.useitem(session, gid, amount, slt)
|
||||
}
|
||||
|
||||
//清理背包
|
||||
|
Loading…
Reference in New Issue
Block a user