Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yunjiao-admin
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
童普新
yunjiao-admin
Commits
839cadad
Commit
839cadad
authored
Jul 29, 2024
by
tongpuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加录音下载解冻
parent
c32f2a9e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
22 deletions
+5
-22
CallRecordController.java
src/main/java/com/app/ydl/ydl/controller/CallRecordController.java
+0
-8
list.js
src/main/resources/templates/admin/business/call_record/js/list.js
+5
-14
ydl_admin.db
src/main/resources/ydl_admin.db
+0
-0
No files found.
src/main/java/com/app/ydl/ydl/controller/CallRecordController.java
View file @
839cadad
...
...
@@ -10,7 +10,6 @@ import lombok.extern.slf4j.Slf4j;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.servlet.ModelAndView
;
import
javax.annotation.Resource
;
...
...
@@ -112,11 +111,4 @@ public class CallRecordController extends CrudBaseControllerSupport<CallRecordVi
return
new
ModelAndView
(
"admin/business/call_record/list.html"
,
result
);
}
@RequestMapping
(
value
=
"/thaw"
)
@ResponseBody
public
AjaxResult
thaw
(
String
recordUrl
)
{
log
.
info
(
"call_record.thaw:{}"
,
recordUrl
);
return
AjaxResult
.
wrap
(
true
);
}
}
src/main/resources/templates/admin/business/call_record/js/list.js
View file @
839cadad
...
...
@@ -21,22 +21,12 @@ $(function(){
window
.
open
(
recordUrl
);
},
thaw
:
function
(
row
){
App
.
MsgBox
.
confirm
(
'确定要解冻吗'
,
function
(){
var
recordUrl
=
row
[
'recordUrl'
];
if
(
!
recordUrl
)
{
App
.
MsgBox
.
msg
(
"文件URL为空"
);
return
;
}
App
.
Ajax
.
request
({
url
:
Config
.
ROOT
+
'/call/call_record/thaw'
,
params
:
{
'recordUrl'
:
recordUrl
},
success
:
function
(
resp
){
recordUrl
=
recordUrl
.
replace
(
"http://ydl-recording.oss-cn-hangzhou.aliyuncs.com/"
,
""
);
var
key
=
recordUrl
.
replace
(
"https://ydl-recording.oss-cn-hangzhou.aliyuncs.com/"
,
""
);
}
});
});
var
oss_url
=
'https://oss.console.aliyun.com/bucket/oss-cn-hangzhou/ydl-recording/object?keyword='
+
encodeURI
(
key
);
window
.
open
(
oss_url
);
},
search
:
function
()
{
$table
.
search
({
...
...
@@ -53,6 +43,7 @@ $(function(){
searchParamName
:
''
,
searchPlaceholder
:
''
,
columns
:[
{
checkbox
:
true
},
{
field
:
'id'
,
title
:
'操作'
,
width
:
120
,
toolbar
:
'tableRowToolbar'
,
events
:
AppCallRecord
.
Events
},
{
field
:
''
,
title
:
'通话记录ID'
,
formatter
:
function
(
value
,
row
,
index
)
{
return
row
[
'id'
];
...
...
src/main/resources/ydl_admin.db
View file @
839cadad
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment