generated from root/miduo_server
修改log
parent
29d1e458a1
commit
8abfa172df
|
@ -19,6 +19,7 @@ public class Tcx02702VerifyService extends Tcx027VerifyService {
|
|||
private static final Logger LOGGER = LoggerFactory.getLogger(Tcx02702VerifyService.class);
|
||||
public static int isTestLan=0;
|
||||
public final static String serverKey = "bb0f57f8061eaca83a8e172536f3704d";
|
||||
public final static String appId = "2f89c8ab1866fbd990006df560e887ba";
|
||||
|
||||
public Tcx02702VerifyService(String sign) {
|
||||
super(sign);
|
||||
|
@ -73,7 +74,7 @@ public class Tcx02702VerifyService extends Tcx027VerifyService {
|
|||
return openId;
|
||||
}
|
||||
|
||||
if (!"1".equals(platform) ) {//正式 切不是pc
|
||||
if (!"3".equals(platform) ) {//正式 切不是pc
|
||||
String sub_channel = request.getParameter("sub_channel");
|
||||
boolean result = false;
|
||||
if (sub_channel != null && !sub_channel.equals("")) {
|
||||
|
@ -90,6 +91,7 @@ public class Tcx02702VerifyService extends Tcx027VerifyService {
|
|||
LOGGER.error("------------- 027 verify openId :" + openId);
|
||||
VerifyParams params = new VerifyParams();
|
||||
VerifyParams formatParam = getFormatParam(params,request, openId, token);
|
||||
formatParam.setAppId(appId);
|
||||
return doVerifyGetOpenId(formatParam);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,6 +19,7 @@ public class Tcx027VerifyService extends AbstractVerifyService {
|
|||
private static final Logger LOGGER = LoggerFactory.getLogger(Tcx027VerifyService.class);
|
||||
public static int isTestLan=0;
|
||||
public final static String serverKey = "9d261207adcf68c3713bd679a14614a6";
|
||||
public final static String appId = "ae526ad09217c7de12b3130d8ef9c176";
|
||||
|
||||
public Tcx027VerifyService(String sign) {
|
||||
super(sign);
|
||||
|
@ -54,6 +55,7 @@ public class Tcx027VerifyService extends AbstractVerifyService {
|
|||
//正式服appId
|
||||
VerifyParams params = new VerifyParams();
|
||||
VerifyParams formatParam = getFormatParam(params,request, openId, token);
|
||||
formatParam.setAppId(appId);
|
||||
result = verifyFormat(formatParam);
|
||||
}
|
||||
}
|
||||
|
@ -160,6 +162,7 @@ public class Tcx027VerifyService extends AbstractVerifyService {
|
|||
LOGGER.error("------------- 027 verify openId :" + openId);
|
||||
VerifyParams params = new VerifyParams();
|
||||
VerifyParams formatParam = getFormatParam(params,request, openId, token);
|
||||
formatParam.setAppId(appId);
|
||||
return doVerifyGetOpenId(formatParam);
|
||||
}
|
||||
}
|
||||
|
@ -212,4 +215,17 @@ public class Tcx027VerifyService extends AbstractVerifyService {
|
|||
return null;
|
||||
}
|
||||
|
||||
public static void main(String args[]) throws IOException {
|
||||
String url = "http://sdk.user.i.027gm.com/game/verify/login";
|
||||
Map<String,String> parms = new HashMap<>();
|
||||
String token = "OTQxNUFpQzFtQWFicU9MTjBkTkpVNUFuUEZHWVhJS0NWdFRtODBKd2dGckFnVk5kQ0VNUEJlbmd1YUVXTlkrRU01MEdtQ2ZHV21zZW5nLy9mWUVxZjM1NEJ5T3drQlEvOTdBNVBZd3NVYnd5WHBjMVZncGhLMFZB";
|
||||
String appId = "ae526ad09217c7de12b3130d8ef9c176";
|
||||
parms.put("token",token);
|
||||
parms.put("appId",appId);
|
||||
String sign = MD5Util.encrypByMd5(appId + serverKey + token);
|
||||
parms.put("sign",sign);
|
||||
String r = HttpUtils.doPost(url, parms);
|
||||
System.out.println("-----" + r);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue