generated from root/miduo_server
商务服修改登录sdk
parent
09e64d9b56
commit
357d602903
|
@ -180,6 +180,9 @@ public class GetUserController extends HttpServlet {
|
|||
if (sub_channel.equals("1000")) {
|
||||
//测试服appId
|
||||
result = loginVerfify("MHT", openId, token, MHTSDKConstans.rhappid);
|
||||
} else if(sub_channel.equals("20201222")){
|
||||
//商务服
|
||||
result = loginVerfifyShangwu("MHT", openId, token, MHTSDKConstans.rhappIdshangwu);
|
||||
} else {
|
||||
//正式服appId
|
||||
result = loginVerfify("MHT", openId, token, MHTSDKConstans.rhappidOnline);
|
||||
|
@ -232,6 +235,26 @@ public class GetUserController extends HttpServlet {
|
|||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
public static boolean loginVerfifyShangwu(String channelName,String openId,String token,String appId){
|
||||
try{
|
||||
String loginUrl = MHTSDKConstans.loginVerifyShangwu;
|
||||
Map<String, String> params = new HashMap<>();
|
||||
|
||||
params.put("userToken", token);
|
||||
params.put("appId", appId);
|
||||
params.put("channelName", channelName);
|
||||
params.put("uid", openId);
|
||||
// loginUrl+"?"+"sid="+params.get("sid")+"&appid="+
|
||||
String loginResult = HttpUtils.doPost(loginUrl,params);
|
||||
if(loginResult == null || loginResult.isEmpty()){
|
||||
return false;
|
||||
}
|
||||
return parseLoginResult(loginResult);
|
||||
}catch(Exception e){
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static boolean loginVerfifyByTestLan(String openId,String token) throws Exception {
|
||||
|
|
|
@ -13,12 +13,13 @@ public class MHTSDKConstans {
|
|||
// public static String rhappidOnline = "7bb5f604306ccd93fc19f05d3a374e84";
|
||||
public static String rhappidOnline = "2c3239afdb0c14631e8ad97b35e289d9";
|
||||
public static String back = "http://kwsdk.17173g.cn/platformPay/MHT/callBack";
|
||||
public static String rhappIdshangwu = "e14b84d11b3a1005fd03893880fc393a";
|
||||
|
||||
// public static String androidVerify = "http://sujie.passport.ktsdk.com/user/verifyAccount";
|
||||
// public static String iosVerify = "http://sujie.passport.ktsdk.com/userios/verifyAccount";
|
||||
public static String loginVerify = "http://api.17173g.cn:28080/platform-login/user-login/checkLogin.do";
|
||||
public static String secretKey = "eb4287c41d8318c140334da7588e4159";
|
||||
|
||||
public static String loginVerifyShangwu = "http://kwsdk.17173g.cn/cp/checkLogin";
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue