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
386643f5
Commit
386643f5
authored
Aug 31, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
8931b245
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
24 deletions
+26
-24
WeiXinReidsCache.cs
Mall.CacheManager/AppletWeChat/WeiXinReidsCache.cs
+1
-1
ByteDanceRedis.cs
Mall.CacheManager/ByteDance/ByteDanceRedis.cs
+1
-1
DestinationModule.cs
Mall.Module.BaseSetUp/DestinationModule.cs
+2
-2
MallBaseModule.cs
Mall.Module.BaseSetUp/MallBaseModule.cs
+22
-20
No files found.
Mall.CacheManager/AppletWeChat/WeiXinReidsCache.cs
View file @
386643f5
...
...
@@ -8,7 +8,7 @@ namespace Mall.CacheManager.AppletWeChat
{
public
class
WeiXinReidsCache
{
static
RedisHelper
redis
=
new
RedisHelper
(
DataStatistic
.
DataConstant
.
REDIS_DB2
,
DataStatistic
.
DataConstant
.
DATA_WeiXinToken
);
static
readonly
RedisHelper
redis
=
new
RedisHelper
(
DataStatistic
.
DataConstant
.
REDIS_DB2
,
DataStatistic
.
DataConstant
.
DATA_WeiXinToken
);
/// <summary>
/// 设置缓存
/// </summary>
...
...
Mall.CacheManager/ByteDance/ByteDanceRedis.cs
View file @
386643f5
...
...
@@ -12,7 +12,7 @@ namespace Mall.CacheManager.ByteDance
public
class
ByteDanceRedis
{
static
RedisHelper
redis
=
new
RedisHelper
(
DataConstant
.
REDIS_DB2
);
static
readonly
RedisHelper
redis
=
new
RedisHelper
(
DataConstant
.
REDIS_DB2
);
/// <summary>
/// 获取微信用的formID
/// </summary>
...
...
Mall.Module.BaseSetUp/DestinationModule.cs
View file @
386643f5
...
...
@@ -16,7 +16,7 @@ namespace Mall.Module.BaseSetUp
/// </summary>
public
class
DestinationModule
{
private
Rb_destinationRepository
rb_DestinationRepository
=
new
Rb_destinationRepository
();
private
readonly
Rb_destinationRepository
rb_DestinationRepository
=
new
Rb_destinationRepository
();
/// <summary>
/// 根据父节点编号获取子列表
...
...
@@ -48,7 +48,7 @@ namespace Mall.Module.BaseSetUp
/// <returns></returns>
public
bool
Set
(
RB_Destination
model
)
{
var
flag
=
false
;
bool
flag
;
if
(
model
.
ID
>
0
)
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
...
...
Mall.Module.BaseSetUp/MallBaseModule.cs
View file @
386643f5
...
...
@@ -15,21 +15,21 @@ namespace Mall.Module.BaseSetUp
{
public
class
MallBaseModule
{
private
RB_MiniProgramRepository
miniProgramRepository
=
new
RB_MiniProgramRepository
();
private
RB_MallBaseRepository
mallBaseRepository
=
new
RB_MallBaseRepository
();
private
RB_LogisticsRepository
logisticsRepository
=
new
RB_LogisticsRepository
();
private
RB_Logistics_RulesPriceRepository
logisticsRulesPriceRepository
=
new
RB_Logistics_RulesPriceRepository
();
private
RB_Logistics_RulesRegionRepository
logisticsRulesRegionRepository
=
new
RB_Logistics_RulesRegionRepository
();
private
RB_Logistics_RulesRepository
logisticsRulesRepository
=
new
RB_Logistics_RulesRepository
();
private
RB_Logistics_DeliveryRepository
deliveryRepository
=
new
RB_Logistics_DeliveryRepository
();
private
RB_Logistics_ExpressRepository
expressRepository
=
new
RB_Logistics_ExpressRepository
();
private
RB_ElectronicSheetRepository
electronicSheetRepository
=
new
RB_ElectronicSheetRepository
();
private
readonly
RB_MiniProgramRepository
miniProgramRepository
=
new
RB_MiniProgramRepository
();
private
readonly
RB_MallBaseRepository
mallBaseRepository
=
new
RB_MallBaseRepository
();
private
readonly
RB_LogisticsRepository
logisticsRepository
=
new
RB_LogisticsRepository
();
private
readonly
RB_Logistics_RulesPriceRepository
logisticsRulesPriceRepository
=
new
RB_Logistics_RulesPriceRepository
();
private
readonly
RB_Logistics_RulesRegionRepository
logisticsRulesRegionRepository
=
new
RB_Logistics_RulesRegionRepository
();
private
readonly
RB_Logistics_RulesRepository
logisticsRulesRepository
=
new
RB_Logistics_RulesRepository
();
private
readonly
RB_Logistics_DeliveryRepository
deliveryRepository
=
new
RB_Logistics_DeliveryRepository
();
private
readonly
RB_Logistics_ExpressRepository
expressRepository
=
new
RB_Logistics_ExpressRepository
();
private
readonly
RB_ElectronicSheetRepository
electronicSheetRepository
=
new
RB_ElectronicSheetRepository
();
private
RB_File_StoreRepository
storeRepository
=
new
RB_File_StoreRepository
();
private
RB_FreeShippingCategoryRepository
freeShippingCategoryRepository
=
new
RB_FreeShippingCategoryRepository
();
private
RB_FreeShippingRepository
freeShippingRepository
=
new
RB_FreeShippingRepository
();
private
readonly
RB_File_StoreRepository
storeRepository
=
new
RB_File_StoreRepository
();
private
readonly
RB_FreeShippingCategoryRepository
freeShippingCategoryRepository
=
new
RB_FreeShippingCategoryRepository
();
private
readonly
RB_FreeShippingRepository
freeShippingRepository
=
new
RB_FreeShippingRepository
();
private
RB_MicroShop_BasicsRepository
microShopBasicsRepository
=
new
RB_MicroShop_BasicsRepository
();
private
readonly
RB_MicroShop_BasicsRepository
microShopBasicsRepository
=
new
RB_MicroShop_BasicsRepository
();
...
...
@@ -79,8 +79,8 @@ namespace Mall.Module.BaseSetUp
/// <returns></returns>
public
bool
AddOrUpdateMallBase
(
RB_MallBase_Extend
model
)
{
bool
flag
=
false
;
var
trans
=
mallBaseRepository
.
DbTransaction
;
bool
flag
;
try
{
if
(
model
.
ID
==
0
)
...
...
@@ -196,8 +196,10 @@ namespace Mall.Module.BaseSetUp
}
else
{
model
=
new
RB_Logistics_Rules_Extend
();
model
.
Detail
=
new
List
<
RB_Logistics_RulesPrice_Extend
>();
model
=
new
RB_Logistics_Rules_Extend
{
Detail
=
new
List
<
RB_Logistics_RulesPrice_Extend
>()
};
}
return
model
;
}
...
...
@@ -206,8 +208,8 @@ namespace Mall.Module.BaseSetUp
public
bool
SetDefaultLogisticsRules
(
RB_Logistics_Rules_Extend
query
)
{
bool
flag
=
false
;
var
trans
=
logisticsRulesRepository
.
DbTransaction
;
bool
flag
;
try
{
IDictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
...
...
@@ -393,8 +395,8 @@ namespace Mall.Module.BaseSetUp
/// <returns></returns>
public
bool
DelRulesInfo
(
int
id
,
int
uid
,
int
mallBaseId
)
{
bool
flag
=
false
;
var
trans
=
logisticsRulesRepository
.
DbTransaction
;
bool
flag
;
try
{
Dictionary
<
string
,
object
>
cols
=
new
Dictionary
<
string
,
object
>()
...
...
@@ -586,8 +588,8 @@ namespace Mall.Module.BaseSetUp
/// <returns></returns>
public
bool
DelPinkageInfo
(
int
id
,
int
uid
,
int
mallBaseId
)
{
bool
flag
=
false
;
var
trans
=
logisticsRulesRepository
.
DbTransaction
;
bool
flag
;
try
{
Dictionary
<
string
,
object
>
cols
=
new
Dictionary
<
string
,
object
>()
...
...
@@ -1137,8 +1139,8 @@ namespace Mall.Module.BaseSetUp
/// <returns></returns>
public
bool
DelFreeShipping
(
int
id
,
int
uid
,
int
mallBaseId
)
{
bool
flag
=
false
;
var
trans
=
freeShippingRepository
.
DbTransaction
;
bool
flag
;
try
{
Dictionary
<
string
,
object
>
cols
=
new
Dictionary
<
string
,
object
>()
...
...
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