コード例 #1
0
 public GroupInfo(券商 o)
 {
     this.IP             = o.IP;
     this.Port           = o.Port;
     this.版本号            = o.版本号;
     this.查询间隔时间         = o.查询间隔时间;
     this.登录帐号           = o.登录帐号;
     this.交易服务器          = o.交易服务器;
     this.交易密码           = o.交易密码;
     this.交易帐号           = o.交易帐号;
     this.称              = o.称;
     this.启用             = o.启用;
     this.通讯密码           = o.通讯密码;
     this.营业部代码          = o.营业部代码;
     this.Multithreading = o.Multithreading;
 }
コード例 #2
0
        public static bool UpdateGroup(券商 o)
        {
            try
            {
                var groupJson = (new GroupInfo(o)).ToJson();
                CommonUtils.SetConfig(o.称, Cryptor.MD5Encrypt(groupJson));

                if (o.ClientID == -1 && o.启用)
                {
                    o.Start();
                }
            }
            catch (Exception ex)
            {
                CommonUtils.Log("新增或编辑组合号出错", ex);
                return(false);
            }
            return(true);
        }