|
|
@@ -67,7 +67,7 @@ public class WechatScanLoginServiceImpl implements WechatScanLoginService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public Map<String, String> wechatBindUrl(String cardNo) {
|
|
|
+ public Map<String, String> wechatBindUrl(String phone,String messageCode) {
|
|
|
String content = Constanst.PWD_MD5+ DateUtils.getYYYYMMdd();
|
|
|
byte[] encrypt = AesUtil.encrypt(content, AesUtil.PASSWORD_SECRET_KEY, 16);
|
|
|
String parseByte2HexStr = AesUtil.parseByte2HexStr(encrypt);
|
|
|
@@ -76,7 +76,7 @@ public class WechatScanLoginServiceImpl implements WechatScanLoginService {
|
|
|
url = url.replaceAll("APPID", PropertiesUtil.getValue(HttpParame.APPID));
|
|
|
try {
|
|
|
url = url.replaceAll("REDIRECT_URI", URLEncoder.encode(
|
|
|
- PropertiesUtil.getValue(HttpParame.BIND_URI)+"?cardNo="+cardNo,"UTF-8"));
|
|
|
+ PropertiesUtil.getValue(HttpParame.BIND_URI)+"?phone="+phone+"&messageCode="+messageCode,"UTF-8"));
|
|
|
} catch (UnsupportedEncodingException e) {
|
|
|
e.printStackTrace();
|
|
|
}
|