12121
This commit is contained in:
@@ -126,4 +126,18 @@ public class BagController : ControllerBase
|
||||
return PoAction.Ok(new { data = new List<string>(), total = total.Value });
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 验证用户道具
|
||||
/// </summary>
|
||||
/// <param name="parms"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<IPoAction> CheckUserProp([FromBody] CheckUserPropParms parms)
|
||||
{
|
||||
string userId = StateHelper.userId;
|
||||
List<TowerNeeds> needs = JsonConvert.DeserializeObject<List<TowerNeeds>>(parms.needs);
|
||||
var result = await GameBus.CheckNeeds(userId, needs, 1);
|
||||
return PoAction.Ok(result);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user