public IHttpActionResult BindSupAgent(BindSupAgentDto req) { var res = new ResponseBase(); if (string.IsNullOrEmpty(req.agentcode) || req.authid == null) { res.code = "100"; res.msg = "信息缺失"; } else { try { var service = new WxService(); var data = service.BindSupAgent(req); if (!string.IsNullOrEmpty(data)) { res.code = "100"; res.msg = data; } res.resData = null; } catch (Exception ex) { res.code = "100"; res.msg = ex.Message; } } return(Ok(res)); }