Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
浙江兰德纵横网络技术股份有限公司
o2oa
提交
b9a853bc
o2oa
项目概览
浙江兰德纵横网络技术股份有限公司
/
o2oa
通知
339
Star
10
Fork
6
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
o2oa
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b9a853bc
编写于
7月 21, 2021
作者:
NoSubject
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'cherry-pick-
b4b3b914
' into 'master'
修复https导致的获取bbs地址错误 See merge request o2oa/o2oa!4623
上级
37420e0d
b5c8802b
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
32 addition
and
61 deletion
+32
-61
o2web/source/x_component_AppMarketV2/ApplicationsContent.js
o2web/source/x_component_AppMarketV2/ApplicationsContent.js
+12
-2
o2web/source/x_component_AppMarketV2_Application/Comment.js
o2web/source/x_component_AppMarketV2_Application/Comment.js
+9
-31
o2web/source/x_component_AppMarketV2_Application/Main.js
o2web/source/x_component_AppMarketV2_Application/Main.js
+11
-28
未找到文件。
o2web/source/x_component_AppMarketV2/ApplicationsContent.js
浏览文件 @
b9a853bc
...
...
@@ -119,6 +119,7 @@ MWF.xApplication.AppMarketV2.ApplicationsContent.Applications= new Class({
this
.
emptyLoadContent
();
if
(
this
.
collectToken
==
""
||
this
.
collectUrl
==
""
){
//先登录collcect
debugger
this
.
actions
.
CollectAction
.
login
(
//平台封装好的方法
function
(
json
){
//服务调用成功的回调函数, json为服务传回的数据
if
(
json
.
type
&&
json
.
type
==
"
success
"
){
...
...
@@ -168,7 +169,7 @@ MWF.xApplication.AppMarketV2.ApplicationsContent.Applications= new Class({
debugger
;
var
commenturl
=
content
.
collectUrl
+
'
/o2_collect_assemble/jaxrs/collect/config/key/(0)?time=
'
+
(
new
Date
()).
getMilliseconds
();
debugger
;
var
res
=
new
Request
.
JSON
({
/*
var res = new Request.JSON({
url: commenturl,
headers : {'x-debugger' : true,'Authorization':content.collectToken,'c-token':content.collectToken},
secure: false,
...
...
@@ -190,7 +191,16 @@ MWF.xApplication.AppMarketV2.ApplicationsContent.Applications= new Class({
o2.runCallback(callback, "error", [text, error]);
}.bind(this)
});
res
.
send
();
res.send();*/
this
.
actions
.
CollectAction
.
bbs
(
//平台封装好的方法
function
(
json
){
//服务调用成功的回调函数, json为服务传回的数据
if
(
json
.
type
&&
json
.
type
==
"
success
"
){
debugger
;
data
=
json
.
data
;
//为变量data赋值
this
.
bbsUrlPath
=
data
.
bbsUrlPath
;
this
.
bbsUrl
=
data
.
bbsUrl
;
}
}.
bind
(
this
),
null
,
false
//同步执行
);
},
loadCommentsGrade
:
function
(
appdata
){
debugger
;
...
...
o2web/source/x_component_AppMarketV2_Application/Comment.js
浏览文件 @
b9a853bc
...
...
@@ -79,37 +79,15 @@ MWF.xApplication.AppMarketV2.Application.Comment.ViewPage= new Class({
}
},
loadBbsInfo
:
function
(
content
){
var
json
=
null
;
var
commenturl
=
content
.
app
.
collectUrl
+
'
/o2_collect_assemble/jaxrs/collect/config/key/(0)?time=
'
+
(
new
Date
()).
getMilliseconds
();
debugger
;
var
res
=
new
Request
.
JSON
({
url
:
commenturl
,
headers
:
{
'
x-debugger
'
:
true
,
'
Authorization
'
:
content
.
app
.
collectToken
,
'
c-token
'
:
content
.
app
.
collectToken
},
secure
:
false
,
method
:
"
get
"
,
async
:
false
,
withCredentials
:
true
,
contentType
:
'
application/json
'
,
crossDomain
:
true
,
onSuccess
:
function
(
responseJSON
,
responseText
){
json
=
responseJSON
;
debugger
;
this
.
bbsUrlPath
=
json
.
data
.
bbsUrlPath
;
this
.
bbsUrl
=
json
.
data
.
bbsUrl
;
/*if (typeOf(callback).toLowerCase() == 'function'){
callback(responseJSON);
}else{
o2.runCallback(callback, "success", [responseJSON, responseText]);
}*/
}.
bind
(
this
),
onFailure
:
function
(
xhr
){
o2
.
runCallback
(
callback
,
"
requestFailure
"
,
[
xhr
]);
}.
bind
(
this
),
onError
:
function
(
text
,
error
){
o2
.
runCallback
(
callback
,
"
error
"
,
[
text
,
error
]);
}.
bind
(
this
)
});
res
.
send
();
this
.
actions
.
CollectAction
.
bbs
(
//平台封装好的方法
function
(
json
){
//服务调用成功的回调函数, json为服务传回的数据
if
(
json
.
type
&&
json
.
type
==
"
success
"
){
debugger
;
data
=
json
.
data
;
//为变量data赋值
this
.
bbsUrlPath
=
data
.
bbsUrlPath
;
this
.
bbsUrl
=
data
.
bbsUrl
;
}
}.
bind
(
this
),
null
,
false
//同步执行
);
},
loadCommentsGrade
:
function
(
content
,
callback
){
this
.
loadBbsInfo
(
content
);
...
...
o2web/source/x_component_AppMarketV2_Application/Main.js
浏览文件 @
b9a853bc
...
...
@@ -45,7 +45,7 @@ MWF.xApplication.AppMarketV2.Application.Main = new Class({
}.
bind
(
this
));
},
loadApplication
:
function
(
callback
){
debugger
if
(
this
.
collectToken
==
""
||
this
.
collectUrl
==
""
){
//先登录collcect
this
.
actions
.
CollectAction
.
login
(
//平台封装好的方法
...
...
@@ -185,33 +185,16 @@ debugger;
if
(
callback
)
callback
();
},
loadBbsInfo
:
function
(
content
){
var
json
=
null
;
debugger
;
var
commenturl
=
content
.
collectUrl
+
'
/o2_collect_assemble/jaxrs/collect/config/key/(0)?time=
'
+
(
new
Date
()).
getMilliseconds
();
debugger
;
var
res
=
new
Request
.
JSON
({
url
:
commenturl
,
headers
:
{
'
x-debugger
'
:
true
,
'
Authorization
'
:
content
.
collectToken
,
'
c-token
'
:
content
.
collectToken
},
secure
:
false
,
method
:
"
get
"
,
async
:
false
,
withCredentials
:
true
,
contentType
:
'
application/json
'
,
crossDomain
:
true
,
onSuccess
:
function
(
responseJSON
,
responseText
){
json
=
responseJSON
;
debugger
;
this
.
bbsUrlPath
=
json
.
data
.
bbsUrlPath
;
this
.
bbsUrl
=
json
.
data
.
bbsUrl
;
}.
bind
(
this
),
onFailure
:
function
(
xhr
){
o2
.
runCallback
(
callback
,
"
requestFailure
"
,
[
xhr
]);
}.
bind
(
this
),
onError
:
function
(
text
,
error
){
o2
.
runCallback
(
callback
,
"
error
"
,
[
text
,
error
]);
}.
bind
(
this
)
});
res
.
send
();
debugger
;
this
.
actions
.
CollectAction
.
bbs
(
//平台封装好的方法
function
(
json
){
//服务调用成功的回调函数, json为服务传回的数据
if
(
json
.
type
&&
json
.
type
==
"
success
"
){
debugger
;
data
=
json
.
data
;
//为变量data赋值
this
.
bbsUrlPath
=
data
.
bbsUrlPath
;
this
.
bbsUrl
=
data
.
bbsUrl
;
}
}.
bind
(
this
),
null
,
false
//同步执行
);
},
loadCommentsGrade
:
function
(
appdata
){
debugger
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录