Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
freemud-coupon-export
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
秦嘉祺
freemud-coupon-export
Commits
45628138
Commit
45628138
authored
Mar 10, 2021
by
QJQ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新导码数量单位
parent
b93fa806
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
23 deletions
+2
-23
Freemud.Coupon.ExportCode/Services/CouponService.cs
+1
-22
Freemud.Coupon.ExportCode/Web.config
+1
-1
No files found.
Freemud.Coupon.ExportCode/Services/CouponService.cs
View file @
45628138
...
@@ -51,22 +51,10 @@ namespace Freemud.Coupon.ExportCode.Services
...
@@ -51,22 +51,10 @@ namespace Freemud.Coupon.ExportCode.Services
}
}
int
currentExportAmount
=
GetCurrentExportAmount
();
int
currentExportAmount
=
GetCurrentExportAmount
();
if
(!
isDebug
)
{
currentExportAmount
/=
10000
;
maxExportAmount
/=
10000
;
}
if
(
currentExportAmount
+
req
.
CouponAmount
>
maxExportAmount
)
if
(
currentExportAmount
+
req
.
CouponAmount
>
maxExportAmount
)
{
{
var
availableAmount
=
maxExportAmount
-
currentExportAmount
;
var
availableAmount
=
maxExportAmount
-
currentExportAmount
;
return
MessageResult
.
Fail
(
$"导码池数量总共不能超过【
{
maxExportAmount
}
万】,当前可输入的最大导码量为【
{
availableAmount
}
万】!"
);
return
MessageResult
.
Fail
(
$"导码池数量总共不能超过【
{
maxExportAmount
}
】,当前可输入的最大导码量为【
{
availableAmount
}
】!"
);
}
if
(!
isDebug
)
{
req
.
CouponAmount
*=
10000
;
}
}
CouponExportRecord
record
=
new
CouponExportRecord
CouponExportRecord
record
=
new
CouponExportRecord
...
@@ -173,16 +161,7 @@ namespace Freemud.Coupon.ExportCode.Services
...
@@ -173,16 +161,7 @@ namespace Freemud.Coupon.ExportCode.Services
}
}
int
pageIndex
=
currentPage
.
Value
-
1
;
int
pageIndex
=
currentPage
.
Value
-
1
;
var
couponSourceList
=
allList
.
Skip
(
pageIndex
*
pageSize
.
Value
).
Take
(
pageSize
.
Value
).
ToList
();
var
couponSourceList
=
allList
.
Skip
(
pageIndex
*
pageSize
.
Value
).
Take
(
pageSize
.
Value
).
ToList
();
if
(!
isDebug
)
{
foreach
(
var
item
in
couponSourceList
)
{
item
.
CouponAmount
/=
10000
;
}
}
var
data
=
new
var
data
=
new
{
{
list
=
couponSourceList
,
list
=
couponSourceList
,
...
...
Freemud.Coupon.ExportCode/Web.config
View file @
45628138
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<
add
key
=
"coupon_bussiness_type"
value
=
"coupon"
/>
<
add
key
=
"coupon_bussiness_type"
value
=
"coupon"
/>
<
add
key
=
"common_bussiness_type"
value
=
"common_base"
/>
<
add
key
=
"common_bussiness_type"
value
=
"common_base"
/>
<
add
key
=
"isDebug"
value
=
"true"
/>
<
add
key
=
"isDebug"
value
=
"true"
/>
<
add
key
=
"maxExportAmount"
value
=
"
2
0"
/>
<
add
key
=
"maxExportAmount"
value
=
"
50000
0"
/>
<
add
key
=
"ipWhiteList"
value
=
"127.0.0.1,::1,172.16.0.152"
/>
<
add
key
=
"ipWhiteList"
value
=
"127.0.0.1,::1,172.16.0.152"
/>
<
add
key
=
"filePathRoot"
value
=
"E:\document\发布包\测试环境\Freemud.Quartz.CouponCodeExport\CouponCodeFiles\"
/>
<
add
key
=
"filePathRoot"
value
=
"E:\document\发布包\测试环境\Freemud.Quartz.CouponCodeExport\CouponCodeFiles\"
/>
<
add
key
=
"EmailConfig"
value
=
"{ servername:'smtp.exmail.qq.com', smtpport:465, adminaccount:'coupon-notification@freemud.cn', adminpassword:'CouponGood@@1'}"
/>
<
add
key
=
"EmailConfig"
value
=
"{ servername:'smtp.exmail.qq.com', smtpport:465, adminaccount:'coupon-notification@freemud.cn', adminpassword:'CouponGood@@1'}"
/>
...
...
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