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
3d1909ce
Commit
3d1909ce
authored
Jun 02, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
271f7b10
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
22 deletions
+50
-22
RB_Member_UserRepository.cs
Mall.Repository/User/RB_Member_UserRepository.cs
+1
-2
MallController.cs
Mall.WebApi/Controllers/Mall/MallController.cs
+49
-20
No files found.
Mall.Repository/User/RB_Member_UserRepository.cs
View file @
3d1909ce
...
...
@@ -488,9 +488,8 @@ WHERE u.TenantId={tenantId} and u.MallBaseId={mallBaseId} and u.SuperiorId ={use
//HK06-01新增查询条件
if
(
query
.
OpenId
!=
null
&&
!
string
.
IsNullOrWhiteSpace
(
query
.
OpenId
))
{
where
+=
$@" and
{
nameof
(
RB_Member_User
.
OpenId
)}
= '%
{
query
.
OpenId
}
%'"
;
where
+=
$@" and
{
nameof
(
RB_Member_User
.
OpenId
)}
LIKE '
{
query
.
OpenId
}
%'"
;
}
string
sql
=
$@"select * from RB_Member_User where
{
where
}
"
;
return
Get
<
RB_Member_User_Extend
>(
sql
).
FirstOrDefault
();
}
...
...
Mall.WebApi/Controllers/Mall/MallController.cs
View file @
3d1909ce
...
...
@@ -1174,18 +1174,19 @@ namespace Mall.WebApi.Controllers.MallBase
//基础配置 Add By:W 2020年6月1号
var
mallBaseModel
=
mallBaseModule
.
GetListRepository
(
new
RB_MallBase_Extend
{
TenantId
=
miniProgram
.
TenantId
??
0
,
MallBaseId
=
miniProgram
.
MallBaseId
}).
FirstOrDefault
();
//获取物流配置
var
setting
=
new
{
contact_tel
=
mallBaseModel
.
ContactNumber
,
over_time
=
mallBaseModel
.
CancelTime
,
delivery_time
=
mallBaseModel
.
AutoReceiving
,
after_sale_time
=
mallBaseModel
.
AfterTime
,
payment_type
=
""
,
send_type
=
""
,
kdniao_mch_id
=
""
,
//快递鸟配置
kdniao_api_key
=
""
,
var
mallBaseModel
=
mallBaseModule
.
GetListRepository
(
new
RB_MallBase_Extend
{
TenantId
=
miniProgram
.
TenantId
??
0
,
MallBaseId
=
miniProgram
.
MallBaseId
}).
FirstOrDefault
();
//获取物流配置
var
setting
=
new
{
contact_tel
=
mallBaseModel
.
ContactNumber
,
over_time
=
mallBaseModel
.
CancelTime
,
delivery_time
=
mallBaseModel
.
AutoReceiving
,
after_sale_time
=
mallBaseModel
.
AfterTime
,
payment_type
=
""
,
send_type
=
""
,
kdniao_mch_id
=
""
,
//快递鸟配置
kdniao_api_key
=
""
,
};
}
...
...
@@ -1645,11 +1646,19 @@ namespace Mall.WebApi.Controllers.MallBase
public
ApiResult
GetUserCenter
()
{
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
//小程序Id
var
MiniAppId
=
parms
.
GetStringValue
(
"MiniAppId"
);
string
MiniAppId
=
""
;
try
{
//小程序Id
MiniAppId
=
RequestParm
.
MiniAppId
;
}
catch
(
Exception
ex
)
{
Common
.
Plugin
.
LogHelper
.
Error
(
"MallController_GetUserCenter"
,
ex
);
}
//获取小程序信息
var
miniProgram
=
programModule
.
GetMiniProgramModule
(
new
Model
.
Extend
.
User
.
RB_MiniProgram_Extend
()
{
MiniAppId
=
MiniAppId
},
isGetUserCenterMenu
:
true
);
var
mall
=
new
object
();
var
data
=
new
object
();
if
(
miniProgram
!=
null
&&
miniProgram
.
MallBaseId
>
0
)
{
var
config
=
new
...
...
@@ -1730,15 +1739,35 @@ namespace Mall.WebApi.Controllers.MallBase
}
}
};
mall
=
new
var
user_info
=
new
object
();
if
(
RequestParm
.
OpenId
!=
null
&&
!
string
.
IsNullOrWhiteSpace
(
RequestParm
.
OpenId
))
{
var
memberModel
=
userModule
.
GetAppletUserCenterStatistics
(
RequestParm
.
OpenId
);
user_info
=
memberModel
;
}
data
=
new
{
id
=
miniProgram
.
MallBaseId
,
name
=
miniProgram
.
MallName
,
mall
=
new
{
//商城编号
id
=
miniProgram
.
MallBaseId
,
//商城名称
name
=
miniProgram
.
MallName
,
//是否删除
is_delete
=
miniProgram
.
Status
,
//是否回收
is_recycle
=
0
,
//是否禁用
is_disable
=
miniProgram
.
Status
},
//配置信息
config
config
,
//用户信息
user_info
,
};
}
return
ApiResult
.
Success
(
data
:
mall
);
return
ApiResult
.
Success
(
data
:
data
);
}
/// <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