|
@@ -17,9 +17,9 @@ import com.jfinal.weixin.sdk.utils.JsonUtils;
|
|
|
public class WeixinPayController extends Controller {
|
|
|
|
|
|
//商户相关资料
|
|
|
- private static String appid = "";
|
|
|
- private static String partner = "";
|
|
|
- private static String paternerKey = "";
|
|
|
+ private static String appid = "wx1f3dc2c37dce641b";
|
|
|
+ private static String partner = "1503643261";
|
|
|
+ private static String paternerKey = "9759a66938e8411ad5889e2b5b394d94";
|
|
|
private static String notify_url = "http://wechat.pacsonline.cn/wx_patient/pay/pay_notify";
|
|
|
|
|
|
/**
|
|
@@ -34,7 +34,7 @@ public class WeixinPayController extends Controller {
|
|
|
Map<String, String> params = new HashMap<String, String>();
|
|
|
params.put("appid", appid);
|
|
|
params.put("mch_id", partner);
|
|
|
- params.put("body", "JFinal2.0极速开发");
|
|
|
+ params.put("body", "远程诊断收费测试");
|
|
|
params.put("out_trade_no", "977773682111");
|
|
|
params.put("total_fee", "1");
|
|
|
|
|
@@ -82,7 +82,7 @@ public class WeixinPayController extends Controller {
|
|
|
String jsonStr = JsonUtils.toJson(packageParams);
|
|
|
setAttr("json", jsonStr);
|
|
|
System.out.println(jsonStr);
|
|
|
- render("/jsp/pay.jsp");
|
|
|
+ renderJson("{\"code\":0}");
|
|
|
}
|
|
|
|
|
|
/**
|