Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SmartBox
Project
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
苗权威
SmartBox
Commits
397c4fda
Commit
397c4fda
authored
Jan 15, 2021
by
苗权威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
0115
parent
4c433f5e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
XiaoDuHomeController.java
.../qiwu/com/xiaoduhome/controller/XiaoDuHomeController.java
+3
-3
DplBotServiceBoth.java
...ava/ai/qiwu/com/xiaoduhome/service/DplBotServiceBoth.java
+1
-1
ScheduleServiceNew.java
...va/ai/qiwu/com/xiaoduhome/service/ScheduleServiceNew.java
+1
-2
No files found.
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoDuHomeController.java
View file @
397c4fda
...
@@ -174,9 +174,9 @@ public class XiaoDuHomeController {
...
@@ -174,9 +174,9 @@ public class XiaoDuHomeController {
public
void
changeWelcomeWord
(
String
pwd
,
String
type
,
String
word
)
{
public
void
changeWelcomeWord
(
String
pwd
,
String
type
,
String
word
)
{
if
(
StringUtils
.
startsWith
(
pwd
,
"mqw"
)
&&
pwd
.
length
()
==
8
)
{
if
(
StringUtils
.
startsWith
(
pwd
,
"mqw"
)
&&
pwd
.
length
()
==
8
)
{
switch
(
type
)
{
switch
(
type
)
{
case
"adult"
:
WELCOME_NOVEL
=
word
;
case
"adult"
:
WELCOME_NOVEL
=
word
;
break
;
case
"child"
:
WELCOME_SMART
=
word
;
case
"child"
:
WELCOME_SMART
=
word
;
break
;
case
"all"
:
WELCOME_FORMAT
=
word
;
case
"all"
:
WELCOME_FORMAT
=
word
;
break
;
}
}
}
}
log
.
warn
(
"/change/welcome/word:adult:{},child:{},all:{}"
,
WELCOME_NOVEL
,
WELCOME_SMART
,
WELCOME_FORMAT
);
log
.
warn
(
"/change/welcome/word:adult:{},child:{},all:{}"
,
WELCOME_NOVEL
,
WELCOME_SMART
,
WELCOME_FORMAT
);
...
...
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotServiceBoth.java
View file @
397c4fda
...
@@ -436,7 +436,7 @@ public class DplBotServiceBoth extends BaseBot {
...
@@ -436,7 +436,7 @@ public class DplBotServiceBoth extends BaseBot {
log
.
error
(
"小度没有传来任何话语"
);
log
.
error
(
"小度没有传来任何话语"
);
return
buildErrorResponse
(
ErrorMsg
.
SORRY_UNCATCH
);
return
buildErrorResponse
(
ErrorMsg
.
SORRY_UNCATCH
);
}
}
// log.info("小度.用户说的话:{}",userWord);
// log.info("
================
小度.用户说的话:{}",userWord);
String
channel
;
String
channel
;
switch
(
type
)
{
switch
(
type
)
{
...
...
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleServiceNew.java
View file @
397c4fda
...
@@ -326,7 +326,6 @@ public class ScheduleServiceNew implements InitializingBean {
...
@@ -326,7 +326,6 @@ public class ScheduleServiceNew implements InitializingBean {
}
}
public
static
void
main
(
String
[]
args
)
throws
IOException
{
public
static
void
main
(
String
[]
args
)
throws
IOException
{
String
res
=
OkHttp3Utils
.
doGet
(
"http://hw-gz19.heyqiwu.cn:18082/api/data/audio/list/jiaoyou"
);
System
.
out
.
println
(
res
);
}
}
}
}
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