yumeng 5 năm trước cách đây
mục cha
commit
6e27e4ef49

+ 2 - 2
module-common/src/main/java/cn/com/ctop/common/module/service/impl/CtopOauthTokenServiceImpl.java

@@ -107,10 +107,10 @@ public class CtopOauthTokenServiceImpl extends ServiceImpl<CtopOauthTokenMapper,
         Map<String, String> headers = new HashMap<String, String>();
         headers.put("Content-Type", " application/json");
         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("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("secret", PropertiesUtils.getConfig("kuaishou_third_secret"));
         }