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{
        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();
        }

    }
}
