/// <summary> /// 获取支付JSON串 /// </summary> /// <param name="orderId"></param> /// <param name="money"></param> /// <param name="openId"></param> /// <returns></returns> public string GetPayJson(string orderId, int money, string openId) { try { Logger.LoggerFactory.Instance.Logger_Info("发送订单号=" + orderId + ",openID=" + openId); //JsApiImplement.GetOpenId();加到主页面上 return(JsApiImplement.Send(money, orderId, openId)); } catch (Exception ex) { Logger.LoggerFactory.Instance.Logger_Error(ex); return("出错了"); } }
/// <summary> /// 单击支付按钮,斛发的动作 /// </summary> /// <param name="orderId">当前订单号</param> /// <param name="money">价格</param> /// <param name="openId">主页上产生的openId</param> /// <returns></returns> public string Get(string orderId, int money, string openId) { Logger.LoggerFactory.Instance.Logger_Info("发送订单号" + orderId); //JsApiImplement.GetOpenId();加到主页面上 return(JsApiImplement.Send(money, orderId, openId)); }