1.Linux集群通过NFS共享图片

2.pom 多环境打包
master
星期八 6 years ago
parent f37f7973e1
commit 39f72646a0
  1. 4
      pom.xml
  2. 1
      src/main/java/com/lq/cms/web/wechat/WechatMessageController.java
  3. 38
      src/main/java/com/lq/entity/WechatRuleMessage.java
  4. 2
      src/main/resources/pro/file.properties
  5. 13
      src/main/webapp/WEB-INF/views/jsp/cms/wechat/rule/index.jsp
  6. 93
      src/main/webapp/WEB-INF/views/jsp/index.jsp

@ -623,14 +623,14 @@
<filtering>false</filtering> <filtering>false</filtering>
</resource> </resource>
<!-- <resource> <resource>
<directory>src/main/java</directory> <directory>src/main/java</directory>
<includes> <includes>
<include>**/*.properties</include> <include>**/*.properties</include>
</includes> </includes>
<filtering>false</filtering> <filtering>false</filtering>
</resource> </resource>
-->
</resources> </resources>
</build> </build>

@ -41,6 +41,7 @@ public class WechatMessageController {
@Autowired @Autowired
private WechatMessageService wechatMessageService; private WechatMessageService wechatMessageService;
@Value("${file.upload}") @Value("${file.upload}")
private String FILE_LOAD_PATH; private String FILE_LOAD_PATH;

@ -0,0 +1,38 @@
package com.lq.entity;
import com.lq.code.entity.IdEntity;
import java.util.Date;
/**
* @Author: qi
* @Description:微信公众号消息ID关联表
* @Date: Create in 4:14 PM 2019/5/30
*/
public class WechatRuleMessage extends IdEntity {
/**
* 微信公众号规则ID
*/
private Long wechatRuleId;
/**
* 微信公众号消息ID
*/
private Long wechatMessageId;
public Long getWechatRuleId() {
return wechatRuleId;
}
public void setWechatRuleId(Long wechatRuleId) {
this.wechatRuleId = wechatRuleId;
}
public Long getWechatMessageId() {
return wechatMessageId;
}
public void setWechatMessageId(Long wechatMessageId) {
this.wechatMessageId = wechatMessageId;
}
}

@ -1 +1 @@
file.upload=/Users/qi/java/fileManger/ file.upload=/home/nfs/fileManger/

@ -120,7 +120,7 @@
<div class="keyword-content-row"> <div class="keyword-content-row">
<select class="keyword-select"> <select class="keyword-select">
<c:forEach var="wechatKeywordMatchinType" items="${wechatKeywordMatchinTypeMap}" > <c:forEach var="wechatKeywordMatchinType" items="${wechatKeywordMatchinTypeMap}" >
<option value="${wechatKeywordMatchinType.key}" >${wechatKeywordMatchinType.value}</option> <option value="${wechatKeywordMatchinType.key}" >${wechatKeywordMatchinType.value}</option>
</c:forEach> </c:forEach>
</select> </select>
<input type="text" class="keyword-input" placeholder="请输入关键字" /> <input type="text" class="keyword-input" placeholder="请输入关键字" />
@ -464,7 +464,10 @@
function delkeyword(obj){ function delkeyword(obj){
var lastId = $(obj).parent(); var lastId = $(obj).parent();
$(lastId).remove(); var rowList = $(".keyword-content-row");
if(rowList.length>1) {
$(lastId).remove();
}
} }
function showTextOrImager(type,obj){ function showTextOrImager(type,obj){
@ -574,8 +577,8 @@
var html = '<div class="keyword-content-row">'+ var html = '<div class="keyword-content-row">'+
'<select class="keyword-select">' + '<select class="keyword-select">' +
'<option value="completely" '+completelyStr+' >全匹配</option>' + '<option value="1" '+completelyStr+' >全匹配</option>' +
'<option value="contain" '+containStr+'>半匹配</option><' + '<option value="2" '+containStr+'>半匹配</option><' +
'/select>' + '/select>' +
'<input type="text" class="keyword-input" placeholder="请输入关键字" value="'+inputVal+'" />' + '<input type="text" class="keyword-input" placeholder="请输入关键字" value="'+inputVal+'" />' +
' <button class="keyword-add" onclick="addkeyword()"><a href="#" class="keyword-add-title" >十</a></button> ' + ' <button class="keyword-add" onclick="addkeyword()"><a href="#" class="keyword-add-title" >十</a></button> ' +
@ -617,7 +620,6 @@
dataType:"json", dataType:"json",
success:function(result){ success:function(result){
if(result.success==true){ if(result.success==true){
location.reload(); location.reload();
} }
}, },
@ -630,7 +632,6 @@
function appendAlertHtml(data){ function appendAlertHtml(data){
var isShow ; var isShow ;
var wechatMessageList = data.wechatMessageVoList; var wechatMessageList = data.wechatMessageVoList;
var html = '<div class="alert"><div class="left-navigation"><p>图文('+data.wechatMessageCount+')</p></div>'; var html = '<div class="alert"><div class="left-navigation"><p>图文('+data.wechatMessageCount+')</p></div>';
html += ' <div class="alert-content">'; html += ' <div class="alert-content">';

@ -7,68 +7,45 @@
--%> --%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="common/import-tag.jsp" %> <%@ include file="common/import-tag.jsp" %>
<html> <!DOCTYPE html>
<html lang="en">
<head> <head>
<title>堂吉诃德网</title> <meta charset="UTF-8">
<link href="${ctx}/resources/plugins/umeditor/themes/default/css/umeditor.css" type="text/css" rel="stylesheet"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/javascript" src="${ctx}/resources/plugins/umeditor/third-party/jquery.min.js"></script> <meta http-equiv="X-UA-Compatible" content="ie=edge">
<script type="text/javascript" charset="utf-8" src="${ctx}/resources/plugins/umeditor/umeditor.config.js"></script> <title>test</title>
<script type="text/javascript" charset="utf-8" src="${ctx}/resources/plugins/umeditor/umeditor.min.js"></script> <!-- <link rel="stylesheet" href="https://test.com/index.css" />-->
<script type="text/javascript" src="${ctx}/resources/plugins/umeditor/lang/zh-cn/zh-cn.js"></script>
</head> </head>
<body> <body>
<!--<script id="container" name="content" type="text/plain"> <div class="app">
<h1>webview-wechat-detail</h1>
</script>--> <p>
detail
<button id="openBtn">打开App</button> </p>
<button type="button" id="btn">返回小程序</button>
</body> </div>
<!-- 配置文件--> <script src="${ctx}/resources/code/js/jquery-2.2.4.min.js"></script>
<script type="text/javascript"> <script src="https://res.wx.qq.com/open/js/jweixin-1.3.0.js"></script>
// window.um = UM.getEditor("container"); <script>
var ua = navigator.userAgent.toLowerCase(); /* eslint-disable */
$(function(){
var config = { // doucument.cookie = 'bb=bbbbbb';
scheme_IOS: 'myscheme://myhost:1024/main', $("#btn").click(function () {
scheme_Adr: 'myscheme://myhost:1024/main', alert("测试!");
download_url: 'http://a.app.qq.com/o/simple.jsp?pkgname=aa.bbxxx', wx.miniProgram.getEnv(function (res) {
timeout: 3000 if (res.miniprogram) {
} //如果当前是小程序环境
wx.miniProgram.postMessage({
$(function () { data: {
$("#openBtn").on("click",function(){ name: 'name',
location.href="myscheme://myhost:1024/main"; age: 12
}); }
})
}
});
})
}); });
function openClient() {
var startTime = Date.now();
var ifr = document.createElement('iframe');
ifr.src = ua.indexOf('OS')>0?config.scheme_IOS:config.scheme_Adr;
ifr.style.display='none';
document.body.appendChild(ifr);
var t = setTimeout(function(){
var endTime = Date.now();
if(!startTime||endTime-startTime<config.timeout+200){
window.location = config.download_url;
}else {
}
},config.timeout);
window.onblur = function () {
clearTimeout(t);
}
}
window.addEventListener("DOMContentLoaded",function () {
},false);
</script> </script>
</body>
</html> </html>

Loading…
Cancel
Save