Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
Project
Project
Details
Activity
Releases
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
黄奎
mall.oytour.com
Commits
b8a28cc4
Commit
b8a28cc4
authored
Sep 27, 2021
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1登录接口调整
parent
5d4b6367
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
22 deletions
+26
-22
AppletOrderController.cs
Mall.WebApi/Controllers/Product/AppletOrderController.cs
+4
-3
AppletLoginController.cs
Mall.WebApi/Controllers/User/AppletLoginController.cs
+22
-19
No files found.
Mall.WebApi/Controllers/Product/AppletOrderController.cs
View file @
b8a28cc4
...
...
@@ -1317,15 +1317,16 @@ namespace Mall.WebApi.Controllers.MallBase
/// </summary>
/// <returns></returns>
[
HttpPost
]
[
AllowAnonymous
]
public
ApiResult
GetAppletGoodsCommentPageList
()
{
var
parms
=
RequestParm
;
var
userInfo
=
AppletUserInfo
;
//
var userInfo = AppletUserInfo;
ResultPageModel
pagelist
=
JsonConvert
.
DeserializeObject
<
ResultPageModel
>(
parms
.
msg
.
ToString
());
RB_Goods_Comment_Extend
demodel
=
JsonConvert
.
DeserializeObject
<
RB_Goods_Comment_Extend
>(
parms
.
msg
.
ToString
());
demodel
.
TenantId
=
userInfo
.
TenantId
;
demodel
.
MallBaseId
=
userInfo
.
MallBaseId
;
demodel
.
TenantId
=
parms
.
TenantId
;
demodel
.
MallBaseId
=
parms
.
MallBaseId
;
demodel
.
Is_Show
=
1
;
var
list
=
orderModule
.
GetAppletGoodsCommentPageList
(
pagelist
.
pageIndex
,
pagelist
.
pageSize
,
out
long
count
,
demodel
);
pagelist
.
count
=
Convert
.
ToInt32
(
count
);
...
...
Mall.WebApi/Controllers/User/AppletLoginController.cs
View file @
b8a28cc4
...
...
@@ -95,7 +95,8 @@ namespace Mall.WebApi.Controllers.User
return
ApiResult
.
ParamIsNull
(
"请传递唯一码"
);
}
int
LoginUserId
=
0
;
//int LoginUserId = 0;
bool
IsLogin
=
false
;
var
opcache
=
UserReidsCache
.
GetMiniAppUsetOpenId
(
demodel
.
OpenId
);
if
(
opcache
!=
null
&&
!
string
.
IsNullOrEmpty
(
opcache
.
UserOpenId
))
{
...
...
@@ -104,24 +105,25 @@ namespace Mall.WebApi.Controllers.User
}
else
{
if
(
string
.
IsNullOrEmpty
(
requestParm
.
token
))
{
return
ApiResult
.
ParamIsNull
(
"请传递唯一码"
);
}
else
{
LoginUserId
=
JWTValidatGetUserId
(
requestParm
.
token
);
if
(
LoginUserId
<=
0
)
{
return
ApiResult
.
ParamIsNull
(
"请传递唯一码"
);
}
var
loginModel
=
UserReidsCache
.
GetAppletUserLoginInfo
(
LoginUserId
);
demodel
.
OpenId
=
loginModel
?.
OpenId
??
""
;
if
(
string
.
IsNullOrEmpty
(
demodel
.
OpenId
))
{
return
ApiResult
.
ParamIsNull
(
"请传递唯一码"
);
}
}
IsLogin
=
true
;
//if (string.IsNullOrEmpty(requestParm.token))
//{
// return ApiResult.ParamIsNull("请传递唯一码");
//}
//else
//{
// LoginUserId = JWTValidatGetUserId(requestParm.token);
// if (LoginUserId <= 0)
// {
// return ApiResult.ParamIsNull("请传递唯一码");
// }
// var loginModel = UserReidsCache.GetAppletUserLoginInfo(LoginUserId);
// demodel.OpenId = loginModel?.OpenId ?? "";
// if (string.IsNullOrEmpty(demodel.OpenId))
// {
// return ApiResult.ParamIsNull("请传递唯一码");
// }
//}
}
Model
.
Extend
.
MarketingCenter
.
RB_DiscountCoupon_Extend
couponResult
=
new
Model
.
Extend
.
MarketingCenter
.
RB_DiscountCoupon_Extend
();
...
...
@@ -134,6 +136,7 @@ namespace Mall.WebApi.Controllers.User
//验证是否新用户
if
(!
userModule
.
ValidateUserOpenId
(
demodel
.
OpenId
,
demodel
.
Source
,
requestParm
.
TenantId
,
requestParm
.
MallBaseId
))
{
if
(
IsLogin
)
{
return
ApiResult
.
ParamIsNull
(
"请传递唯一码"
);
}
LogHelper
.
WriteInfo
(
demodel
.
OpenId
+
",SuperiorId:"
+
(
demodel
.
SuperiorId
??
0
)
+
",EduSchoolId:"
+
demodel
.
EduSchoolId
);
//注册新用户
if
(
string
.
IsNullOrEmpty
(
demodel
.
Name
))
...
...
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