generated from root/miduo_server
url使用配置
parent
49cb0abdcc
commit
06500c0f40
|
@ -235,6 +235,9 @@ public class GetUserController extends HttpServlet {
|
|||
|
||||
public static boolean loginVerfify(String channelName,String openId,String token,String appId){
|
||||
try{
|
||||
Properties properties = BaseGlobal.getInstance().properties;
|
||||
|
||||
String login_url = properties.getProperty("login_url");
|
||||
String loginUrl = MHTSDKConstans.loginVerify;
|
||||
Map<String, String> params = new HashMap<>();
|
||||
|
||||
|
@ -244,7 +247,7 @@ public class GetUserController extends HttpServlet {
|
|||
String sign = getSign(getParamString(params), appId, MHTSDKConstans.secretKey);
|
||||
params.put("sign", sign);
|
||||
// loginUrl+"?"+"sid="+params.get("sid")+"&appid="+
|
||||
String loginResult = HttpUtils.doPost(loginUrl,params);
|
||||
String loginResult = HttpUtils.doPost(login_url,params);
|
||||
if(loginResult == null || loginResult.isEmpty()){
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue