generated from root/miduo_server
修改支付
parent
7f7d9c3bc2
commit
1be06aff18
|
@ -11,6 +11,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.io.IOException;
|
||||
import java.net.URLEncoder;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
@ -202,7 +203,7 @@ public class Dna01IosRechargeController {
|
|||
signStr.append("&order_status=" + orderStatus);
|
||||
signStr.append("&pay_time=" + payTime);
|
||||
signStr.append("&product_id=" + productId);
|
||||
signStr.append("&product_name=" + productName);
|
||||
signStr.append("&product_name=" + URLEncoder.encode(productName));
|
||||
signStr.append("&product_price=" + moneyStr);
|
||||
signStr.append("&role_id=" + roleId);
|
||||
signStr.append("&server_id=" + serverId);
|
||||
|
@ -242,4 +243,9 @@ public class Dna01IosRechargeController {
|
|||
}
|
||||
return s;
|
||||
}
|
||||
|
||||
public static void main(String[] args){
|
||||
String productName = "全民礼包";
|
||||
System.out.println(URLEncoder.encode(productName));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue