소스 검색

修改生产环境配置信息

Jack 11 달 전
부모
커밋
506ed84c7a

+ 0 - 22
jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/api/okki/site/controller/OkkiSiteController.java

@@ -1,21 +1,11 @@
 package org.jeecg.modules.api.okki.site.controller;
 
-import java.security.Key;
 import java.util.Arrays;
-import java.util.List;
-import java.util.Map;
-import java.util.stream.Collectors;
-import java.io.IOException;
-import java.io.UnsupportedEncodingException;
-import java.net.URLDecoder;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
-import org.apache.commons.codec.binary.Base64;
 import org.jeecg.common.api.vo.Result;
 import org.jeecg.common.system.query.QueryGenerator;
-import org.jeecg.common.util.oConvertUtils;
-import org.jeecg.modules.api.okki.site.dto.CreateSiteDto;
 import org.jeecg.modules.api.okki.site.entity.OkkiSite;
 import org.jeecg.modules.api.okki.site.service.IOkkiSiteService;
 
@@ -24,26 +14,14 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import lombok.extern.slf4j.Slf4j;
 
-import org.jeecgframework.poi.excel.ExcelImportUtil;
-import org.jeecgframework.poi.excel.def.NormalExcelConstants;
-import org.jeecgframework.poi.excel.entity.ExportParams;
-import org.jeecgframework.poi.excel.entity.ImportParams;
-import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
 import org.jeecg.common.system.base.controller.JeecgController;
-import org.springframework.beans.BeanUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
-import org.springframework.web.multipart.MultipartFile;
-import org.springframework.web.multipart.MultipartHttpServletRequest;
 import org.springframework.web.servlet.ModelAndView;
-import com.alibaba.fastjson.JSON;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import org.jeecg.common.aspect.annotation.AutoLog;
 import org.apache.shiro.authz.annotation.RequiresPermissions;
-import sun.plugin.com.Utils;
-
-import static org.jeecg.modules.api.okki.utils.AESUtils.*;
 
 /**
  * @Description: 站点

+ 1 - 5
jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/api/okki/site/controller/ShopApiController.java

@@ -1,10 +1,8 @@
 package org.jeecg.modules.api.okki.site.controller;
 
 import org.jeecg.common.api.vo.Result;
-import org.jeecg.modules.api.okki.site.dto.CreateSiteDto;
 import org.jeecg.modules.api.okki.site.entity.OkkiSite;
 import org.jeecg.modules.api.okki.site.service.IOkkiSiteService;
-import org.springframework.beans.BeanUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
@@ -20,13 +18,11 @@ public class ShopApiController {
     private IOkkiSiteService okkiSiteService;
 
     @PostMapping(value = "/add")
-    public Result<String> add(@RequestBody CreateSiteDto createSiteDto, @RequestHeader Map<String, String> headers) {
+    public Result<String> add(@RequestBody OkkiSite okkiSite, @RequestHeader Map<String, String> headers) {
         String Authorization = "8FF9B4CE9E24C58994C55609A11DC5FE06FD98980467652F92461A7EBDD1B2397840749ECCD5439D0E607FE90C350FED0D2F51994C5ADD5B88172A47E918D51E171D0F2E2CBED68B2D21229434951991E073311A11B7F5A09302A85343875D91AE682BA8FE2ED567E7B47CA560FF09B5FF3AD4260F282362577E549C2ECC80231D691227A01A8F49645393ECBAE047B15870E08938DEB47CB83D8578B13DDC0786322201B50D4E048A9749EC28FD2E05247E3B89AD7C430C60C8D51CC45B96FFBE6F45C9F0E436492E1CF4816C5FFF4372E4BF9C75F857B172C93A7CF3311604";
         if (!headers.get("Authorization").equals(Authorization)) {
             return Result.error("sign 验证不通过");
         }
-        OkkiSite okkiSite = new OkkiSite();
-        BeanUtils.copyProperties(createSiteDto, okkiSite);
         okkiSiteService.save(okkiSite);
         return Result.OK("添加成功!");
     }

+ 0 - 85
jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/api/okki/site/dto/CreateSiteDto.java

@@ -1,85 +0,0 @@
-package org.jeecg.modules.api.okki.site.dto;
-
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.fasterxml.jackson.annotation.JsonFormat;
-import io.swagger.annotations.ApiModelProperty;
-import lombok.Data;
-import org.jeecgframework.poi.excel.annotation.Excel;
-import org.springframework.format.annotation.DateTimeFormat;
-
-import java.io.Serializable;
-import java.util.Date;
-
-@Data
-public class CreateSiteDto implements Serializable {
-
-    private static final long serialVersionUID = 1L;
-
-    /**主键*/
-    @TableId(type = IdType.ASSIGN_ID)
-    @ApiModelProperty(value = "主键")
-    private String id;
-    /**创建人*/
-    @ApiModelProperty(value = "创建人")
-    private String createBy;
-    /**创建日期*/
-    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
-    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
-    @ApiModelProperty(value = "创建日期")
-    private Date createTime;
-    /**更新人*/
-    @ApiModelProperty(value = "更新人")
-    private String updateBy;
-    /**更新日期*/
-    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
-    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
-    @ApiModelProperty(value = "更新日期")
-    private Date updateTime;
-    /**站点id*/
-    @Excel(name = "站点id", width = 15)
-    @ApiModelProperty(value = "站点id")
-    private Integer siteId;
-    /**公司名称*/
-    @Excel(name = "公司名称", width = 15)
-    @ApiModelProperty(value = "公司名称")
-    private String companyName;
-    /**初始化的域名*/
-    @Excel(name = "初始化的域名", width = 15)
-    @ApiModelProperty(value = "初始化的域名")
-    private String domain;
-    /**联系方式*/
-    @Excel(name = "联系方式", width = 15)
-    @ApiModelProperty(value = "联系方式")
-    private String tel;
-    /**联系人*/
-    @Excel(name = "联系人", width = 15)
-    @ApiModelProperty(value = "联系人")
-    private String contact;
-    /**邮箱*/
-    @Excel(name = "邮箱", width = 15)
-    @ApiModelProperty(value = "邮箱")
-    private String email;
-    /**公司名英⽂简称*/
-    @Excel(name = "公司名英⽂简称", width = 15)
-    @ApiModelProperty(value = "公司名英⽂简称")
-    private String enname;
-    /**套餐名*/
-    @Excel(name = "套餐名", width = 15)
-    @ApiModelProperty(value = "套餐名")
-    private String tcName;
-    /**套餐周期,单位⽉*/
-    @Excel(name = "套餐周期,单位⽉", width = 15)
-    @ApiModelProperty(value = "套餐周期,单位⽉")
-    private Integer tcPeriod;
-    /**站点选择的⼩语种语⾔*/
-    @Excel(name = "站点选择的⼩语种语⾔", width = 15)
-    @ApiModelProperty(value = "站点选择的⼩语种语⾔")
-    private String tcLanguage;
-    /**备注*/
-    @Excel(name = "备注", width = 15)
-    @ApiModelProperty(value = "备注")
-    private String remark;
-
-    private String sign;
-}

+ 1 - 1
jeecg-boot/jeecg-module-system/jeecg-system-start/src/main/resources/application-prod.yml

@@ -1,5 +1,5 @@
 server:
-  port: 8080
+  port: 8088
   tomcat:
     max-swallow-size: -1
   error: