Commit 07b15be4 authored by 李博今's avatar 李博今

修改网站图标

parent 13c54fd7
......@@ -4,6 +4,8 @@ import java.io.File;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
......@@ -13,7 +15,7 @@ import com.qiqiim.webserver.util.FileUtil;
public class FilesInfoServiceImpl implements FilesInfoService {
private static Logger logger = LoggerFactory.getLogger(FilesInfoServiceImpl.class);
public int saveUserPicture(MultipartFile file, Long uid, String path) {
int result = 0;
......@@ -39,6 +41,9 @@ public class FilesInfoServiceImpl implements FilesInfoService {
public String savePicture(MultipartFile file, String newname, String path) {
String fileUrl = "";
logger.error(">> FilesInfoServiceImpl's file.getOriginalFilename() " + file.getOriginalFilename());
logger.error(">> FilesInfoServiceImpl's newname " + newname);
logger.error(">> FilesInfoServiceImpl's path " + path);
if(StringUtils.isEmpty(file.getOriginalFilename())){
return fileUrl;
}
......@@ -48,6 +53,7 @@ public class FilesInfoServiceImpl implements FilesInfoService {
if(b){
try{
File tempFile = new File(path, newname+"."+name[1]);
logger.error(">> FilesInfoServiceImpl's tempFile.getAbsolutePath() " + tempFile.getAbsolutePath());
FileUtils.copyInputStreamToFile(file.getInputStream(),tempFile );
fileUrl = newname+"."+name[1];
//大图裁剪
......
......@@ -12,6 +12,8 @@ import com.qiqiim.webserver.user.dao.UserAdminInfoDao;
import com.qiqiim.webserver.user.model.*;
import com.qiqiim.webserver.user.service.*;
import org.apache.commons.lang.time.DateFormatUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
......@@ -57,6 +59,8 @@ public class ImController extends BaseController {
@Autowired
private UserInfoService userInfoServiceImpl;
private static Logger logger = LoggerFactory.getLogger(ImController.class);
/**
* 单聊
*/
......@@ -276,6 +280,11 @@ public class ImController extends BaseController {
UserAccountEntity u = getLoginUser();
Long uid = u.getId();
String path = request.getSession().getServletContext().getRealPath("upload/img/temp/");
String path2 = request.getSession().getServletContext().getRealPath("/upload/img/temp/");
String path3 = request.getSession().getServletContext().getRealPath("/");
logger.error(">> ImController's path " + path);
logger.error(">> ImController's path2 " + path2);
logger.error(">> ImController's path3 " + path3);
String files = filesInfoServiceImpl.savePicture(file, uid.toString() + UUID.randomUUID().toString(), path);
Map<String, Object> map = new HashMap<String, Object>();
Map<String, String> submap = new HashMap<String, String>();
......
......@@ -7,6 +7,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>机器人</title>
<link type="text/css" rel="stylesheet" href="css/im.css"/>
<link href="img/icon.ico" rel="SHORTCUT ICON" />
<link rel="stylesheet" href="layui/css/layui.css">
<script type="text/javascript" src="js/util.js"></script>
<script type="text/javascript" src="js/message.js"></script>
......
......@@ -6,6 +6,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>单聊</title>
<link href="img/icon.ico" rel="SHORTCUT ICON" />
<link rel="stylesheet" type="text/css" href="css/skin-min.css">
<link rel="stylesheet" href="layui/css/layui.css">
<script type="text/javascript" src="js/util.js"></script>
......
......@@ -6,6 +6,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>群聊</title>
<link href="img/icon.ico" rel="SHORTCUT ICON" />
<link type="text/css" rel="stylesheet" href="css/im.css"/>
<link rel="stylesheet" href="layui/css/layui.css">
<script type="text/javascript" src="js/util.js"></script>
......
......@@ -7,6 +7,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>聊天记录</title>
<link href="img/icon.ico" rel="SHORTCUT ICON" />
<%@ include file="/WEB-INF/page/public/meta.jsp"%>
<style>
......
......@@ -5,7 +5,8 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>置业顾问系统</title>
<title>置业顾问系统</title
<link href="img/icon.ico" rel="SHORTCUT ICON" />
<link type="text/css" rel="stylesheet" href="css/im.css"/>
<link rel="stylesheet" href="layui/css/layui.css">
<script type="text/javascript" src="js/util.js"></script>
......
......@@ -7,6 +7,7 @@
<meta name="viewport" content="width=device-width, height=device-height, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="format-detection" content="telephone=no">
<title>置业顾问系统</title>
<link href="img/icon.ico" rel="SHORTCUT ICON" />
<link rel="stylesheet" href="layuimobile/css/layui.css" media="all" />
<script type="text/javascript" src="js/util.js"></script>
<script type="text/javascript" src="js/message.js"></script>
......
......@@ -7,6 +7,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>消息盒子</title>
<link href="img/icon.ico" rel="SHORTCUT ICON" />
<%@ include file="/WEB-INF/page/public/meta.jsp"%>
<style>
.layim-msgbox{margin: 15px;}
......
......@@ -8290,7 +8290,7 @@ ul.weather-tpl li>span:nth-of-type(5) {
float: left;
height: 100%;
width: 110px;
background: url(../img/icon.png) right 0 no-repeat #5885eb;
background: url(../img/icon.ico) right 0 no-repeat #5885eb;
color: #fff;
text-align: center;
cursor: pointer;
......
......@@ -5,6 +5,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<link href="img/icon.ico" rel="SHORTCUT ICON" />
<link rel="stylesheet" href="layui/css/layui.css">
<style type="text/css">
.index-button{margin-bottom: 30px;}
......
......@@ -8,6 +8,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title></title>
<link href="img/icon.ico" rel="SHORTCUT ICON" />
<link rel="stylesheet" href="layui/css/layui.css">
</head>
<body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment