public void GetCustomBasicInfo() { /////获取客服基本信息 CustomInfoJson no = new CustomInfoJson(); if (stoce() == null) { } string kid = ""; no = Senparc.Weixin.MP.AdvancedAPIs.CustomServiceApi.GetCustomBasicInfo(stoce()); List <CustomInfoJson> ss = new List <CustomInfoJson>(); for (int a = 0; a < no.kf_list.Count; a++) { for (int b = 0; b < a; b++) { ss.Add(no); } // Label1.Text = no.kf_list.Count.ToString(); // ssa += no.kf_list[a].kf_id + "/" + no.kf_list[a].kf_account; } if (no.kf_list.Count == 0) { kid = "该公众号未添加客服"; } else { kid = no.kf_list[0].kf_account + "完整客服账号格式为:账号前缀@公众号微信号"; } Label1.Text = kid; }
public string Account_count_1() { //string _appId = "wxd15c55f135a54cb7"; //string _appSecret = "740baaae678494d07616f6848491dc94"; //normalReturn = new AccessTokenResult(); //normalReturn = CommonApi.GetToken(_appId, _appSecret); //string sctokn = normalReturn.access_token; // Senparc.Weixin.MP.AdvancedAPIs.CustomServiceApi.AddCustom(actokn, account, nickpick, password); CustomInfoJson no = new CustomInfoJson(); no = Senparc.Weixin.MP.AdvancedAPIs.CustomServiceApi.GetCustomBasicInfo(stoce()); string sbv = ""; string ssc = ""; List <CustomInfoJson> ss = new List <CustomInfoJson>(); for (int b = 0; b < no.kf_list.Count; b++) { for (int a = 0; a < b; a++) { ss.Add(no); } ssc = no.kf_list.Count.ToString(); sbv += no.kf_list[b].kf_account + no.kf_list[b].kf_nick; } // Label1.Text += ssa; return(ssc); }