| | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.TypeReference; |
| | | import com.moral.monitor.listener.message.Captcha; |
| | | import com.taobao.api.ApiException; |
| | | import org.springframework.context.support.ClassPathXmlApplicationContext; |
| | | |
| | | import java.util.Map; |
| | | |
| | | public class Test { |
| | | |
| | | public static void main(String[] args) throws ApiException { |
| | | |
| | | Captcha.captcha("15950198162", "123456"); |
| | | new ClassPathXmlApplicationContext("rabbitmq.xml"); |
| | | |
| | | // String message = "{\"mac\":\"898602b8191630065889\",\"time\":1509008923461,\"ver\":2,\"e1\":66,\"e2\":70,\"e3\":7839,\"e4\":20,\"e5\":0,\"e6\":59,\"e7\":23,\"e8\":19.96,\"e9\":0,\"e10\":0,\"e11\":0,\"e12\":28,\"e13\":45,\"e14\":0,\"e15\":0,\"e16\":0,\"e17\":0.004,\"e18\":0,\"e19\":487,\"warn\":\"00000001\"}"; |
| | | // Map<String, String> msgData = JSON.parseObject(message, new TypeReference<Map<String, String>>() {}); |
| | | // System.out.println(msgData.get("e1").getClass()); |
| | | |
| | | //Captcha.captcha("15950198162", "123456"); |
| | | } |
| | | } |