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 < 1; i++) {
//            sendurl("https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzU0MTk2NzA0Nw==&scene=177#wechat_redirect");
//            Thread.sleep(30*1000);
//        }
    }
    public static void  sendurl  (String url){
        try {
            WeixinUtil.sendWxMessage(Constants.WXSENDNAME, "点击链接:"+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();
        }

    }
}
