|
@ -430,6 +430,14 @@ public class BusinessOrderService extends BaseJpaService<BusinessOrderDO,Busines
|
|
if (tradeType.equalsIgnoreCase("JSAPI")){
|
|
if (tradeType.equalsIgnoreCase("JSAPI")){
|
|
map.put("openid", openId);
|
|
map.put("openid", openId);
|
|
}
|
|
}
|
|
|
|
if (tradeType.equalsIgnoreCase("MWEB")){
|
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
|
JSONObject object = new JSONObject();
|
|
|
|
object.put("type","Wap");
|
|
|
|
object.put("wap_url","");
|
|
|
|
object.put("wap_name","");
|
|
|
|
map.put("scene_info",object.toJSONString());
|
|
|
|
}
|
|
/* String token_url = "https://api.weixin.qq.com/cgi-bin/token";
|
|
/* String token_url = "https://api.weixin.qq.com/cgi-bin/token";
|
|
String params = "grant_type=client_credential&appid=" + wxWechatDO.getAppId() + "&secret=" + wxWechatDO.getAppSecret();
|
|
String params = "grant_type=client_credential&appid=" + wxWechatDO.getAppId() + "&secret=" + wxWechatDO.getAppSecret();
|
|
String result = HttpUtil.sendGet(token_url, params);
|
|
String result = HttpUtil.sendGet(token_url, params);
|