|
@@ -172,7 +172,7 @@ public class wechatpay extends Controller {
|
|
|
order_amount = new Double(sys_payorderRows.get(0).getDouble("amount") * 100).intValue();
|
|
|
}
|
|
|
|
|
|
- String response = wechatMiniProgram.createPayOrder(orderno, trade_type, wechat_code, "", "使用年费",order_amount);
|
|
|
+ String response = wechatMiniProgram.createPayOrder("wechatsaletool",orderno, trade_type, wechat_code, "", "使用年费",order_amount);
|
|
|
JSONObject jsonObject = JSONObject.parseObject(response);
|
|
|
if (jsonObject.containsKey("prepay_id")) {
|
|
|
String package_str = "prepay_id=" + jsonObject.getStringValue("prepay_id");
|
|
@@ -209,6 +209,7 @@ public class wechatpay extends Controller {
|
|
|
|
|
|
@API(title = "小程序门店支付", apiversion = R.ID20240507102402.v1.class)
|
|
|
public String createStoreWechatOrder() throws Exception {
|
|
|
+ String systemclient="marketingtool";
|
|
|
String sonum = content.getString("sonum");
|
|
|
String wechat_code = content.getString("wechat_code");
|
|
|
//APP、JSAPI
|
|
@@ -220,8 +221,8 @@ public class wechatpay extends Controller {
|
|
|
order_amount = new Double(custorderRows.get(0).getDouble("amount") * 100).intValue();
|
|
|
}
|
|
|
|
|
|
- WechatMiniProgram wechatMiniProgram = new WechatMiniProgram("wechatsaletool");
|
|
|
- String response = wechatMiniProgram.createPayOrder(sonum, trade_type, wechat_code, "", "购买商品",order_amount);
|
|
|
+ WechatMiniProgram wechatMiniProgram = new WechatMiniProgram(systemclient);
|
|
|
+ String response = wechatMiniProgram.createPayOrder(systemclient,sonum, trade_type, wechat_code, "", "购买商品",order_amount);
|
|
|
JSONObject jsonObject = JSONObject.parseObject(response);
|
|
|
if (jsonObject.containsKey("prepay_id")) {
|
|
|
String package_str = "prepay_id=" + jsonObject.getStringValue("prepay_id");
|