generated from root/miduo_server
浩凡iod
parent
213b38c99c
commit
9328cd5fe9
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue