/// <summary> /// 获取商户资料 /// </summary> /// <param name="CID"></param> /// <returns></returns> public string GetEntityTraders(int CID = 0) { Traders traders = new Traders(); PayLicense payLicense = payLicenseService.GetEntityByWhere(o => o.CID == CID); if (payLicense != null) { traders = tradersService.GetTraderByCID(CID); } return(traders.ToJson()); }
public ActionResult OutRegister(Traders traders, string h_OrderList, string way, string openVersionId, string storeProper, string posMinorDisp, string appProper) { traders.BusinessScopeId = Request["BusinessScopeId"]; storeProper = storeProper == "Y" ? "Y" : "N"; posMinorDisp = posMinorDisp == "Y" ? "Y" : "N"; appProper = appProper == "Y" ? "Y" : "N"; var omsurl = Authorize.OmsUrl + "api/outerapi/Register"; omsurl += string.Format("?orderList={0}&way={1}&storeProper={2}&posMinorDisp={3}&appProper={4}&openVersionId={5}&machine={6}", h_OrderList, way, storeProper, posMinorDisp, appProper, openVersionId, Machine.GetMAC); var rt = Pharos.Utility.HttpClient.HttpPost(omsurl, traders.ToJson()); var op = new OpResult(); op.Successed = rt == "1";//todo:异常时处理 op.Message = ""; if (op.Successed) { Authorize.RemoveCurrentAuth(); } return(Content(op.ToJson())); }