Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
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
徐少华
midjourney-proxy
Commits
4730c9df
Commit
4730c9df
authored
Jun 24, 2020
by
吴博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug: [1002988-3] 更换新账号的appcode
parent
ff277847
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
BookBrowseRecordBizImpl.java
.../pcloud/book/record/biz/impl/BookBrowseRecordBizImpl.java
+4
-2
book.properties
...ervice-book/src/main/resources/properties/book.properties
+2
-0
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/record/biz/impl/BookBrowseRecordBizImpl.java
View file @
4730c9df
...
...
@@ -56,6 +56,7 @@ import org.apache.http.HttpResponse;
import
org.apache.http.util.EntityUtils
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
...
...
@@ -95,6 +96,8 @@ public class BookBrowseRecordBizImpl implements BookBrowseRecordBiz {
private
IpDataMapper
ipDataMapper
;
@Autowired
private
BookScanCountConsr
bookScanCountConsr
;
@Value
(
"${ip.appcode}"
)
private
String
appCode
;
@Override
@ParamLog
(
"读者书籍埋点记录"
)
...
...
@@ -301,9 +304,8 @@ public class BookBrowseRecordBizImpl implements BookBrowseRecordBiz {
String
host
=
"https://api01.aliyun.venuscn.com"
;
String
path
=
"/ip"
;
String
method
=
"GET"
;
String
appcode
=
"7936c69d4d0943f398bc73b3b3406fe2"
;
Map
<
String
,
String
>
headers
=
new
HashMap
<
String
,
String
>();
headers
.
put
(
"Authorization"
,
"APPCODE "
+
app
c
ode
);
headers
.
put
(
"Authorization"
,
"APPCODE "
+
app
C
ode
);
Map
<
String
,
String
>
querys
=
new
HashMap
<
String
,
String
>();
querys
.
put
(
"ip"
,
bookBrowseRecord
.
getIp
());
//先从数据库查询,没有再查询第三方
...
...
pcloud-service-book/src/main/resources/properties/book.properties
View file @
4730c9df
...
...
@@ -9,3 +9,5 @@ isbn.appCode = 26ddebd7827448b798bdc6c4738be0ff
# isbn\u5bc6\u94a5
isbn.jisu.appkey
=
37c80a8116e3349e
ip.appcode
=
26ddebd7827448b798bdc6c4738be0ff
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