| 
					
				 | 
			
			
				@@ -369,10 +369,13 @@ public class FsStorePaymentServiceImpl implements IFsStorePaymentService 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 config = JSONUtil.toBean(json, RedPacketConfig.class); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             case 2: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                json = companyConfigMapper.selectRedPacketConfigByKey(param.getCompanyId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                json = configService.selectConfigByKey("redPacket.config"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 config = JSONUtil.toBean(json, RedPacketConfig.class); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (param.getSource()==2){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            config.setAppId("wxb9b453d37c5fad45"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //组合返回参数 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         R result = new R(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // 根据 isNew 判断使用哪种发红包方式 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -382,6 +385,8 @@ public class FsStorePaymentServiceImpl implements IFsStorePaymentService 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             result= sendRedPacketLegacyInternal(param, config); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         result.put("isNew",config.getIsNew()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        result.put("mchId","1716217886"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        System.out.println("发红包返回"+result); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return result; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -395,6 +400,7 @@ public class FsStorePaymentServiceImpl implements IFsStorePaymentService 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         TransferBillsRequest request = new TransferBillsRequest(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         request.setAppid(config.getAppId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        System.out.println("appid:"+config.getAppId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         request.setOpenid(param.getOpenId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         String code = String.valueOf(IdUtil.getSnowflake(0, 0).nextId()); 
			 |