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
7b94e644
Commit
7b94e644
authored
Aug 24, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复问题
parent
0328682d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
7 deletions
+19
-7
HttpHelper.cs
Mall.Common/Plugin/HttpHelper.cs
+2
-1
RB_Goods_Order_Extend.cs
Mall.Model/Extend/Product/RB_Goods_Order_Extend.cs
+4
-0
OrderModule.cs
Mall.Module.Product/OrderModule.cs
+10
-4
UserModule.cs
Mall.Module.User/UserModule.cs
+2
-2
AppletOrderController.cs
Mall.WebApi/Controllers/Product/AppletOrderController.cs
+1
-0
No files found.
Mall.Common/Plugin/HttpHelper.cs
View file @
7b94e644
...
...
@@ -566,7 +566,8 @@ namespace Mall.Common.Plugin
g
.
DrawImage
(
imgBack
,
0
,
0
,
imgBack
.
Width
,
imgBack
.
Height
);
//g.DrawImage(imgBack, 0, 0, 相框宽, 相框高);
//g.FillRectangle(System.Drawing.Brushes.White, imgBack.Width / 2 - img.Width / 2 - 1, imgBack.Width / 2 - img.Width / 2 - 1,1,1);//相片四周刷一层黑色边框
//g.DrawImage(img, 照片与相框的左边距, 照片与相框的上边距, 照片宽, 照片高);
g
.
DrawImage
(
img
,
imgBack
.
Width
/
2
-
Size
/
2
,
imgBack
.
Width
/
2
-
Size
/
2
,
Size
,
Size
);
Size
=
imgBack
.
Width
/
2
;
g
.
DrawImage
(
img
,
imgBack
.
Width
/
2
-
(
Size
/
2
)
+
5
,
imgBack
.
Width
/
2
-
(
Size
/
2
)
+
5
,
Size
-
10
,
Size
-
10
);
GC
.
Collect
();
return
imgBack
;
}
...
...
Mall.Model/Extend/Product/RB_Goods_Order_Extend.cs
View file @
7b94e644
...
...
@@ -14,6 +14,10 @@ namespace Mall.Model.Extend.Product
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Goods_Order_Extend
:
RB_Goods_Order
{
/// <summary>
/// 赠送的会员等级
/// </summary>
public
int
PresentFXGrade
{
get
;
set
;
}
/// <summary>
/// 公司id
/// </summary>
...
...
Mall.Module.Product/OrderModule.cs
View file @
7b94e644
...
...
@@ -704,7 +704,9 @@ namespace Mall.Module.Product
foreach
(
var
item
in
list
)
{
item
.
DetailList
=
dlist
.
Where
(
x
=>
x
.
OrderId
==
item
.
OrderId
).
ToList
();
if
(
item
.
DetailList
.
Where
(
x
=>
x
.
PresentFXGrade
>
0
).
Any
())
{
item
.
PresentFXGrade
=
1
;
}
item
.
DistrictAddress
=
(
arealist
.
Where
(
x
=>
x
.
ID
==
item
.
Province
).
FirstOrDefault
()?.
Name
??
""
)
+
" "
+
(
arealist
.
Where
(
x
=>
x
.
ID
==
item
.
City
).
FirstOrDefault
()?.
Name
??
""
)
+
" "
+
(
arealist
.
Where
(
x
=>
x
.
ID
==
item
.
District
).
FirstOrDefault
()?.
Name
??
""
);
}
}
...
...
@@ -766,6 +768,9 @@ namespace Mall.Module.Product
{
item
.
IsApplyForAfterSale
=
1
;
}
if
(
item
.
PresentFXGrade
>
0
)
{
model
.
PresentFXGrade
=
1
;
}
}
}
model
.
DetailList
=
dlist
;
...
...
@@ -855,7 +860,8 @@ namespace Mall.Module.Product
}),
model
.
IsApplyForCancel
,
model
.
RejectRemark
,
model
.
IsCanApplyForAfterSale
model
.
IsCanApplyForAfterSale
,
model
.
PresentFXGrade
});
}
...
...
@@ -9369,8 +9375,8 @@ namespace Mall.Module.Product
var
ssList
=
smallShops_CommissionRepository
.
GetList
(
new
RB_SmallShops_Commission_Extend
()
{
TenantId
=
tenantId
,
MallBaseId
=
mallBaseId
,
OrderId
=
orderId
});
if
(
ssList
.
Any
())
{
var
ulist
=
member_UserRepository
.
GetList
(
new
RB_Member_User_Extend
()
{
TenantId
=
tenantId
,
MallBaseId
=
mallBaseId
,
UserIds
=
string
.
Join
(
","
,
introduct
List
.
Select
(
x
=>
x
.
UserId
).
Distinct
())
});
var
slist
=
smallShops_InfoRepository
.
GetListForSingle
(
new
RB_SmallShops_Info_Extend
()
{
TenantId
=
tenantId
,
MallBaseId
=
mallBaseId
,
UserIds
=
string
.
Join
(
","
,
introduct
List
.
Select
(
x
=>
x
.
UserId
).
Distinct
())
});
var
ulist
=
member_UserRepository
.
GetList
(
new
RB_Member_User_Extend
()
{
TenantId
=
tenantId
,
MallBaseId
=
mallBaseId
,
UserIds
=
string
.
Join
(
","
,
ss
List
.
Select
(
x
=>
x
.
UserId
).
Distinct
())
});
var
slist
=
smallShops_InfoRepository
.
GetListForSingle
(
new
RB_SmallShops_Info_Extend
()
{
TenantId
=
tenantId
,
MallBaseId
=
mallBaseId
,
UserIds
=
string
.
Join
(
","
,
ss
List
.
Select
(
x
=>
x
.
UserId
).
Distinct
())
});
foreach
(
var
item
in
ulist
)
{
decimal
Commission
=
ssList
.
Where
(
x
=>
x
.
UserId
==
item
.
Id
).
Sum
(
x
=>
x
.
Commission
??
0
);
...
...
Mall.Module.User/UserModule.cs
View file @
7b94e644
...
...
@@ -5592,7 +5592,7 @@ namespace Mall.Module.User
int
IsNormalServer
=
Convert
.
ToInt32
(
new
ConfigurationBuilder
().
Add
(
new
JsonConfigurationSource
{
Path
=
"appsettings.json"
}).
Build
().
GetSection
(
"IsNormalServer"
).
Value
);
if
(
IsNormalServer
!=
1
)
{
token
=
"36_
h7IHGhiGidxjkK2dBvc-H_9EEfB9vkzOWrB0NqY6NDtvEvZm8yAQS7HaeT4qBfNETZBYWxTNr3yiBAGmyZuS6dakDmsRz_HzgflabycgFBpL3vutNhLzul77OCjFAaK3vTqXXbR5hUY5MRXIAAXaAIASSP
"
;
token
=
"36_
k9Yprh3EpK1OlRt5a23mjp-WXLUjDzV6Vn8qiyb3ppbsXqhIaAQo5ibLi9xh1fxxRTVPvdplYVawG-TIzxw1x32pB-fhfX7cFYs2LSpKgnn7Nk64a4bDvdKPofHCG7WzlDRTryJhtTufhquTWDEaAIACJK
"
;
}
if
(
string
.
IsNullOrEmpty
(
token
))
{
...
...
@@ -5613,7 +5613,7 @@ namespace Mall.Module.User
string
path_server
=
basepath
+
"\\upfile\\temporary\\"
+
pathName
;
#
region
微店头像
var
ssmodel
=
smallShopsInfoRepository
.
GetListForSingle
(
new
RB_SmallShops_Info_Extend
()
{
MallBaseId
=
mallBaseId
,
UserId
=
userId
}).
FirstOrDefault
();
string
ssPhoto
=
ssmodel
?.
Phot
o
??
""
;
string
ssPhoto
=
ssmodel
?.
Log
o
??
""
;
#
endregion
var
Robj
=
HttpHelper
.
HttpPostForGetWXQRCodePathSmallShops
(
GetImageUrl
,
JsonHelper
.
Serialize
(
postData
),
path_server
,
ssPhoto
);
...
...
Mall.WebApi/Controllers/Product/AppletOrderController.cs
View file @
7b94e644
...
...
@@ -257,6 +257,7 @@ namespace Mall.WebApi.Controllers.MallBase
OrderStatusName
=
x
.
OrderStatus
.
GetEnumName
(),
x
.
TenantId
,
x
.
MallBaseId
,
x
.
PresentFXGrade
,
CreateDate
=
x
.
CreateDate
.
HasValue
?
x
.
CreateDate
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
:
""
});
return
ApiResult
.
Success
(
""
,
pagelist
);
...
...
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