|
@@ -47,7 +47,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);
|
|
@@ -59,12 +59,12 @@ public class WeixinPayController extends Controller {
|
|
|
String return_code = result.get("return_code");
|
|
|
String return_msg = result.get("return_msg");
|
|
|
if (StrKit.isBlank(return_code) || !"SUCCESS".equals(return_code)) {
|
|
|
- renderText(return_msg);
|
|
|
+ renderText(return_msg+"&return_code error");
|
|
|
return;
|
|
|
}
|
|
|
String result_code = result.get("result_code");
|
|
|
if (StrKit.isBlank(result_code) || !"SUCCESS".equals(result_code)) {
|
|
|
- renderText(return_msg);
|
|
|
+ renderText(return_msg+"&return_code error");
|
|
|
return;
|
|
|
}
|
|
|
// 以下字段在return_code 和result_code都为SUCCESS的时候有返回
|