コード例 #1
0
 //初始化account,只允许一个一个微信账号
 public WeChatController()
 {
     var accounts = YunClient.Instance.Execute(new GetWxAccountsRequest {PageNum = 1, PageSize = 1}).Accounts;
     if (accounts != null && accounts.Any())
     {
         _wxAccount = accounts[0];
     }
 }
コード例 #2
0
        //初始化account,只允许一个一个微信账号
        public WeChatController()
        {
            var accounts = YunClient.Instance.Execute(new GetWxAccountsRequest {
                PageNum = 1, PageSize = 1
            }).Accounts;

            if (accounts != null && accounts.Any())
            {
                _wxAccount = accounts[0];
            }
        }