generated from root/miduo_server
增加西游返利渠道
parent
c04fa0070f
commit
e6a8094912
|
@ -86,6 +86,7 @@ public class GetUserController extends HttpServlet {
|
||||||
serviceMap.put("TCXQUZB2", new QuickTcxZb2VerifyService("TCXQUZB2"));
|
serviceMap.put("TCXQUZB2", new QuickTcxZb2VerifyService("TCXQUZB2"));
|
||||||
//西游悠谷直播1
|
//西游悠谷直播1
|
||||||
serviceMap.put("XYYGZB01", new XiyouYouGuZhiboVerifyService("XYYGZB01"));
|
serviceMap.put("XYYGZB01", new XiyouYouGuZhiboVerifyService("XYYGZB01"));
|
||||||
|
serviceMap.put("XYFANLI01", new QuickXyFanli01VerifyService("XYFANLI01"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,44 @@
|
||||||
|
package com.ljsd.service;
|
||||||
|
|
||||||
|
import com.ljsd.pojo.VerifyParams;
|
||||||
|
import com.ljsd.util.HttpUtils;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 西游直播渠道
|
||||||
|
*/
|
||||||
|
public class QuickXyFanli01VerifyService extends QuickVerifyService {
|
||||||
|
private static final Logger LOGGER = LoggerFactory.getLogger(QuickXyFanli01VerifyService.class);
|
||||||
|
public final static String product_code = "81115814781063502113497654633012";
|
||||||
|
|
||||||
|
public QuickXyFanli01VerifyService(String sign) {
|
||||||
|
super(sign);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
boolean doVerify(VerifyParams params) {
|
||||||
|
LOGGER.info("quick 西游直播返利1 登录验证-->{}",params.getOpenId());
|
||||||
|
String url = "http://checkuser.quickapi.net/v2/checkUserInfo";
|
||||||
|
Map<String,String> parms = new HashMap<>();
|
||||||
|
parms.put("token",params.getToken());
|
||||||
|
parms.put("product_code", product_code);
|
||||||
|
parms.put("uid",params.getOpenId());
|
||||||
|
boolean result = false;
|
||||||
|
try {
|
||||||
|
String r = HttpUtils.doPost(url, parms);
|
||||||
|
LOGGER.info("quick 西游直播返利1 请求结果:{}",r);
|
||||||
|
if (r != null && r.equals("1")) {
|
||||||
|
result = true;
|
||||||
|
}
|
||||||
|
}catch (IOException e){
|
||||||
|
LOGGER.info("quick 西游直播返利1 验证失败,IOException:{}",e.getMessage());
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue