|
@@ -30,7 +30,7 @@ public class WeixinPayController extends Controller {
|
|
|
this.getResponse().setHeader("Access-Control-Allow-Origin", origin);
|
|
|
this.getResponse().setHeader("Access-Control-Allow-Credentials", Boolean.TRUE.toString());
|
|
|
// openId,采用 网页授权获取 access_token API:SnsAccessTokenApi获取
|
|
|
- String openId = "";
|
|
|
+ String openId = "oEhm60uDHXDbTcQZOuQt612ds-Pc";
|
|
|
|
|
|
// 统一下单文档地址:https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_1
|
|
|
|
|
@@ -50,7 +50,7 @@ public class WeixinPayController extends Controller {
|
|
|
params.put("trade_type", TradeType.JSAPI.name());
|
|
|
params.put("nonce_str", System.currentTimeMillis() / 1000 + "");
|
|
|
params.put("notify_url", notify_url);
|
|
|
-// params.put("openid", openId);
|
|
|
+ params.put("openid", openId);
|
|
|
|
|
|
String sign = PaymentKit.createSign(params, paternerKey);
|
|
|
params.put("sign", sign);
|