string _req_data = "<xml>"; _req_data += "<appid>" + WeChatConfig.AppID + "</appid>"; _req_data += "<attach><![CDATA[att1]]></attach>"; _req_data += "<body><![CDATA[" + Body + "]]></body> "; _req_data += "<device_info><![CDATA[1000]]></device_info> "; _req_data += "<mch_id><![CDATA[" + PARTNER + "]]></mch_id> "; _req_data += "<openid><![CDATA[" + openid + "]]></openid> "; _req_data += "<nonce_str><![CDATA[" + wx_nonceStr + "]]></nonce_str> "; _req_data += "<notify_url><![CDATA[/Pay/WXPayNotify]]></notify_url> "; _req_data += "<out_trade_no><![CDATA[" + Bill_No + "]]></out_trade_no> "; _req_data += "<spbill_create_ip><![CDATA[" + Context.Request.UserHostAddress + "]]></spbill_create_ip> "; _req_data += "<total_fee><![CDATA[" + total_fee + "]]></total_fee> "; _req_data += "<trade_type><![CDATA[JSAPI]]></trade_type> "; _req_data += "<sign><![CDATA[" + get_sign + "]]></sign> "; _req_data += "</xml>";
返回错误时调用支付JSAPI缺少参数:$key0$ 谢谢