| | |
| | | import java.util.List; |
| | | |
| | | |
| | | @RunWith(SpringJUnit4ClassRunner.class) //使用junit4进行测试 |
| | | @ContextConfiguration(locations = {"classpath:spring.xml"}) |
| | | @WebAppConfiguration |
| | | //@RunWith(SpringJUnit4ClassRunner.class) //使用junit4进行测试 |
| | | //@ContextConfiguration(locations = {"classpath:spring.xml"}) |
| | | //@WebAppConfiguration |
| | | public class PPTVTest { |
| | | |
| | | @Resource |
| | |
| | | //CODE:XefbSM0H8BC9kaEGEjHF2U7wd6Sd9ec1oSUmG1gZDTg= |
| | | // PPTVApiUtil.login("XefbSM0H8BC9kaEGEjHF2U7wd6Sd9ec1oSUmG1gZDTg="); |
| | | String pptvUid = PPTVUtil.decryptPPTVCode("XefbSM0H8BC9kaEGEjHF2U7wd6Sd9ec1oSUmG1gZDTg=").pptvUid; |
| | | // String openId = PPTVApiUtil.getOpenId(pptvUid); |
| | | // System.out.println(openId); |
| | | String openId = PPTVApiUtil.getOpenId(pptvUid); |
| | | System.out.println(openId); |
| | | |
| | | try { |
| | | loginUserService.updatePPTVOpenId("766693"); |
| | | } catch (PPTVException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | // try { |
| | | // loginUserService.updatePPTVOpenId("766693"); |
| | | // } catch (PPTVException e) { |
| | | // e.printStackTrace(); |
| | | // } |
| | | |
| | | } |
| | | |