Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
head_group
xyqb-user2
Commits
a6276898
Commit
a6276898
authored
Jul 25, 2023
by
唐峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小程序登录租户处理
parent
10cfd34c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
AppletController.java
...xyqb/controller/middleoffice/applet/AppletController.java
+6
-3
No files found.
src/main/java/cn/quantgroup/xyqb/controller/middleoffice/applet/AppletController.java
View file @
a6276898
...
...
@@ -3,6 +3,7 @@ package cn.quantgroup.xyqb.controller.middleoffice.applet;
import
cn.quantgroup.xyqb.Constants
;
import
cn.quantgroup.xyqb.config.data.WechatConfiguration
;
import
cn.quantgroup.xyqb.constant.UserConstant
;
import
cn.quantgroup.xyqb.controller.IBaseController
;
import
cn.quantgroup.xyqb.controller.middleoffice.login.ILoginModule
;
import
cn.quantgroup.xyqb.controller.middleoffice.login.LoginVo
;
import
cn.quantgroup.xyqb.entity.middleoffice.AppletParamEntry
;
...
...
@@ -30,7 +31,7 @@ import java.util.Arrays;
@Slf4j
@RestController
@RequestMapping
(
"/middle_office/applet"
)
public
class
AppletController
{
public
class
AppletController
implements
IBaseController
{
@Value
(
"${applet.appNames:luckii,xyqb,wuxi,yangxiaomie}"
)
private
String
appletAppNames
;
...
...
@@ -60,7 +61,7 @@ public class AppletController {
throw
new
DataException
(
"appName不合法"
);
}
if
(
StringUtils
.
isEmpty
(
appletParamEntry
.
getTenantId
())){
appletParamEntry
.
setTenantId
(
UserConstant
.
defaultTenantId
);
appletParamEntry
.
setTenantId
(
getTenantId
()
);
}
Long
userId
=
iAppletService
.
relevance
(
appletParamEntry
);
...
...
@@ -81,7 +82,9 @@ public class AppletController {
if
(!
containsAppName
(
appName
))
{
throw
new
DataException
(
"appName不合法"
);
}
if
(
tenantId
==
null
)
{
tenantId
=
getTenantId
();
}
LoginVo
login
=
iAppletService
.
login
(
appName
,
openId
,
tenantId
,
utmSource
,
unionId
,
appId
);
return
JsonResult
.
buildSuccessResultGeneric
(
login
);
}
...
...
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