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>
</resource>
<!-- <resource>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
</includes>
<filtering>false</filtering>
</resource>
-->
</resources>
</build>

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

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

Loading…
Cancel
Save