quick登陆

master
grimm 2024-02-20 11:45:42 +08:00
parent 16e8089a44
commit 58e3c28d74
3 changed files with 8 additions and 11 deletions

View File

@ -32,7 +32,6 @@ public class GetUserController extends HttpServlet {
// serviceMap.put("MHT", new LdVerifyService("MHT"));
// serviceMap.put("XP", new XPVerifyService("XP"));
// serviceMap.put("CH",new CaohuaVerifyService("CH"));
// serviceMap.put("QUICK", new QuickVerifyService("QUICK"));
// serviceMap.put("QIANYOU", new QiYouVerifyService("huangjiayl&qypay"));
// serviceMap.put("YX", new YxylVerifyService("YX"));
// serviceMap.put("DY", new V3367VerifyService("DY"));
@ -41,8 +40,9 @@ public class GetUserController extends HttpServlet {
// serviceMap.put("DUOYOU", new DuoYouVerifyService("DUOYOU"));
// serviceMap.put("AIWAN", new AiWanVerifyService("AIWAN"));
// serviceMap.put("HF", new HFVerifyService("HF"));
// serviceMap.put("QUICK3", new QuickVerifyService3("QUICK3"));
serviceMap.put("QUICK", new QuickVerifyService("QUICK"));
serviceMap.put("XQDC", new XiaoqiDiscountVerifyService("XQDC"));
serviceMap.put("QUICK3", new QuickVerifyService3("QUICK3"));
serviceMap.put("YOUGU", new YouGuVerifyService("YG"));
serviceMap.put("YGDC", new YouguDiscountVerifyService("YGDC"));
serviceMap.put("FENGTI", new FengTiVerifyService("FENGTI"));

View File

@ -12,11 +12,10 @@ import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
@Deprecated
public class QuickVerifyService extends AbstractVerifyService {
private static final Logger LOGGER = LoggerFactory.getLogger(QuickVerifyService.class);
public static int isTestLan=0;
private final static String product_code = "98413963499457078085779851192112";
public final static String product_code = "83982581031944856480581367091990";
public QuickVerifyService(String sign) {
super(sign);
@ -39,17 +38,14 @@ public class QuickVerifyService extends AbstractVerifyService {
} else if (!"3".equals(platform) ) {//正式 切不是pc
String sub_channel = request.getParameter("sub_channel");
boolean result = false;
if (sub_channel != null && !sub_channel.equals("")) {
if (sub_channel != null && !sub_channel.isEmpty()) {
if (sub_channel.equals("1000")) {
//测试服构建参数
VerifyParams params = new VerifyParams();
params.setProductCode(product_code);
VerifyParams testParam = getTestParam(params,request, openId, token);
result = verifyTest(testParam);
} else if(sub_channel.equals("20201222")){
//商务服
//result = loginVerfifyShangwu("MHT", openId, token, MHTSDKConstans.rhappIdshangwu);
} else {
}else {
//正式服appId
VerifyParams params = new VerifyParams();
params.setProductCode(product_code);
@ -92,11 +88,11 @@ public class QuickVerifyService extends AbstractVerifyService {
try {
String r = HttpUtils.doPost(url, parms);
LOGGER.info("QUICK请求结果:{}",r);
if(r.equals("1")){
if (r != null && r.equals("1")) {
result = true;
}
}catch (IOException e){
LOGGER.info("quick验证失败,IOException");
LOGGER.info("quick验证失败,IOException:{}",e.getMessage());
return false;
}
return result;

View File

@ -18,6 +18,7 @@ import java.util.Map;
/**
* ohayoo
*/
@Deprecated
public class QuickVerifyService3 extends AbstractVerifyService {
private static final Logger LOGGER = LoggerFactory.getLogger(AbstractVerifyService.class);
public static int isTestLan=0;