예제 #1
0
        public static bool UpdateAPPExpireTime(int messageId, DateTime appExpireTime, out string errmsg)
        {
            errmsg = "";
            using (var client = new PushClient())
            {
                var pushResult = client.UpdateAPPExpireTime(messageId, appExpireTime);

                if (pushResult != null && pushResult.Result == 1)
                {
                    errmsg = "更新成功";
                    return(true);
                }
                //异常
                if (pushResult == null || pushResult.ErrorCode == "98")
                {
                    logger.Log(Level.Error, pushResult.ErrorMessage, "Error occurred in PushTaskMessage");
                }

                errmsg = "删除失败!";
                return(false);
            }
        }