pub async fn paysuccesst(req: HttpRequest,bytes: Bytes,mut payload: web::Payload)-> Result<HttpResponse, MyError>{
println!("{}","success");
// let x = form_urlencoded::parse("%23first=%25try%25");
// let name: String = req.match_info().get("trade_no").unwrap().parse().unwrap();
println!("{req:?}");
let name = String::from_utf8(bytes.to_vec()).map_err(|_| HttpResponse::BadRequest().finish());
let path =req.uri().to_string();
let query =req.query_string();
let pathbyte = req.path().as_bytes();
// println!("pathlength{}",pathbyte.len().to_string());
// println!("query{}",query.as_bytes().len().to_string());
println!("path{}",path.as_bytes().len());
match name {
Ok(v) => {
println!("name{}",v);
},
Err(_) => todo!(),
}