1212
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user