Commit 908575c3 authored by agping's avatar agping

1

parent 043644c5
...@@ -42,7 +42,7 @@ define (['doT', 'text!temp/notice_template_tpl.html','ckfinder','ckfinderStart', ...@@ -42,7 +42,7 @@ define (['doT', 'text!temp/notice_template_tpl.html','ckfinder','ckfinderStart',
formData.append('image', _this[0].files[0]); formData.append('image', _this[0].files[0]);
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: '/index/uploadImg', url: ServerHostImageLiu + '/index/uploadImg',
data: formData, data: formData,
dataType: 'json', dataType: 'json',
contentType: false, contentType: false,
......
...@@ -133,7 +133,7 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css! ...@@ -133,7 +133,7 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
formData.append('image', _this[0].files[0]); formData.append('image', _this[0].files[0]);
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: '/index/uploadImg', url: ServerHostImageLiu + '/index/uploadImg',
data: formData, data: formData,
dataType: 'json', dataType: 'json',
contentType: false, contentType: false,
......
...@@ -362,7 +362,7 @@ function getTimeStamp(date){ ...@@ -362,7 +362,7 @@ function getTimeStamp(date){
}; };
//处理图片域名 测试 正式 //处理图片域名 测试 正式
// let ServerHostImageLiu = 'http://images.pre2.tonglianjituan.com'; // let ServerHostImageLiu = 'http://images.pre2.tonglianjituan.com';
let ServerHostImageLiu = 'https://pre2.tonglianjituan.com'; let ServerHostImageLiu = 'http://images.tonglianjituan.com';//测试 本地用测试域名
if(location.origin === 'https://api.tonglianjituan.com') { if(location.origin === 'https://api.tonglianjituan.com') {
ServerHostImageLiu = 'http://images.tonglianjituan.com'; ServerHostImageLiu = 'http://images.tonglianjituan.com';//正式用正式域名
}; };
...@@ -144,7 +144,7 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind ...@@ -144,7 +144,7 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind
// formData.append('name', _this[0].files[0].name); // formData.append('name', _this[0].files[0].name);
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: '/index/uploadImg', url: ServerHostImageLiu + '/index/uploadImg',
data: formData, data: formData,
dataType: 'json', dataType: 'json',
contentType: false, contentType: false,
......
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