/// <summary> /// 启用、停用二维码 /// </summary> /// <param name="search"></param> /// <returns></returns> public Jinher.AMP.BTP.Deploy.CustomDTO.ResultDTO UpdateState(Jinher.AMP.BTP.Deploy.CustomDTO.WeChatQRCodeUpdateStateDTO search) { base.Do(); Stopwatch timer = new Stopwatch(); timer.Start(); var result = this.UpdateStateExt(search); timer.Stop(); LogHelper.Debug(string.Format("WeChatQRCodeBP.UpdateStateExt:耗时:{0}。入参:search:{1},\r\n出参:{2}", timer.ElapsedMilliseconds, JsonHelper.JsSerializer(search), JsonHelper.JsonSerializer(result))); return(result); }
public Jinher.AMP.BTP.Deploy.CustomDTO.ResultDTO UpdateState(Jinher.AMP.BTP.Deploy.CustomDTO.WeChatQRCodeUpdateStateDTO search) { //定义返回值 Jinher.AMP.BTP.Deploy.CustomDTO.ResultDTO result; try { //调用代理方法 result = base.Channel.UpdateState(search); } catch { //抛异常 throw; } finally { //关链接 ChannelClose(); } //返回结果 return(result); }
/// <summary> /// 启用、停用二维码 /// </summary> /// <param name="search"></param> /// <returns></returns> public Jinher.AMP.BTP.Deploy.CustomDTO.ResultDTO UpdateState(Jinher.AMP.BTP.Deploy.CustomDTO.WeChatQRCodeUpdateStateDTO search) { base.Do(); return(this.Command.UpdateState(search)); }