1
chenhaozhe
2025-08-08 dc34e9d0690456225cabf79a40192de1abdf8dde
WebAPI/Controllers/WebAPIController.cs
@@ -6,6 +6,7 @@
using Newtonsoft.Json.Linq;
using SQLHelper;
using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.IO;
@@ -21095,6 +21096,79 @@
                return objjson; ;
            }
        }
        #region [从数据库加载菜单 APP]
        //public class AppMenuLoad {
        //    public string HitemID { get; set; } // 主键
        //    public string HPartentID { get; set; } = "0"; // 父节点ID
        //    public string HEntryID { get; set; } // 菜单节点id
        //    public string HIndex { get; set; }
        //    public string HName { get; set; }
        //    public string HMenuName { get; set; }
        //    public string HPicNum { get; set; }
        //    public string HShowMode { get; set; }
        //    public string HTranslationText_English { get; set; }
        //    public string HTranslationText_Spain { get; set; }
        //    public string HMaker { get; set; }
        //    public List<MenuLoad> childMenus { get; set; }
        //}
        //[Route("Web/MenuList_APP")]
        //[HttpGet]
        //public object MenuList_APP()
        //{
        //    return null;
        //}
        //[Route("Web/SetMenuList_APP")]
        //[HttpPost]
        //public object SetMenuList_APP([FromBody] JObject oMain)
        //{
        //    var _value = oMain["oMain"].ToString();
        //    string msg1 = _value.ToString();
        //    string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries);
        //    try
        //    {
        //        string msg2 = sArray[0];
        //        string user = sArray[1].ToString();
        //        string MenuName = sArray[2].ToString();
        //        string type = sArray[3].ToString();
        //        if(String.Equals(type, "APP", StringComparison.InvariantCultureIgnoreCase))
        //        {
        //            List<AppMenuLoad> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<AppMenuLoad>>(msg2);
        //            string sql2 = "";
        //            foreach (AppMenuLoad one in list)
        //            {
        //                StringBuilder sqlFragment = new StringBuilder();
        //                sqlFragment.Append("insert into Gy_MenuDefineSet(");
        //                var oneType = one.GetType();
        //            }
        //            return null;
        //        }
        //        else
        //        {
        //            objJsonResult.code = "0";
        //            objJsonResult.count = 0;
        //            objJsonResult.Message = "暂不支持该平台设置自定义菜单!";
        //            objJsonResult.data = null;
        //            return objJsonResult;
        //        }
        //    }
        //    catch(Exception e)
        //    {
        //        objJsonResult.code = "0";
        //        objJsonResult.count = 0;
        //        objJsonResult.Message = e.ToString();
        //        objJsonResult.data = null;
        //        return objJsonResult;
        //    }
        //}
        #endregion
        #region [从数据库加载菜单]
        public class MenuLoad