浏览代码

APP热更新,BUG修改

LIVE_YE 1 年之前
父节点
当前提交
acf96e1dfd

+ 2 - 2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/UpdateAppController.java

@@ -73,7 +73,7 @@ public class UpdateAppController extends BaseController
      * 修改【请填写功能名称】
      */
     @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
-    @PutMapping
+    @PostMapping("/put")
     public AjaxResult edit(@RequestBody UpdateApp updateApp)
     {
         return toAjax(updateAppService.updateUpdateApp(updateApp));
@@ -83,7 +83,7 @@ public class UpdateAppController extends BaseController
      * 删除【请填写功能名称】
      */
     @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
-	@DeleteMapping("/{ids}")
+	@GetMapping("/delete/{ids}")
     public AjaxResult remove(@PathVariable Long[] ids)
     {
         return toAjax(updateAppService.deleteUpdateAppByIds(ids));

+ 2 - 2
ruoyi-admin/src/main/resources/application.yml

@@ -19,8 +19,8 @@ spring:
     # 国际化资源文件路径
     basename: i18n/messages
   profiles:
-    active: druid
-    #active: prod
+    #active: druid
+    active: prod
   # 文件上传
   servlet:
     multipart:

+ 1 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ZxSpeakServiceImpl.java

@@ -56,6 +56,7 @@ public class ZxSpeakServiceImpl implements IZxSpeakService
     public int insertZxSpeak(ZxSpeak zxSpeak)
     {
         zxSpeak.setCreateTime(DateUtils.getNowDate());
+        zxSpeak.setSpeakTime(DateUtils.getNowDate());
         return zxSpeakMapper.insertZxSpeak(zxSpeak);
     }