appId修改

master
lvxinran 2021-04-26 20:02:26 +08:00
parent ed9bbcc02a
commit 2d72caf1d5
1 changed files with 4 additions and 1 deletions

View File

@ -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) {