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
dbf9b906
Commit
dbf9b906
authored
Jun 02, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/mall.oytour.com
parents
c078d1e6
b45e5874
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
15 deletions
+27
-15
UserReidsCache.cs
Mall.CacheManager/User/UserReidsCache.cs
+5
-5
MiniProgramModule.cs
Mall.Module.User/MiniProgramModule.cs
+3
-2
MallController.cs
Mall.WebApi/Controllers/Mall/MallController.cs
+8
-6
TenantController.cs
Mall.WebApi/Controllers/User/TenantController.cs
+11
-2
No files found.
Mall.CacheManager/User/UserReidsCache.cs
View file @
dbf9b906
...
...
@@ -108,7 +108,7 @@ namespace Mall.CacheManager.User
var
extModel
=
tenantRepository
.
GetEntity
<
RB_Tenant_Extend
>(
NewTenantId
);
if
(
extModel
!=
null
)
{
UserInfo
obj
=
new
UserInfo
userInfo
=
new
UserInfo
{
TenantId
=
extModel
.
TenantId
,
Account
=
extModel
.
Account
,
...
...
@@ -123,7 +123,7 @@ namespace Mall.CacheManager.User
Token
=
token
,
SecretKey
=
""
,
};
UserInfoSet
(
UserModuleCacheKeyConfig
.
Mall_Login_Info
+
TenantId
,
obj
,
Config
.
JwtExpirTime
);
UserInfoSet
(
UserModuleCacheKeyConfig
.
Mall_Login_Info
+
TenantId
,
userInfo
,
Config
.
JwtExpirTime
);
}
}
}
...
...
@@ -185,7 +185,7 @@ namespace Mall.CacheManager.User
var
umodel
=
member_UserRepository
.
GetEntity
<
RB_Member_User_Extend
>(
NewUserId
);
if
(
umodel
!=
null
)
{
AppletUserInfo
obj
=
new
AppletUserInfo
userInfo
=
new
AppletUserInfo
{
MallBaseId
=
umodel
.
MallBaseId
,
MallName
=
""
,
...
...
@@ -200,7 +200,7 @@ namespace Mall.CacheManager.User
SuperiorId
=
umodel
.
SuperiorId
??
0
,
Token
=
token
};
AppletUserInfoSet
(
UserModuleCacheKeyConfig
.
Applet_Login_Info
+
UserId
,
obj
,
Config
.
JwtExpirTime
);
AppletUserInfoSet
(
UserModuleCacheKeyConfig
.
Applet_Login_Info
+
UserId
,
userInfo
,
Config
.
JwtExpirTime
);
}
}
}
...
...
Mall.Module.User/MiniProgramModule.cs
View file @
dbf9b906
...
...
@@ -329,7 +329,8 @@ namespace Mall.Module.User
SetMiniProgramMallTagModule
(
extModel
,
isUpdateBasic
:
false
);
}
flag
=
NewId
>
0
;
if
(
flag
)
{
if
(
flag
)
{
userCommonModule
.
InitializeCategoryStyleInfo
(
extModel
.
TenantId
??
0
,
NewId
);
//分类样式
userCommonModule
.
InitializeDistributorBasicsInfo
(
extModel
.
TenantId
??
0
,
NewId
);
//分销基础
userCommonModule
.
InitializeDistributorCustomInfo
(
extModel
.
TenantId
??
0
,
NewId
);
//分销自定义
...
...
Mall.WebApi/Controllers/Mall/MallController.cs
View file @
dbf9b906
...
...
@@ -1658,6 +1658,13 @@ namespace Mall.WebApi.Controllers.MallBase
}
//获取小程序信息
var
miniProgram
=
programModule
.
GetMiniProgramModule
(
new
Model
.
Extend
.
User
.
RB_MiniProgram_Extend
()
{
MiniAppId
=
MiniAppId
},
isGetUserCenterMenu
:
true
);
var
user_info
=
new
object
();
if
(
RequestParm
.
OpenId
!=
null
&&
!
string
.
IsNullOrWhiteSpace
(
RequestParm
.
OpenId
))
{
var
memberModel
=
userModule
.
GetAppletUserCenterStatistics
(
RequestParm
.
OpenId
);
user_info
=
memberModel
;
}
var
data
=
new
object
();
if
(
miniProgram
!=
null
&&
miniProgram
.
MallBaseId
>
0
)
{
...
...
@@ -1739,12 +1746,7 @@ namespace Mall.WebApi.Controllers.MallBase
}
}
};
var
user_info
=
new
object
();
if
(
RequestParm
.
OpenId
!=
null
&&
!
string
.
IsNullOrWhiteSpace
(
RequestParm
.
OpenId
))
{
var
memberModel
=
userModule
.
GetAppletUserCenterStatistics
(
RequestParm
.
OpenId
);
user_info
=
memberModel
;
}
data
=
new
{
mall
=
new
...
...
Mall.WebApi/Controllers/User/TenantController.cs
View file @
dbf9b906
...
...
@@ -188,10 +188,19 @@ namespace Mall.WebApi.Controllers.User
/// </summary>
/// <returns></returns>
public
ApiResult
GetTenant
()
{
if
(
RequestParm
.
TenantId
>
0
)
{
var
model
=
TenantModule
.
GetTenantModule
(
RequestParm
.
TenantId
);
return
ApiResult
.
Success
(
""
,
model
);
}
if
(
base
.
UserInfo
!=
null
&&
base
.
UserInfo
.
TenantId
>
0
)
{
var
model
=
TenantModule
.
GetTenantModule
(
base
.
UserInfo
.
TenantId
);
return
ApiResult
.
Success
(
""
,
model
);
}
return
ApiResult
.
Failed
(
message
:
"参数错误!"
);
}
/// <summary>
/// 修改密码账号
...
...
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