Helius
2022-02-14 59cf24b0aba393e145f4ba3d58e98b7a01a80992
zq-erp/src/main/java/com/matrix/system/shopXcx/api/WeChatApiTools.java
@@ -16,7 +16,6 @@
@Service
public class WeChatApiTools {
   @Autowired
   private BusParameterSettingsDao busParameterSettingsDao;
@@ -48,7 +47,22 @@
    */
   public  String getXcxLoginUrl(String code,Long companyId) {
      String wechatLoginUrl = PropertiesUtil.getString(WECHAT_LOGIN_URL);
      return String.format(wechatLoginUrl, getAppid(companyId), getSecret(companyId), code);
   }
   /**
    * 获取管理端小程序登录地址
    *
    * @param code
    * @return
    */
   public String getManagerXcxLoginUrl(String code) {
      String wechatLoginUrl = PropertiesUtil.getString(WECHAT_LOGIN_URL);
      String appId = PropertiesUtil.getString(AppConstance.MINI_PROGRAM_MANAGER_APP_ID);
      String secret = PropertiesUtil.getString(AppConstance.MINI_PROGRAM_MANAGER_SECRET);
      return String.format(wechatLoginUrl, appId, secret, code);
   }
   /**
@@ -68,8 +82,6 @@
      BusParameterSettings secret = busParameterSettingsDao.selectCompanyParamByCode(AppConstance.MINIPROGRAM_SECRET, companyId);
      return  secret.getParamValue();
   }
   /**
    * 清空token