|
@@ -107,10 +107,10 @@ public class CtopOauthTokenServiceImpl extends ServiceImpl<CtopOauthTokenMapper,
|
|
Map<String, String> headers = new HashMap<String, String>();
|
|
Map<String, String> headers = new HashMap<String, String>();
|
|
headers.put("Content-Type", " application/json");
|
|
headers.put("Content-Type", " application/json");
|
|
Map<String, Object> param = new HashMap<String, Object>();
|
|
Map<String, Object> param = new HashMap<String, Object>();
|
|
- if (agentType == 1) {
|
|
|
|
|
|
+ if (agentType.equals(1)) {
|
|
param.put("app_id", PropertiesUtils.getConfig("kuaishou_appid"));
|
|
param.put("app_id", PropertiesUtils.getConfig("kuaishou_appid"));
|
|
param.put("secret", PropertiesUtils.getConfig("kuaishou_secret"));
|
|
param.put("secret", PropertiesUtils.getConfig("kuaishou_secret"));
|
|
- } else if (agentType == 0) {
|
|
|
|
|
|
+ } else if (agentType.equals(0)) {
|
|
param.put("app_id", PropertiesUtils.getConfig("kuaishou_third_appid"));
|
|
param.put("app_id", PropertiesUtils.getConfig("kuaishou_third_appid"));
|
|
param.put("secret", PropertiesUtils.getConfig("kuaishou_third_secret"));
|
|
param.put("secret", PropertiesUtils.getConfig("kuaishou_third_secret"));
|
|
}
|
|
}
|