| 
					
				 | 
			
			
				@@ -5,9 +5,12 @@ import com.platform.yijia.service.CustomerPointsRecordService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.platform.yijia.service.CustomerPointsService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.platform.yijia.service.IntegralRuleService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.platform.yijia.service.StationService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.platform.yijia.utils.weixinapp.Token; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.platform.yijia.utils.weixinapp.WeiXinUserUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.platform.yijia.utils.weixinapp.WxPushUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import javafx.application.Application; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import me.chanjar.weixin.mp.bean.template.WxMpTemplateData; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import net.sf.json.JSONObject; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.junit.Test; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.junit.runner.RunWith; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.mybatis.spring.annotation.MapperScan; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -35,12 +38,30 @@ public  class YijiaApplicationTests { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private StationService stationService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Resource 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private WxPushUtil wxPushUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Resource 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private WeiXinUserUtil weiXinUserUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 //    @Resource 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 //    private CustomerManage customerManage; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Test 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public void testIntegral() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        Map<String, Object> userSessionKeyAndOpenID = weiXinUserUtil.getUserSessionKeyAndOpenID("wxe1135cd390b38a54", "f5a7cf7318cf8638b85bd0fa38f800d0", "003nzx000zeDkL1ssD0001GMQT3nzx0W"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        System.out.println(userSessionKeyAndOpenID); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //小程序 :"wxe1135cd390b38a54", "f5a7cf7318cf8638b85bd0fa38f800d0" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //公众号:wxc8189d3b3a7283e0 3f18fc7e4b02de2f8a14f55b55ab6245 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        String token = weiXinUserUtil.getTokenByRedisCache("wxe1135cd390b38a54", "f5a7cf7318cf8638b85bd0fa38f800d0"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        System.out.println("token信息:"+token); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        //公众号:oJR5R6r4EJhaORFcPap70r_mtFZo 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        //小程序:oYdrL5Sn0YaqiksSthiZMl5cq9FA 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        JSONObject unionIdInfo = weiXinUserUtil.getUnionIdInfo(token, "oYdrL5Sn0YaqiksSthiZMl5cq9FA"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        System.out.println("unionId信息:"+ unionIdInfo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /*//================================================================================================================================ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         CustomerManage customerManage = new CustomerManage(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //customerManage.setGrade("铜牌"); 
			 |