fix
Helius
2021-11-08 37a869976450a44a842ee6bcd9b3618e1ece62e7
zq-erp/src/main/java/com/matrix/system/shopXcx/api/WeChatApiTools.java
@@ -45,9 +45,12 @@
    * @param code
    * @return
    */
   public  String getXcxLoginUrl(String code,Long companyId) {
   public  String getXcxLoginUrl(String code,Long companyId, String type) {
      String wechatLoginUrl = PropertiesUtil.getString(WECHAT_LOGIN_URL);
      return String.format(wechatLoginUrl, getAppid(companyId), getSecret(companyId), code);
      if (AppConstance.MINIPROGRAM_APPID.equals(type)) {
         return String.format(wechatLoginUrl, getAppid(companyId), getSecret(companyId), code);
      } else {
         return String.format(wechatLoginUrl, getManagerAppId(companyId), getManagerSecret(companyId), code);      }
   }
   /**
@@ -68,6 +71,17 @@
      return  secret.getParamValue();
   }
   public String getManagerAppId(Long companyId) {
      BusParameterSettings appId = busParameterSettingsDao.selectCompanyParamByCode(AppConstance.MINI_PROGRAM_MANAGER_APP_ID, companyId);
      return  appId.getParamValue();
   }
   public  String  getManagerSecret(Long companyId){
      BusParameterSettings secret = busParameterSettingsDao.selectCompanyParamByCode(AppConstance.MINI_PROGRAM_MANAGER_SECRET, companyId);
      return  secret.getParamValue();
   }
   /**