public static void send(CmsForm cmsForm, string content, string content_img, ArrayList imgList, CouponContent couponContent, int url_type, int goods_type) { string out_log = ""; try { if (cmsForm.appBean.weibo_list == null || cmsForm.appBean.weibo_list.Count == 0) { LogUtil.log_call(cmsForm, "没有微博账号!"); return; } int i = 0; while (i < cmsForm.appBean.weibo_list.Count) { if (!cmsForm.appBean.send_status && !cmsForm.appBean.qunfa_genfa_qunfa_status) { out_log = "群发被强制停止"; return; } else { WeiboBean item = (WeiboBean)cmsForm.appBean.weibo_list[i]; if (item.status == 1) { string picId = ""; if (imgList != null && imgList.Count > 0) { int img_i = 0; while (img_i < imgList.Count) { string item_img = (string)imgList[img_i]; string pic_id = WeiboUtil.upload(cmsForm, item_img, item.cookie); if (!string.IsNullOrEmpty(pic_id)) { if (!string.IsNullOrEmpty(picId)) { picId = picId + ","; } picId = picId + pic_id; } img_i = +1; } } content = content.Replace("<BR>", "\n"); WeiboUtil.post(cmsForm, string.Concat(content, QqUtil.weiba(cmsForm, out out_log)), picId, item.cookie); } } i = i + 1; } LogUtil.log_call(cmsForm, "微博发完成!"); } catch (Exception exception) { LogUtil.log_call(cmsForm, string.Concat("[autoSendweibo]出错:", exception.ToString())); } return; }