Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-office-web-sit
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
吴迪
gs1-office-web-sit
Commits
2f4672ca
Commit
2f4672ca
authored
Jan 14, 2022
by
唐功亮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【修改】 业务大厅跳转
parent
2ccea900
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
TycpdmFirmServiceImpl.java
...ce/modules/manage/service/impl/TycpdmFirmServiceImpl.java
+12
-6
No files found.
src/main/java/io/office/modules/manage/service/impl/TycpdmFirmServiceImpl.java
View file @
2f4672ca
package
io
.
office
.
modules
.
manage
.
service
.
impl
;
import
cn.hutool.http.HttpUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
io.office.common.exception.RRException
;
import
io.office.modules.manage.dao.*
;
import
io.office.modules.manage.entity.*
;
import
io.office.modules.manage.service.TycpdmFirmChangeService
;
import
io.office.modules.manage.utils.AlgorithmUtils
;
import
io.office.modules.manage.utils.DESUtils
;
import
io.office.modules.manage.utils.DateUtils
;
import
io.office.modules.manage.utils.MD5Util
;
import
io.office.modules.manage.utils.*
;
import
org.apache.commons.beanutils.BeanMap
;
import
org.apache.commons.beanutils.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -637,9 +636,16 @@ public class TycpdmFirmServiceImpl extends ServiceImpl<TycpdmFirmDao, TycpdmFirm
throw
new
RRException
(
"用户类型错误"
);
}
String
phone_M
=
DESUtils
.
byteToHexString
(
DESUtils
.
DES_CBC_Encrypt
(
phone
.
getBytes
(),
"loginkey"
.
getBytes
()));
String
url
=
"http://wsdt.gs1cn.org/anccoh/login?method=phoneSSO&phone="
+
phone_M
;
return
url
;
String
token
=
HttpUtil
.
get
(
url
);
JSONObject
jsonObject
=
JSON
.
parseObject
(
token
);
String
status
=
jsonObject
.
getString
(
"status"
);
String
msg
=
jsonObject
.
getString
(
"msg"
);
if
(!
"200"
.
equals
(
status
)){
throw
new
RRException
(
"获取token失败"
+
msg
);
}
return
"http://wsdt.gs1cn.org/anccoh/login?method=redirect&token="
+
msg
;
}
...
...
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