This commit is contained in:
Putoo
2026-07-06 14:44:15 +08:00
parent a1dbce8a96
commit 63d56b245e
21 changed files with 483 additions and 36 deletions

View File

@@ -1,4 +1,5 @@
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
namespace Application.Web.Controllers.User;
@@ -398,11 +399,13 @@ public class UserController : ControllerBase
{
if (isAdd)
{
string drugConfig = await _goodsService.GetGoodsContent(goodsId);
dynamic _drugConfig = JsonConvert.DeserializeObject<dynamic>(drugConfig);
UserDrugModel temp = new UserDrugModel();
temp.id = StringAssist.NewGuid;
temp.goodsId = goodsId;
temp.name = myGoods.goodsName;
temp.code = "Blood";
temp.code =Convert.ToString(_drugConfig.cls);
temp.count = count;
myDrug.drug.Add(temp);
}