generated from root/miduo_server
增加太初行直播8渠道
parent
a89a8576ec
commit
7f40dd5856
|
@ -82,6 +82,8 @@ public class GetUserController extends HttpServlet {
|
|||
serviceMap.put("TCX02706", new Tcx02706VerifyService("TCX02706"));
|
||||
//太初行quick7直播渠道
|
||||
serviceMap.put("TCXQKZB07", new QuickTcxZbVerifyService("TCXQKZB07"));
|
||||
//太初行quick8直播渠道
|
||||
serviceMap.put("TCXQKZB08", new QuickTcxZb8VerifyService("TCXQKZB08"));
|
||||
//太初行quickGm9渠道
|
||||
serviceMap.put("TCXQKGM09", new QuickTcxGm9VerifyService("TCXQKGM09"));
|
||||
//太初行quick直播2渠道
|
||||
|
|
|
@ -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;
|
||||
|
||||
/**
|
||||
* 太初行quick专服8直播渠道
|
||||
*/
|
||||
public class QuickTcxZb8VerifyService extends QuickVerifyService {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(QuickTcxZb8VerifyService.class);
|
||||
public final static String product_code = "99873161346190709859943568354314";
|
||||
|
||||
public QuickTcxZb8VerifyService(String sign) {
|
||||
super(sign);
|
||||
}
|
||||
|
||||
@Override
|
||||
boolean doVerify(VerifyParams params) {
|
||||
LOGGER.info("quick 太初行 登录验证-->{}",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 太初行 请求结果:{}",r);
|
||||
if (r != null && r.equals("1")) {
|
||||
result = true;
|
||||
}
|
||||
}catch (IOException e){
|
||||
LOGGER.info("quick 太初行 验证失败,IOException:{}",e.getMessage());
|
||||
return false;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue