Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
项目统一框架
amos-boot-biz
Commits
9f357298
Commit
9f357298
authored
Aug 22, 2023
by
杨阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发货单
新增/编辑/详情接口 更新发货单状态接口
parent
7b204e5a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
PeasantHouseholdWxController.java
...ule/hygf/biz/controller/PeasantHouseholdWxController.java
+10
-2
application-dev.properties
...le-hygf-biz/src/main/resources/application-dev.properties
+4
-2
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/PeasantHouseholdWxController.java
View file @
9f357298
...
...
@@ -87,6 +87,9 @@ public class PeasantHouseholdWxController extends BaseController {
@Autowired
private
IWxService
wxService
;
@Value
(
"${dealer.userId}"
)
private
String
defaultUserId
;
@Value
(
"${hygfProgram.loginPage:view/mine/minepage/LoginPhone}"
)
private
String
miniprogramLoginPage
;
...
...
@@ -120,8 +123,13 @@ public class PeasantHouseholdWxController extends BaseController {
@RequestMapping
(
value
=
"/login"
,
method
=
RequestMethod
.
POST
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"微信授权登陆"
,
notes
=
"微信授权登陆"
)
public
ResponseModel
<
PeasantHouseholdWxDto
>
wxUserLogin
(
@ApiParam
@RequestBody
MobileLoginParamDto
mobileLoginParam
)
{
if
(
StringUtils
.
isBlank
(
mobileLoginParam
.
getUserId
()))
{
throw
new
BadRequest
(
"二维码参数userId为空"
);
if
(
StringUtils
.
isBlank
(
defaultUserId
))
{
if
(
StringUtils
.
isBlank
(
mobileLoginParam
.
getUserId
()))
{
throw
new
BadRequest
(
"二维码参数userId为空"
);
}
}
else
{
// 配置了测试用的userId 则覆盖扫码的userId
mobileLoginParam
.
setUserId
(
defaultUserId
);
}
peasantHouseholdServiceImpl
.
setPlatFormAccess
();
return
ResponseHelper
.
buildResponse
(
peasantHouseholdServiceImpl
.
wxUserLogin
(
mobileLoginParam
));
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/resources/application-dev.properties
View file @
9f357298
...
...
@@ -141,4 +141,6 @@ farmer.orgNamesWithoutRole=
farmer.roleId
=
1678211468450885633
# 配置接口授权用户
platform.access.loginId
=
hygf_platform
platform.access.password
=
23F8A9AE5E9CF343B0AFD49A9C44947
\ No newline at end of file
platform.access.password
=
AC286A35E74D2DD281EB979789DECF3A
# 测试用的经销商userid
dealer.userId
=
\ No newline at end of file
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