}
if ("".Equals(buf.ToString()))
{
buf.Append(parameterName);
buf.Append("=");
buf.Append(parameterValue);
}
else
{
buf.Append("&");
buf.Append(parameterName);
buf.Append("=");
buf.Append(parameterValue);
}
return buf;
}
/// <summary>
/// 获取支付签名
/// </summary>
/// <returns>根据参数得到签名</returns>
public string GetPaySign()
{
StringBuilder buf = new StringBuilder();
AddParameter(buf, "attach", attach);
AddParameter(buf, "chnid", chnid);
AddParameter(buf, "cmdno", (cmdno).ToString());
AddParameter(buf, "encode_type", (encode_type).ToString());
AddParameter(buf, "mch_desc", mch_desc);
AddParameter(buf, "mch_name", mch_name);
AddParameter(buf, "mch_price", (mch_price).ToString());
AddParameter(buf, "mch_returl", mch_returl);
  |