2024年2月12日发(作者:宰父融雪)
String openid = getOpenid(code); JSONObject jsonObject = bject(openid); String openid1 = ing("openid"); n("openid1:=="+openid1); int i = _id1(openid1); n("i:=="+i); HashMap
("GZGongZuo", ongZuo()); ("GZZhiWu", hiWu()); ("JLMingCheng", ingCheng()); ("JLShiJian", hiJian()); ("JLBuMen", uMen()); ("QXingMing", ngMing()); ("QZhengHao", engHao()); ("QXingBie", ngBie()); ("QGuanXi", anXi()); ("QMingZu", ngZu()); ("QShengRi", engRi()); ("QZhiWu", iWu()); ("QHuKouDiZhi", KouDiZhi()); ("QHuKou", Kou()); ("YuanHuKou", nHuKou()); ("YuanHuKouDiZhi", nHuKouDiZhi()); ("HuKou", ou()); ("HuKouDiZhi", ouDiZhi()); ("GuestNo", stNo()); ("GuestName", stName()); ("BeiZhu", Zhu()); ("ShouLiTiaoJian", uLiTiaoJian()); ("ShenQingShiJian", nQingShiJian()); ("Type", e()); ("FromTo", mTo()); ("YuShenTxt", henTxt()); ("YuShenTime", henTime()); ("YuShenRen", henRen()); ("YuShenAccount", henAccount()); ("PJQStar", Star()); ("SmsNote", Note()); ("PJQMsg", Msg()); ("CardNo", dNo()); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); if (dDate() == null) { ("CardDate", null); } else { ("CardDate", (dDate())); } if (dDateDQ() == null) { ("CardDateDQ", null); } else { ("CardDateDQ", (dDateDQ())); } if (dFiveDQTime() == null) { ("CardFiveDQTime", null); } else { ("CardFiveDQTime", (dFiveDQTime())); } ("CardState", f(dState())); ("CardType", f(dType())); if (dZKDate() == null) { ("CardZKDate", null); } else { ("CardZKDate", (dZKDate())); } ("CardSerial", dSerial()); ("RenCaiFlg", f(CaiFlg())); ("RenCaiFlgContent", CaiFlgContent()); ("CardTypeS", dTypeS()); if (CaiZXTime() == null) { ("RenCaiZXTime", null); } else { ("RenCaiZXTime", (CaiZXTime()));
("encryptCardId", encryptCardId); ("outerStr",outerStr); ("biz",biz); ("success","success");// ("send",post); } return jsonObject; } /** *
获取openid * @param code * @param sfzh * @param xmF */ @GetMapping("/wxgetcode") @ResponseBody public HashMap
("ShouJi", uJi()); ("YuanDanWei", nDanWei()); ("YuanZhiCheng", nZhiCheng()); ("YinJinLeiXing", JinLeiXing()); ("QianYueQiXian", nYueQiXian()); ("ZhiCheng", Cheng()); ("DanWei", Wei()); ("DiZhiQu", hiQu()); ("DiZhi", hi()); ("HangYe", gYe()); ("XingZhi", gZhi()); ("ShengZhi", ngZhi()); ("FaRen", en()); ("LianXiRen", nXiRen()); ("LianXiDianHua", nXiDianHua()); ("GZShiJian", hiJian()); ("GZGongZuo", ongZuo()); ("GZZhiWu", hiWu()); ("JLMingCheng", ingCheng()); ("JLShiJian", hiJian()); ("JLBuMen", uMen()); ("QXingMing", ngMing()); ("QZhengHao", engHao()); ("QXingBie", ngBie()); ("QGuanXi", anXi()); ("QMingZu", ngZu()); ("QShengRi", engRi()); ("QZhiWu", iWu()); ("QHuKouDiZhi", KouDiZhi()); ("QHuKou", Kou()); ("YuanHuKou", nHuKou()); ("YuanHuKouDiZhi", nHuKouDiZhi()); ("HuKou", ou()); ("HuKouDiZhi", ouDiZhi()); ("GuestNo", stNo()); ("GuestName", stName()); ("BeiZhu", Zhu()); ("ShouLiTiaoJian", uLiTiaoJian()); ("ShenQingShiJian", nQingShiJian()); ("Type", e()); ("FromTo", mTo()); ("YuShenTxt", henTxt()); ("YuShenTime", henTime()); ("YuShenRen", henRen()); ("YuShenAccount", henAccount()); ("PJQStar", Star()); ("SmsNote", Note()); ("PJQMsg", Msg()); ("CardNo", dNo()); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); if (dDate() == null) { ("CardDate", null); } else { ("CardDate", (dDate())); } if (dDateDQ() == null) { ("CardDateDQ", null); } else { ("CardDateDQ", (dDateDQ())); } if (dFiveDQTime() == null) { ("CardFiveDQTime", null); } else { ("CardFiveDQTime", (dFiveDQTime()));
("CardFiveDQTime", (dFiveDQTime())); } ("CardState", f(dState())); ("CardType", f(dType())); if (dZKDate() == null) { ("CardZKDate", null); } else { ("CardZKDate", (dZKDate())); } ("CardSerial", dSerial()); ("RenCaiFlg", f(CaiFlg())); ("RenCaiFlgContent", CaiFlgContent()); ("CardTypeS", dTypeS()); if (CaiZXTime() == null) { ("RenCaiZXTime", null); } else { ("RenCaiZXTime", (CaiZXTime())); } if (henTime() == null) { ("FuShenTime", null); } else { ("FuShenTime", (henTime())); } if (Time() == null) { ("AddTime", null); } else { ("AddTime", (Time())); } ("cardcode", dcode()); ("zzmm", m()); ("FuShen", hen()); flag = "1"; } else { flag = "2"; } } else { flag="4"; } } else { if (()>=1){ flag="4"; } else { if (openid!=null&&sfzh!=null){ wxsave = (openid, sfzh, xm); if(wxsave!=0){ NDShenPi ndShenPi = ect(sfzh, xm); if (ndShenPi != null) { ("id", f(())); ("BillNo", lNo()); ("OID", f(())); ("ShiXiangMingCheng", XiangMingCheng()); ("ShiXiangLeiXing", XiangLeiXing()); ("ShouLiShiXian", uLiShiXian()); ("ShiXiangBianMa", XiangBianMa()); ("ShouLiBuMen", uLiBuMen()); ("ShouLiChuangKou", uLiChuangKou()); ("ShouLiShiJian", uLiShiJian()); ("ShenQingRen", nQingRen()); ("ShenQingRenEN", nQingRenEN()); ("ZhengJianType", ngJianType()); ("ZhengJianHao", ngJianHao()); ("Img", ());
("ShengRi", ngRi()); ("XingBie", gBie()); ("MinZu", Zu()); ("GuoJia", Jia()); ("HuKouSuoZaiDi", ouSuoZaiDi()); ("XueLi", Li()); ("XueLiQuanRiZhi", LiQuanRiZhi()); ("QuanRiZhiZhuanYe", nRiZhiZhuanYe()); ("HaiWai", Wai()); ("XueLiZaiZhi", LiZaiZhi()); ("ZaiZhiZhuanYe", ZhiZhuanYe()); ("RenCaiLeiBie", CaiLeiBie()); ("RenCaiChengHao", CaiChengHao()); ("BiYeZhengShuBH", eZhengShuBH()); ("YJTime", ime()); ("YouXiang", Xiang()); ("DianHua", nHua()); ("ShouJi", uJi()); ("YuanDanWei", nDanWei()); ("YuanZhiCheng", nZhiCheng()); ("YinJinLeiXing", JinLeiXing()); ("QianYueQiXian", nYueQiXian()); ("ZhiCheng", Cheng()); ("DanWei", Wei()); ("DiZhiQu", hiQu()); ("DiZhi", hi()); ("HangYe", gYe()); ("XingZhi", gZhi()); ("ShengZhi", ngZhi()); ("FaRen", en()); ("LianXiRen", nXiRen()); ("LianXiDianHua", nXiDianHua()); ("GZShiJian", hiJian()); ("GZGongZuo", ongZuo()); ("GZZhiWu", hiWu()); ("JLMingCheng", ingCheng()); ("JLShiJian", hiJian()); ("JLBuMen", uMen()); ("QXingMing", ngMing()); ("QZhengHao", engHao()); ("QXingBie", ngBie()); ("QGuanXi", anXi()); ("QMingZu", ngZu()); ("QShengRi", engRi()); ("QZhiWu", iWu()); ("QHuKouDiZhi", KouDiZhi()); ("QHuKou", Kou()); ("YuanHuKou", nHuKou()); ("YuanHuKouDiZhi", nHuKouDiZhi()); ("HuKou", ou()); ("HuKouDiZhi", ouDiZhi()); ("GuestNo", stNo()); ("GuestName", stName()); ("BeiZhu", Zhu()); ("ShouLiTiaoJian", uLiTiaoJian()); ("ShenQingShiJian", nQingShiJian()); ("Type", e()); ("FromTo", mTo()); ("YuShenTxt", henTxt()); ("YuShenTime", henTime()); ("YuShenRen", henRen()); ("YuShenAccount", henAccount()); ("PJQStar", Star()); ("SmsNote", Note()); ("PJQMsg", Msg());
("CardNo", dNo()); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); if (dDate() == null) { ("CardDate", null); } else { ("CardDate", (dDate())); } if (dDateDQ() == null) { ("CardDateDQ", null); } else { ("CardDateDQ", (dDateDQ())); } if (dFiveDQTime() == null) { ("CardFiveDQTime", null); } else { ("CardFiveDQTime", (dFiveDQTime())); } ("CardState", f(dState())); ("CardType", f(dType())); if (dZKDate() == null) { ("CardZKDate", null); } else { ("CardZKDate", (dZKDate())); } ("CardSerial", dSerial()); ("RenCaiFlg", f(CaiFlg())); ("RenCaiFlgContent", CaiFlgContent()); ("CardTypeS", dTypeS()); if (CaiZXTime() == null) { ("RenCaiZXTime", null); } else { ("RenCaiZXTime", (CaiZXTime())); } if (henTime() == null) { ("FuShenTime", null); } else { ("FuShenTime", (henTime())); } if (Time() == null) { ("AddTime", null); } else { ("AddTime", (Time())); } ("cardcode", dcode()); ("zzmm", m()); ("FuShen", hen()); flag = "1"; } else { flag = "2"; } } } } } ("success", flag); return map; } @GetMapping("/signature") @ResponseBody public JSONObject code(String card_id,String accessToken) throws Exception {
public class WeixinSignature { private String api_ticket; private String timestamp; private String card_id; private String nonce_str; public String getNonce_str() { return nonce_str; } public void setNonce_str(String nonce_str) { _str = nonce_str; } public WeixinSignature(String api_ticket, String timestamp, String card_id, String nonce_str){ n("nonce_str"+nonce_str); _ticket = api_ticket; amp = timestamp; _id = card_id; _str = nonce_str; } /** *
加密参数 * @return */ public String sign() throws Exception { String[] str = {api_ticket,timestamp,card_id,nonce_str}; (str); String string = new String(); for(int i=0; i<4; i++){ string += str[i]; n("string"+string); } //加密结果 String signature = ode(string); //Sha1加密 return signature; } } /*
判读时间差距,两个时间相差多少天,时,分,秒 */ public static Long getDay(String date) { DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Long days = null; try { Date currentTime = ((new Date()));//现在系统当前时间 Date pastTime = (date);//过去时间 long diff = e() - e(); days = diff / (1000 * 60 * 60 * 24); } catch (ParseException | xception e) { tackTrace(); } return days; } /** *
发送post请求 * @return * @throws ParseException * @throws IOException */ @GetMapping("/createCard") @ResponseBody public HashMap
2024年2月12日发(作者:宰父融雪)
String openid = getOpenid(code); JSONObject jsonObject = bject(openid); String openid1 = ing("openid"); n("openid1:=="+openid1); int i = _id1(openid1); n("i:=="+i); HashMap
("GZGongZuo", ongZuo()); ("GZZhiWu", hiWu()); ("JLMingCheng", ingCheng()); ("JLShiJian", hiJian()); ("JLBuMen", uMen()); ("QXingMing", ngMing()); ("QZhengHao", engHao()); ("QXingBie", ngBie()); ("QGuanXi", anXi()); ("QMingZu", ngZu()); ("QShengRi", engRi()); ("QZhiWu", iWu()); ("QHuKouDiZhi", KouDiZhi()); ("QHuKou", Kou()); ("YuanHuKou", nHuKou()); ("YuanHuKouDiZhi", nHuKouDiZhi()); ("HuKou", ou()); ("HuKouDiZhi", ouDiZhi()); ("GuestNo", stNo()); ("GuestName", stName()); ("BeiZhu", Zhu()); ("ShouLiTiaoJian", uLiTiaoJian()); ("ShenQingShiJian", nQingShiJian()); ("Type", e()); ("FromTo", mTo()); ("YuShenTxt", henTxt()); ("YuShenTime", henTime()); ("YuShenRen", henRen()); ("YuShenAccount", henAccount()); ("PJQStar", Star()); ("SmsNote", Note()); ("PJQMsg", Msg()); ("CardNo", dNo()); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); if (dDate() == null) { ("CardDate", null); } else { ("CardDate", (dDate())); } if (dDateDQ() == null) { ("CardDateDQ", null); } else { ("CardDateDQ", (dDateDQ())); } if (dFiveDQTime() == null) { ("CardFiveDQTime", null); } else { ("CardFiveDQTime", (dFiveDQTime())); } ("CardState", f(dState())); ("CardType", f(dType())); if (dZKDate() == null) { ("CardZKDate", null); } else { ("CardZKDate", (dZKDate())); } ("CardSerial", dSerial()); ("RenCaiFlg", f(CaiFlg())); ("RenCaiFlgContent", CaiFlgContent()); ("CardTypeS", dTypeS()); if (CaiZXTime() == null) { ("RenCaiZXTime", null); } else { ("RenCaiZXTime", (CaiZXTime()));
("encryptCardId", encryptCardId); ("outerStr",outerStr); ("biz",biz); ("success","success");// ("send",post); } return jsonObject; } /** *
获取openid * @param code * @param sfzh * @param xmF */ @GetMapping("/wxgetcode") @ResponseBody public HashMap
("ShouJi", uJi()); ("YuanDanWei", nDanWei()); ("YuanZhiCheng", nZhiCheng()); ("YinJinLeiXing", JinLeiXing()); ("QianYueQiXian", nYueQiXian()); ("ZhiCheng", Cheng()); ("DanWei", Wei()); ("DiZhiQu", hiQu()); ("DiZhi", hi()); ("HangYe", gYe()); ("XingZhi", gZhi()); ("ShengZhi", ngZhi()); ("FaRen", en()); ("LianXiRen", nXiRen()); ("LianXiDianHua", nXiDianHua()); ("GZShiJian", hiJian()); ("GZGongZuo", ongZuo()); ("GZZhiWu", hiWu()); ("JLMingCheng", ingCheng()); ("JLShiJian", hiJian()); ("JLBuMen", uMen()); ("QXingMing", ngMing()); ("QZhengHao", engHao()); ("QXingBie", ngBie()); ("QGuanXi", anXi()); ("QMingZu", ngZu()); ("QShengRi", engRi()); ("QZhiWu", iWu()); ("QHuKouDiZhi", KouDiZhi()); ("QHuKou", Kou()); ("YuanHuKou", nHuKou()); ("YuanHuKouDiZhi", nHuKouDiZhi()); ("HuKou", ou()); ("HuKouDiZhi", ouDiZhi()); ("GuestNo", stNo()); ("GuestName", stName()); ("BeiZhu", Zhu()); ("ShouLiTiaoJian", uLiTiaoJian()); ("ShenQingShiJian", nQingShiJian()); ("Type", e()); ("FromTo", mTo()); ("YuShenTxt", henTxt()); ("YuShenTime", henTime()); ("YuShenRen", henRen()); ("YuShenAccount", henAccount()); ("PJQStar", Star()); ("SmsNote", Note()); ("PJQMsg", Msg()); ("CardNo", dNo()); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); if (dDate() == null) { ("CardDate", null); } else { ("CardDate", (dDate())); } if (dDateDQ() == null) { ("CardDateDQ", null); } else { ("CardDateDQ", (dDateDQ())); } if (dFiveDQTime() == null) { ("CardFiveDQTime", null); } else { ("CardFiveDQTime", (dFiveDQTime()));
("CardFiveDQTime", (dFiveDQTime())); } ("CardState", f(dState())); ("CardType", f(dType())); if (dZKDate() == null) { ("CardZKDate", null); } else { ("CardZKDate", (dZKDate())); } ("CardSerial", dSerial()); ("RenCaiFlg", f(CaiFlg())); ("RenCaiFlgContent", CaiFlgContent()); ("CardTypeS", dTypeS()); if (CaiZXTime() == null) { ("RenCaiZXTime", null); } else { ("RenCaiZXTime", (CaiZXTime())); } if (henTime() == null) { ("FuShenTime", null); } else { ("FuShenTime", (henTime())); } if (Time() == null) { ("AddTime", null); } else { ("AddTime", (Time())); } ("cardcode", dcode()); ("zzmm", m()); ("FuShen", hen()); flag = "1"; } else { flag = "2"; } } else { flag="4"; } } else { if (()>=1){ flag="4"; } else { if (openid!=null&&sfzh!=null){ wxsave = (openid, sfzh, xm); if(wxsave!=0){ NDShenPi ndShenPi = ect(sfzh, xm); if (ndShenPi != null) { ("id", f(())); ("BillNo", lNo()); ("OID", f(())); ("ShiXiangMingCheng", XiangMingCheng()); ("ShiXiangLeiXing", XiangLeiXing()); ("ShouLiShiXian", uLiShiXian()); ("ShiXiangBianMa", XiangBianMa()); ("ShouLiBuMen", uLiBuMen()); ("ShouLiChuangKou", uLiChuangKou()); ("ShouLiShiJian", uLiShiJian()); ("ShenQingRen", nQingRen()); ("ShenQingRenEN", nQingRenEN()); ("ZhengJianType", ngJianType()); ("ZhengJianHao", ngJianHao()); ("Img", ());
("ShengRi", ngRi()); ("XingBie", gBie()); ("MinZu", Zu()); ("GuoJia", Jia()); ("HuKouSuoZaiDi", ouSuoZaiDi()); ("XueLi", Li()); ("XueLiQuanRiZhi", LiQuanRiZhi()); ("QuanRiZhiZhuanYe", nRiZhiZhuanYe()); ("HaiWai", Wai()); ("XueLiZaiZhi", LiZaiZhi()); ("ZaiZhiZhuanYe", ZhiZhuanYe()); ("RenCaiLeiBie", CaiLeiBie()); ("RenCaiChengHao", CaiChengHao()); ("BiYeZhengShuBH", eZhengShuBH()); ("YJTime", ime()); ("YouXiang", Xiang()); ("DianHua", nHua()); ("ShouJi", uJi()); ("YuanDanWei", nDanWei()); ("YuanZhiCheng", nZhiCheng()); ("YinJinLeiXing", JinLeiXing()); ("QianYueQiXian", nYueQiXian()); ("ZhiCheng", Cheng()); ("DanWei", Wei()); ("DiZhiQu", hiQu()); ("DiZhi", hi()); ("HangYe", gYe()); ("XingZhi", gZhi()); ("ShengZhi", ngZhi()); ("FaRen", en()); ("LianXiRen", nXiRen()); ("LianXiDianHua", nXiDianHua()); ("GZShiJian", hiJian()); ("GZGongZuo", ongZuo()); ("GZZhiWu", hiWu()); ("JLMingCheng", ingCheng()); ("JLShiJian", hiJian()); ("JLBuMen", uMen()); ("QXingMing", ngMing()); ("QZhengHao", engHao()); ("QXingBie", ngBie()); ("QGuanXi", anXi()); ("QMingZu", ngZu()); ("QShengRi", engRi()); ("QZhiWu", iWu()); ("QHuKouDiZhi", KouDiZhi()); ("QHuKou", Kou()); ("YuanHuKou", nHuKou()); ("YuanHuKouDiZhi", nHuKouDiZhi()); ("HuKou", ou()); ("HuKouDiZhi", ouDiZhi()); ("GuestNo", stNo()); ("GuestName", stName()); ("BeiZhu", Zhu()); ("ShouLiTiaoJian", uLiTiaoJian()); ("ShenQingShiJian", nQingShiJian()); ("Type", e()); ("FromTo", mTo()); ("YuShenTxt", henTxt()); ("YuShenTime", henTime()); ("YuShenRen", henRen()); ("YuShenAccount", henAccount()); ("PJQStar", Star()); ("SmsNote", Note()); ("PJQMsg", Msg());
("CardNo", dNo()); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); if (dDate() == null) { ("CardDate", null); } else { ("CardDate", (dDate())); } if (dDateDQ() == null) { ("CardDateDQ", null); } else { ("CardDateDQ", (dDateDQ())); } if (dFiveDQTime() == null) { ("CardFiveDQTime", null); } else { ("CardFiveDQTime", (dFiveDQTime())); } ("CardState", f(dState())); ("CardType", f(dType())); if (dZKDate() == null) { ("CardZKDate", null); } else { ("CardZKDate", (dZKDate())); } ("CardSerial", dSerial()); ("RenCaiFlg", f(CaiFlg())); ("RenCaiFlgContent", CaiFlgContent()); ("CardTypeS", dTypeS()); if (CaiZXTime() == null) { ("RenCaiZXTime", null); } else { ("RenCaiZXTime", (CaiZXTime())); } if (henTime() == null) { ("FuShenTime", null); } else { ("FuShenTime", (henTime())); } if (Time() == null) { ("AddTime", null); } else { ("AddTime", (Time())); } ("cardcode", dcode()); ("zzmm", m()); ("FuShen", hen()); flag = "1"; } else { flag = "2"; } } } } } ("success", flag); return map; } @GetMapping("/signature") @ResponseBody public JSONObject code(String card_id,String accessToken) throws Exception {
public class WeixinSignature { private String api_ticket; private String timestamp; private String card_id; private String nonce_str; public String getNonce_str() { return nonce_str; } public void setNonce_str(String nonce_str) { _str = nonce_str; } public WeixinSignature(String api_ticket, String timestamp, String card_id, String nonce_str){ n("nonce_str"+nonce_str); _ticket = api_ticket; amp = timestamp; _id = card_id; _str = nonce_str; } /** *
加密参数 * @return */ public String sign() throws Exception { String[] str = {api_ticket,timestamp,card_id,nonce_str}; (str); String string = new String(); for(int i=0; i<4; i++){ string += str[i]; n("string"+string); } //加密结果 String signature = ode(string); //Sha1加密 return signature; } } /*
判读时间差距,两个时间相差多少天,时,分,秒 */ public static Long getDay(String date) { DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Long days = null; try { Date currentTime = ((new Date()));//现在系统当前时间 Date pastTime = (date);//过去时间 long diff = e() - e(); days = diff / (1000 * 60 * 60 * 24); } catch (ParseException | xception e) { tackTrace(); } return days; } /** *
发送post请求 * @return * @throws ParseException * @throws IOException */ @GetMapping("/createCard") @ResponseBody public HashMap