Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cms-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
cms-ci-test
Commits
49dfec5c
提交
49dfec5c
authored
5月 23, 2023
作者:
余乾开
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop'
上级
4005637b
38960d02
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
5 行增加
和
5 行删除
+5
-5
AuthServiceImpl.java
.../java/com/mmc/iuav/user/service/impl/AuthServiceImpl.java
+4
-4
kustomization.yaml
kustomization/overlays/dev/kustomization.yaml
+1
-1
没有找到文件。
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/impl/AuthServiceImpl.java
浏览文件 @
49dfec5c
...
...
@@ -44,13 +44,13 @@ public class AuthServiceImpl implements AuthService {
if
(
wxLoginVO
.
getFromPort
().
toString
().
equals
(
WxConstant
.
APP
.
toString
()))
{
//调用小程序登录接口,里面包含unionId
String
appWxJson
=
wxService
.
appLogin
(
wxLoginVO
);
log
.
error
(
"wx appLogin msg==>"
+
appWxJson
);
if
(
appWxJson
==
null
)
{
return
ResultBody
.
error
(
ResultEnum
.
APPLET_PORT_TYPE_ERROR
);
}
log
.
info
(
"wx appLogin msg==>"
+
JSONObject
.
toJSONString
(
appWxJson
));
JSONObject
json
=
JSON
.
parseObject
(
appWxJson
);
if
(!
json
.
containsKey
(
WxConstant
.
OPEN_ID
)
||
!
json
.
containsKey
(
WxConstant
.
SESSION_KEY
))
{
log
.
error
(
"wx appLogin error==>"
+
json
);
log
.
error
(
"wx appLogin error==>"
+
JSONObject
.
toJSONString
(
json
)
);
return
ResultBody
.
error
(
ResultEnum
.
APPLET_LOGIN_ERROR
,
json
);
}
unionId
=
json
.
getString
(
WxConstant
.
UNION_ID
);
...
...
@@ -59,13 +59,13 @@ public class AuthServiceImpl implements AuthService {
}
else
if
(
wxLoginVO
.
getFromPort
().
equals
(
WxConstant
.
WEB
)){
//获取access_token接口,里面包含unionId
String
pcWxJson
=
wxService
.
pcLogin
(
wxLoginVO
);
log
.
error
(
"wx pcLogin msg==>"
+
pcWxJson
);
if
(
pcWxJson
==
null
)
{
return
ResultBody
.
error
(
ResultEnum
.
APPLET_PORT_TYPE_ERROR
);
}
log
.
info
(
"wx pcLogin msg==>"
+
JSONObject
.
toJSONString
(
pcWxJson
));
JSONObject
json
=
JSON
.
parseObject
(
pcWxJson
);
if
(!
json
.
containsKey
(
WxConstant
.
OPEN_ID
)
||!
json
.
containsKey
(
WxConstant
.
SESSION_KEY
))
{
log
.
error
(
"wx pcLogin error==>"
+
json
);
log
.
error
(
"wx pcLogin error==>"
+
JSONObject
.
toJSONString
(
json
)
);
return
ResultBody
.
error
(
ResultEnum
.
APPLET_LOGIN_ERROR
,
json
);
}
unionId
=
json
.
getString
(
WxConstant
.
UNION_ID
);
...
...
kustomization/overlays/dev/kustomization.yaml
浏览文件 @
49dfec5c
...
...
@@ -17,4 +17,4 @@ patches:
images
:
-
name
:
REGISTRY/NAMESPACE/IMAGE:TAG
newName
:
mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/cms
newTag
:
06badeb1febba2f673e79c063949db5f6fccae23
newTag
:
df11775e8608abe924f6185c4cf0cf4c006f8362
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论