|
@@ -3,10 +3,7 @@ package com.qmth.boot.core.solar.service;
|
|
import com.qmth.boot.core.solar.api.SolarApiClient;
|
|
import com.qmth.boot.core.solar.api.SolarApiClient;
|
|
import com.qmth.boot.core.solar.config.SolarProperties;
|
|
import com.qmth.boot.core.solar.config.SolarProperties;
|
|
import com.qmth.boot.core.solar.crypto.AppLicenseUtil;
|
|
import com.qmth.boot.core.solar.crypto.AppLicenseUtil;
|
|
-import com.qmth.boot.core.solar.model.AppControl;
|
|
|
|
-import com.qmth.boot.core.solar.model.AppInfo;
|
|
|
|
-import com.qmth.boot.core.solar.model.AppLicense;
|
|
|
|
-import com.qmth.boot.core.solar.model.OrgInfo;
|
|
|
|
|
|
+import com.qmth.boot.core.solar.model.*;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.slf4j.LoggerFactory;
|
|
@@ -148,4 +145,25 @@ public class SolarService {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 根据appId获取微信访问令牌
|
|
|
|
+ *
|
|
|
|
+ * @param appId
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ public String getWxappAccessToken(String appId) {
|
|
|
|
+ return solarApiClient.getWxappAccessToken(appId);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 通过appId及临时凭证获取微信登录密钥接口
|
|
|
|
+ *
|
|
|
|
+ * @param appId
|
|
|
|
+ * @param code
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ public WxappSession getWxappSessionByCode(String appId, String code) {
|
|
|
|
+ return solarApiClient.getWxappSessionByCode(appId, code);
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|