Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
task2.0
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
首航-临时账号
task2.0
Commits
6fc098b5
Commit
6fc098b5
authored
Sep 25, 2024
by
罗胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
硬编码密码
parent
75a9339f
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
38 additions
and
10 deletions
+38
-10
ejweb.properties
ejweb.properties
+6
-5
hutool-all-5.8.11.jar
lib/hutool-all-5.8.11.jar
+0
-0
GConstants.java
src/com/foc/conf/GConstants.java
+7
-0
FlightAssignmentTask.java
src/com/foc/flight/assignment/FlightAssignmentTask.java
+0
-1
AnkeDateMiIdMain.java
src/com/foc/task/AnkeDateMiIdMain.java
+4
-0
SoundCopyTaskMain.java
src/com/foc/task/SoundCopyTaskMain.java
+7
-1
SoundDbTaskMain.java
src/com/foc/task/SoundDbTaskMain.java
+5
-0
SoundTaskMain.java
src/com/foc/task/SoundTaskMain.java
+9
-3
No files found.
ejweb.properties
View file @
6fc098b5
...
...
@@ -14,7 +14,7 @@ ai.cc=7
ai.ct
=
1
pageSize
=
1000
innerRoleId
=
46a765748809446f899040e2f05fc35b
initPasswd
=
123456
#
initPasswd=123456
female.photo
=
images/user/avatar/female_avatar.png
male.photo
=
images/user/avatar/male_avatar.png
politeness.delay.seconds
=
210
...
...
@@ -25,10 +25,11 @@ is.save.history=true
is.debug
=
true
file.prefix.url
=
https://ifos.jdair.net/foc/static/
file.prefix.url
=
https://ifos.jdair.net/foc/static/
foc.api.url
=
https://ifos.jdair.net
anke.database.url
=
jdbc:microsoft:sqlserver://10.72.23.187:1433;DatabaseName=edison200
anke.database.username
=
foctest
anke.database.password
=
123@abc
\ No newline at end of file
anke.database.username
=
Q4d4YDrpAEJv/QUkF0AI3Q==
anke.database.password
=
ISYP3JhMgBtIbpt5LYuMSA==
#foctest
#123@abc
\ No newline at end of file
lib/hutool-all-5.8.11.jar
0 → 100644
View file @
6fc098b5
File added
src/com/foc/conf/GConstants.java
View file @
6fc098b5
package
com
.
foc
.
conf
;
import
com.huawei.esdk.uc.professional.local.utils.AES128Utils
;
import
java.io.BufferedInputStream
;
import
java.io.File
;
import
java.io.FileInputStream
;
...
...
@@ -166,4 +168,9 @@ public class GConstants {
}
return
want
;
}
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
"args = "
+
AES128Utils
.
encryptPwd
(
"foctest"
));;
System
.
out
.
println
(
"args = "
+
AES128Utils
.
encryptPwd
(
"123@abc"
));
}
}
src/com/foc/flight/assignment/FlightAssignmentTask.java
View file @
6fc098b5
...
...
@@ -4,7 +4,6 @@
package
com
.
foc
.
flight
.
assignment
;
import
com.foc.TaskSupporter
;
import
com.foc.TaskTemplate
;
/**
*
...
...
src/com/foc/task/AnkeDateMiIdMain.java
View file @
6fc098b5
...
...
@@ -10,6 +10,7 @@ import java.sql.ResultSet;
import
java.sql.SQLException
;
import
com.foc.conf.GConstants
;
import
com.huawei.esdk.uc.professional.local.utils.AES128Utils
;
/**
*
...
...
@@ -35,6 +36,8 @@ public class AnkeDateMiIdMain {
String
url
=
GConstants
.
getValue
(
"anke.database.url"
,
"jdbc:microsoft:sqlserver://10.72.23.187:1433;DatabaseName=edison200"
);
String
username
=
GConstants
.
getValue
(
"anke.database.username"
,
"foctest"
);
String
password
=
GConstants
.
getValue
(
"anke.database.password"
,
"123@abc"
);
username
=
AES128Utils
.
decryptPwd
(
username
);
password
=
AES128Utils
.
decryptPwd
(
password
);
String
tableName
=
"dbo.cdr"
;
Connection
conn
=
null
;
...
...
@@ -71,4 +74,5 @@ public class AnkeDateMiIdMain {
}
}
}
src/com/foc/task/SoundCopyTaskMain.java
View file @
6fc098b5
...
...
@@ -13,8 +13,10 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Map
;
import
com.foc.conf.GConstants
;
import
com.foc.sound.entity.SoundRecordingEntity
;
import
com.foc.util.DBHelper
;
import
com.huawei.esdk.uc.professional.local.utils.AES128Utils
;
/**
*
...
...
@@ -40,9 +42,13 @@ public class SoundCopyTaskMain {
Connection
conn
=
null
;
ResultSet
rs
=
null
;
PreparedStatement
pstmt
=
null
;
String
username
=
GConstants
.
getValue
(
"anke.database.username"
,
"foctest"
);
String
password
=
GConstants
.
getValue
(
"anke.database.password"
,
"123@abc"
);
username
=
AES128Utils
.
decryptPwd
(
username
);
password
=
AES128Utils
.
decryptPwd
(
password
);
try
{
Class
.
forName
(
driver
);
conn
=
DriverManager
.
getConnection
(
url
,
"foctest"
,
"123@abc"
);
conn
=
DriverManager
.
getConnection
(
url
,
username
,
password
);
pstmt
=
conn
.
prepareStatement
(
"select * from dbo.cdr where id BETWEEN "
+
10000
+
" AND "
+
30000
+
" order by id ASC"
);
rs
=
pstmt
.
executeQuery
();
...
...
src/com/foc/task/SoundDbTaskMain.java
View file @
6fc098b5
...
...
@@ -10,6 +10,7 @@ import com.foc.sound.entity.SoundRecordingEntity;
import
com.foc.sound.service.SoundService
;
import
com.foc.util.DBHelper
;
import
com.foc.util.DateUtil
;
import
com.huawei.esdk.uc.professional.local.utils.AES128Utils
;
import
java.sql.*
;
import
java.util.*
;
...
...
@@ -104,6 +105,8 @@ public class SoundDbTaskMain {
String
url
=
GConstants
.
getValue
(
"anke.database.url"
,
"jdbc:microsoft:sqlserver://10.72.23.187:1433;DatabaseName=edison200"
);
String
username
=
GConstants
.
getValue
(
"anke.database.username"
,
"foctest"
);
String
password
=
GConstants
.
getValue
(
"anke.database.password"
,
"123@abc"
);
username
=
AES128Utils
.
decryptPwd
(
username
);
password
=
AES128Utils
.
decryptPwd
(
password
);
String
tableName
=
"dbo.cdr"
;
Connection
conn
=
null
;
...
...
@@ -197,6 +200,8 @@ public class SoundDbTaskMain {
String
url
=
GConstants
.
getValue
(
"anke.database.url"
,
"jdbc:microsoft:sqlserver://10.72.23.187:1433;DatabaseName=edison200"
);
String
username
=
GConstants
.
getValue
(
"anke.database.username"
,
"foctest"
);
String
password
=
GConstants
.
getValue
(
"anke.database.password"
,
"123@abc"
);
username
=
AES128Utils
.
decryptPwd
(
username
);
password
=
AES128Utils
.
decryptPwd
(
password
);
String
tableName
=
"dbo.cdr"
;
Connection
conn
=
null
;
...
...
src/com/foc/task/SoundTaskMain.java
View file @
6fc098b5
...
...
@@ -13,8 +13,10 @@ import com.foc.sound.SoundTask;
import
com.foc.sound.entity.SoundRecordingEntity
;
import
com.foc.util.DateUtil
;
import
com.foc.util.MapCounter
;
import
com.huawei.esdk.uc.professional.local.utils.AES128Utils
;
import
org.apache.http.client.utils.DateUtils
;
import
java.security.Security
;
import
java.sql.*
;
import
java.util.*
;
import
java.util.Date
;
...
...
@@ -123,11 +125,15 @@ public class SoundTaskMain {
int
maxId
=
0
;
String
driver
=
"com.microsoft.jdbc.sqlserver.SQLServerDriver"
;
String
url
=
"jdbc:microsoft:sqlserver://10.72.23.187:1433;DatabaseName=edison200"
;
String
username
=
GConstants
.
getValue
(
"anke.database.username"
,
"foctest"
);
String
password
=
GConstants
.
getValue
(
"anke.database.password"
,
"123@abc"
);
username
=
AES128Utils
.
decryptPwd
(
username
);
password
=
AES128Utils
.
decryptPwd
(
password
);
try
{
Class
.
forName
(
driver
);
Connection
conn
=
DriverManager
.
getConnection
(
url
,
"foctest"
,
"123@abc"
);
PreparedStatement
pstmt
=
conn
.
prepareStatement
(
"select * from dbo.cdr where id>"
+
maxId
+
" order by id ASC"
);
Connection
conn
=
DriverManager
.
getConnection
(
url
,
username
,
password
);
PreparedStatement
pstmt
=
conn
.
prepareStatement
(
"select * from dbo.cdr where id>? order by id ASC"
);
pstmt
.
setLong
(
1
,
maxId
);
ResultSet
rs
=
pstmt
.
executeQuery
();
List
<
SoundRecordingEntity
>
recordingEntities
=
new
ArrayList
<
SoundRecordingEntity
>();
while
(
rs
.
next
())
{
...
...
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