/// <summary> /// 钉钉待办任务更新 /// </summary> /// <param name="com"></param> /// <param name="userid"></param> /// <param name="record_id"></param> /// <returns></returns> public static Wlniao.ApiResult <String> WorkrecordUpdate(xCommon com, String userid, String record_id) { if (string.IsNullOrEmpty(userid) || string.IsNullOrEmpty(record_id) || com == null) { return(null); } var json = Newtonsoft.Json.JsonConvert.SerializeObject(new { userid, record_id }); return(com.Post <String>("app", "dingtalk_workrecord_update", json)); }
/// <summary> /// 钉钉待办任务推送 /// </summary> /// <param name="com"></param> /// <param name="to">Sid或手机号</param> /// <param name="title"></param> /// <param name="url"></param> /// <param name="exdata"></param> /// <returns></returns> public static Wlniao.ApiResult <String> WorkrecordAdd(xCommon com, String to, String title, String url, List <FormItemVo> exdata) { if (string.IsNullOrEmpty(to) || com == null) { return(null); } var json = Newtonsoft.Json.JsonConvert.SerializeObject(new { by = Wlniao.strUtil.IsMobile(to) ? "mobile" : "sid", exdata = Newtonsoft.Json.JsonConvert.SerializeObject(exdata), mobile = to, sid = to, title, url }); return(com.Post <String>("app", "dingtalk_workrecord_add", json)); }