package com.zzsn.test;


import com.zzsn.util.Constants;
import com.zzsn.util.WeixinUtil;

public class Test {
    public static void main(String[] args) throws Exception{
//        WeixinUtil.sendWxMessage("LiuWeiGang", "点击链接：https://mp.weixin.qq.com/s?src=11&timestamp=1651136607&ver=3765&signature=VQ-UlD3BdC*Tu0IbbPXkW-EN0APSHuhD*JQRxcxb9L1EQz-KXvvC6LfcODYGttq4CfdDX90V9qD8rX2qUGWHb37wqfC0FrlLpG7EA9dURgVdJrG6BkekAS5hX5Qv2ihs&new=1", 1000002, "ww6bef1e81aacbf27a",
//                "ttZJ_KbO3QABs5Z7IDHNa_X4CZizaojherzwzfQ7wl0");
        for (int i = 0; i < 5; i++) {
            sendurl("https://mp.weixin.qq.com/s?src=11&timestamp=1654755636&ver=3849&signature=vUQTO2suSn7SeeRyVxV9loGpGNyVRcFLZ5Gu-C4-33YZEL2A4haeBXG9aMCA0R2RNhCjyeWWJo6SBqOTleVSPgyxYz8pWw38lL*CAzSfjeaR4PiIGs9Ch02lhaf7txqk&new=1");
            Thread.sleep(30*1000);
        }
    }
    public static void  sendurl  (String url){
        try {
            WeixinUtil.sendWxMessage("lwg", "点击链接:"+url, 1000002, "ww6bef1e81aacbf27a",
                    "ttZJ_KbO3QABs5Z7IDHNa_X4CZizaojherzwzfQ7wl0");
           // Thread.sleep(20*1000);
        } catch (Exception e) {
            // TODO Auto-generated catch block
            try {
                Thread.sleep(1*1000);
            } catch (InterruptedException e1) {
                // TODO Auto-generated catch block
            }
            e.printStackTrace();
        }

    }
}
