0

我在我的 nodejs 项目中使用 edge-js。我添加了 dll 文件并像这样导入它:

getHID = edge.func({
    source: function() {/*
    using System.Threading.Tasks;
    using SDK.DataModel;
    using SDK;
    public class Startup
    {
        public async Task<object> Invoke(dynamic input)
        {
            string personId = input.nationalCode;

            DO_IDENTIFIER healthCareProvider = new DO_IDENTIFIER();
            healthCareProvider.Issuer = input.dedicated_organization;
            healthCareProvider.Assigner = input.exporter_organization;
            healthCareProvider.Type = input.type;
            healthCareProvider.ID = input.medicalNumber;
           
            DO_CODED_TEXT insurer = new DO_CODED_TEXT();
            insurer.Value = input.name;
            insurer.Terminology_id = input.code;
            string codedString = (input.id).ToString();
            insurer.Coded_string = codedString;

            Service srv = new Service();

            var result = srv.GetHIDurgent(personId, healthCareProvider, insurer, null);

            return result;
        }
    }
 */},
    references: ['OIS_TestMode_2_KeyA3.dll']
})

当我删除它Service srv = new Service()并且result它完美地工作而没有错误。但是当我添加Service srv = new Service()并且result它遵守但给我这个错误时: Error: Invalid IL code in SDK.Service:.ctor (): IL_001d: pop

请帮我!!

4

1 回答 1

1

它应该有一个 USB 令牌,它安装了一个 Windows 安装程序并保持 USP 连接。那么它应该是工作。

于 2020-10-05T11:24:37.843 回答