浩凡iod

master
xuexinpeng 2022-05-11 18:19:45 +08:00
parent 213b38c99c
commit 9328cd5fe9
1 changed files with 8 additions and 1 deletions

View File

@ -18,6 +18,7 @@ public class HFVerifyService extends AbstractVerifyService {
public static final String app_key = "FKzLkGPIyMwYjXhRYfMWBsqikOfSPLkX";
public static final String app_id = "30397";
public static final String app_id_ios= "30398";
private static final Logger LOGGER = LoggerFactory.getLogger(HFVerifyService.class);
public static int isTestLan = 0;
@ -91,7 +92,12 @@ public class HFVerifyService extends AbstractVerifyService {
String url = "http://unionsdk.haofangame.com/api/checkToken.jhtml";
Map<String, String> parms = new HashMap<>();
parms.put("token", params.getToken());
parms.put("gamePid", app_id);
if(params.getPlatformId().equals("android")){
parms.put("gamePid", app_id);
}else{
parms.put("gamePid", app_id_ios);
}
parms.put("userNo", params.getOpenId());
boolean result = false;
try {
@ -123,6 +129,7 @@ public class HFVerifyService extends AbstractVerifyService {
params.setToken(token);
params.setAppId(app_id);
params.setOpenId(openId);
params.setPlatformId(request.getParameter("plat"));
return params;
}
}