generated from root/miduo_server
appId修改
parent
ed9bbcc02a
commit
2d72caf1d5
|
@ -183,6 +183,8 @@ public class GetUserController extends HttpServlet {
|
||||||
|
|
||||||
public boolean vertify(HttpServletResponse response,HttpServletRequest request,String admin,String platform,String pid,String openId,String token){
|
public boolean vertify(HttpServletResponse response,HttpServletRequest request,String admin,String platform,String pid,String openId,String token){
|
||||||
try {
|
try {
|
||||||
|
Properties properties = BaseGlobal.getInstance().properties;
|
||||||
|
|
||||||
if(!KTSDKConstans.appsecret.equals(admin)) {
|
if(!KTSDKConstans.appsecret.equals(admin)) {
|
||||||
if (isTestLan == 1) { //test
|
if (isTestLan == 1) { //test
|
||||||
boolean result = loginVerfifyByTestLan(openId, token);
|
boolean result = loginVerfifyByTestLan(openId, token);
|
||||||
|
@ -203,7 +205,8 @@ public class GetUserController extends HttpServlet {
|
||||||
result = loginVerfifyShangwu("MHT", openId, token, MHTSDKConstans.rhappIdshangwu);
|
result = loginVerfifyShangwu("MHT", openId, token, MHTSDKConstans.rhappIdshangwu);
|
||||||
} else {
|
} else {
|
||||||
//正式服appId
|
//正式服appId
|
||||||
result = loginVerfify("MHT", openId, token, MHTSDKConstans.rhappidOnline);
|
String appId_online = properties.getProperty("appId_online");
|
||||||
|
result = loginVerfify("MHT", openId, token, appId_online);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!result) {
|
if (!result) {
|
||||||
|
|
Loading…
Reference in New Issue