|  | @ -469,7 +469,14 @@ public class BusinessOrderService extends BaseJpaService<BusinessOrderDO,Busines
 | 
	
		
			
				|  |  |             throw new Exception("ourTradeNo is null :the ourTradeNo is "+ourTradeNo);
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         HashMap<String, String> map = new HashMap<>();
 | 
	
		
			
				|  |  |         map.put("appid",wxWechatDO.getAppId());
 | 
	
		
			
				|  |  |         if (tradeType.equalsIgnoreCase("APPLETS")){
 | 
	
		
			
				|  |  |             map.put("appid",wxWechatDO.getApplets());
 | 
	
		
			
				|  |  |             map.put("trade_type", "JSAPI");
 | 
	
		
			
				|  |  |         }else {
 | 
	
		
			
				|  |  |             map.put("appid",wxWechatDO.getAppId());
 | 
	
		
			
				|  |  |             map.put("trade_type", tradeType);
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         map.put("mch_id",wxWechatDO.getMchId());
 | 
	
		
			
				|  |  |         map.put("body",body);
 | 
	
		
			
				|  |  |         map.put("out_trade_no",ourTradeNo);
 | 
	
	
		
			
				|  | @ -477,7 +484,7 @@ public class BusinessOrderService extends BaseJpaService<BusinessOrderDO,Busines
 | 
	
		
			
				|  |  |         map.put("total_fee",totalFee);
 | 
	
		
			
				|  |  |         map.put("spbill_create_ip",getServerIp());
 | 
	
		
			
				|  |  |         map.put("notify_url",notifyUrl);
 | 
	
		
			
				|  |  |         map.put("trade_type", tradeType);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         if (tradeType.equalsIgnoreCase("JSAPI")){
 | 
	
		
			
				|  |  |             map.put("openid", openId);
 | 
	
		
			
				|  |  |         }
 |