Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
iqiyiWin
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
wuliangshun
iqiyiWin
Commits
35fce98e
Commit
35fce98e
authored
Apr 18, 2021
by
wuliangshun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
抽奖
parent
89710e80
Changes
18
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
797 additions
and
81 deletions
+797
-81
Domain.cs
iqiyiWin/Api/Domain.cs
+4
-0
User.cs
iqiyiWin/Api/User.cs
+51
-6
ApiConstant.cs
iqiyiWin/Constant/ApiConstant.cs
+4
-0
IqiyiVersion.cs
iqiyiWin/Constant/IqiyiVersion.cs
+14
-1
TaskEnums.cs
iqiyiWin/Enums/TaskEnums.cs
+3
-1
Main.Designer.cs
iqiyiWin/Main.Designer.cs
+101
-46
Main.cs
iqiyiWin/Main.cs
+212
-18
Main.resx
iqiyiWin/Main.resx
+6
-0
IqiyiAccount.cs
iqiyiWin/Model/IqiyiAccount.cs
+4
-0
IqiyiLockDraw.cs
iqiyiWin/Model/IqiyiLockDraw.cs
+72
-0
CouponListResponse.cs
iqiyiWin/Response/User/CouponList/CouponListResponse.cs
+3
-3
LockDrawResponse.cs
iqiyiWin/Response/User/LockDraw/LockDrawResponse.cs
+33
-0
SetInterval.Designer.cs
iqiyiWin/SetInterval.Designer.cs
+4
-4
SetInterval.cs
iqiyiWin/SetInterval.cs
+2
-2
SetLuckDraw.Designer.cs
iqiyiWin/SetLuckDraw.Designer.cs
+116
-0
SetLuckDraw.cs
iqiyiWin/SetLuckDraw.cs
+34
-0
SetLuckDraw.resx
iqiyiWin/SetLuckDraw.resx
+123
-0
iqiyiWin.csproj
iqiyiWin/iqiyiWin.csproj
+11
-0
No files found.
iqiyiWin/Api/Domain.cs
View file @
35fce98e
...
...
@@ -12,5 +12,9 @@ namespace iqiyiWin.Api
public
static
string
REFERER_DOMAIN
=
"https://movie.iqiyi.com/"
;
public
static
string
WWW_IQIYI
=
"https://www.iqiyi.com"
;
public
static
string
PCELL_DOMAIN
=
"https://pcell.iqiyi.com/"
;
}
}
iqiyiWin/Api/User.cs
View file @
35fce98e
...
...
@@ -7,6 +7,7 @@ using System.Threading.Tasks;
using
iqiyiWin.Constant
;
using
iqiyiWin.Model
;
using
iqiyiWin.Response.User.CouponList
;
using
iqiyiWin.Response.User.LockDraw
;
using
iqiyiWin.Response.User.MovieBean
;
using
iqiyiWin.Util
;
using
Newtonsoft.Json
;
...
...
@@ -30,7 +31,7 @@ namespace iqiyiWin.Api
headers
.
Add
(
"platform"
,
IqiyiVersion
.
Platform
);
headers
.
Add
(
"appid"
,
IqiyiVersion
.
Appid
);
headers
.
Add
(
"dvsrc"
,
IqiyiVersion
.
Dvsrc
);
headers
.
Add
(
"dfp"
,
IqiyiVersion
.
Dfp
);
headers
.
Add
(
"dfp"
,
IqiyiVersion
.
Dfp
()
);
headers
.
Add
(
"ts"
,
DateUtils
.
GetTimeStampOfMilliseconds
().
ToString
());
var
nonce
=
""
;
...
...
@@ -72,7 +73,12 @@ namespace iqiyiWin.Api
return
"-1"
;
}
}
public
static
IList
<
Valid
>
GetCouponList
(
IqiyiAccount
iqiyiAccount
)
/// <summary>
/// 获取优惠券
/// </summary>
/// <param name="iqiyiAccount"></param>
/// <returns></returns>
public
static
List
<
Valid
>
GetCouponList
(
IqiyiAccount
iqiyiAccount
)
{
var
headers
=
new
SortedDictionary
<
string
,
string
>();
...
...
@@ -82,7 +88,7 @@ namespace iqiyiWin.Api
headers
.
Add
(
"platform"
,
IqiyiVersion
.
Platform
);
headers
.
Add
(
"appid"
,
IqiyiVersion
.
Appid
);
headers
.
Add
(
"dvsrc"
,
IqiyiVersion
.
Dvsrc
);
headers
.
Add
(
"dfp"
,
IqiyiVersion
.
Dfp
);
headers
.
Add
(
"dfp"
,
IqiyiVersion
.
Dfp
()
);
headers
.
Add
(
"ts"
,
DateUtils
.
GetTimeStampOfMilliseconds
().
ToString
());
var
nonce
=
""
;
...
...
@@ -129,12 +135,21 @@ namespace iqiyiWin.Api
return
new
List
<
Valid
>();
}
}
/// <summary>
/// 签到
/// </summary>
/// <param name="iqiyiAccount"></param>
/// <returns></returns>
public
static
Boolean
UserDoSign
(
IqiyiAccount
iqiyiAccount
)
{
var
headers
=
new
SortedDictionary
<
string
,
string
>();
headers
.
Add
(
"deviceId"
,
IqiyiVersion
.
Dfp
);
headers
.
Add
(
"dfp"
,
IqiyiVersion
.
Dfp
);
var
dfp
=
IqiyiVersion
.
Dfp
();
var
nonceRandom
=
new
Random
();
headers
.
Add
(
"deviceId"
,
dfp
);
headers
.
Add
(
"dfp"
,
dfp
);
headers
.
Add
(
"appid"
,
"1003"
);
headers
.
Add
(
"os"
,
"CPU iPhone OS 13_2_3 like Mac OS X"
);
headers
.
Add
(
"format"
,
"json"
);
...
...
@@ -143,7 +158,7 @@ namespace iqiyiWin.Api
headers
.
Add
(
"src"
,
"H5"
);
headers
.
Add
(
"version"
,
"1.0.0"
);
headers
.
Add
(
"ck"
,
iqiyiAccount
.
Cookie
);
headers
.
Add
(
"nonce"
,
"0.6682964300917493
"
);
headers
.
Add
(
"nonce"
,
$"0.
{
nonceRandom
.
Next
(
10000000
,
99999999
)}{
nonceRandom
.
Next
(
10000000
,
99999999
)}
"
);
headers
.
Add
(
"bizType"
,
"APP"
);
headers
.
Add
(
"_t"
,
DateUtils
.
GetTimeStampOfMilliseconds
().
ToString
());
...
...
@@ -164,5 +179,35 @@ namespace iqiyiWin.Api
return
false
;
}
}
/// <summary>
/// 抽奖
/// </summary>
/// <param name="iqiyiAccount"></param>
public
static
LockDrawResponse
LockDarw
(
IqiyiAccount
iqiyiAccount
,
string
actCode
)
{
var
headers
=
new
SortedDictionary
<
string
,
string
>();
headers
.
Add
(
"actCode"
,
actCode
);
headers
.
Add
(
"P00001"
,
iqiyiAccount
.
Cookie
);
var
queryText
=
UrlUtils
.
BuildQueryStringUrl
(
headers
);
var
responseStr
=
HttpUtils
.
DoGet
(
Domain
.
PCELL_DOMAIN
+
ApiConstant
.
LOCK_DRAW
+
queryText
,
headers
);
var
response
=
JsonConvert
.
DeserializeObject
<
LockDrawResponse
>(
responseStr
);
return
response
;
//if (response != null && (response.Code == "A00000"))
//{
// // UILogUtils.Info($"爱奇艺票务 【签到】成功: {iqiyiAccount.MobileNo}");
// return response;
//}
//else
//{
// // UILogUtils.Error($"爱奇艺票务 【签到】失败: {iqiyiAccount.MobileNo} {(response == null ? responseStr : response.Msg)}");
// return null;
//}
}
}
}
iqiyiWin/Constant/ApiConstant.cs
View file @
35fce98e
...
...
@@ -24,5 +24,9 @@ namespace iqiyiWin.Constant
/// 用户签到
/// </summary>
public
static
string
USER_SIGN_IN
=
"/app/v2/user/doSign"
;
/// <summary>
/// 抽奖
/// </summary>
public
static
string
LOCK_DRAW
=
"/lotto/lottery"
;
}
}
iqiyiWin/Constant/IqiyiVersion.cs
View file @
35fce98e
...
...
@@ -14,6 +14,19 @@ namespace iqiyiWin.Constant
public
static
string
Platform
=
"iPhone"
;
public
static
string
Appid
=
"10012"
;
public
static
string
Dvsrc
=
"ios"
;
public
static
string
Dfp
=
"a07ef14b414be543bdaae4b2d482d7e944eb08ba8b692e008e6371b3414b0cc57a"
;
public
static
string
Dfp
()
{
var
resultText
=
""
;
var
random
=
new
Random
();
var
randomText
=
"0123456789abcdef"
;
for
(
var
i
=
0
;
i
<
66
;
i
++)
{
resultText
+=
randomText
[
random
.
Next
(
0
,
16
)];
}
return
resultText
;
}
}
}
iqiyiWin/Enums/TaskEnums.cs
View file @
35fce98e
...
...
@@ -14,6 +14,8 @@ namespace iqiyiWin.Enums
[
Description
(
"查询观影豆"
)]
MovieBean
=
1
,
[
Description
(
"查询优惠券"
)]
Coupon
=
2
Coupon
=
2
,
[
Description
(
"抽奖"
)]
LockDraw
=
3
}
}
iqiyiWin/Main.Designer.cs
View file @
35fce98e
This diff is collapsed.
Click to expand it.
iqiyiWin/Main.cs
View file @
35fce98e
This diff is collapsed.
Click to expand it.
iqiyiWin/Main.resx
View file @
35fce98e
...
...
@@ -117,6 +117,9 @@
<resheader
name=
"writer"
>
<value>
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
</value>
</resheader>
<metadata
name=
"No.UserAddedColumn"
type=
"System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<value>
True
</value>
</metadata>
<metadata
name=
"MobileNo.UserAddedColumn"
type=
"System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<value>
True
</value>
</metadata>
...
...
@@ -141,4 +144,7 @@
<metadata
name=
"statusStrip1.TrayLocation"
type=
"System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
>
<value>
123, 17
</value>
</metadata>
<metadata
name=
"$this.TrayHeight"
type=
"System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<value>
41
</value>
</metadata>
</root>
\ No newline at end of file
iqiyiWin/Model/IqiyiAccount.cs
View file @
35fce98e
...
...
@@ -12,6 +12,10 @@ namespace iqiyiWin.Model
/// </summary>
public
class
IqiyiAccount
{
/// <summary>
/// 序号
/// </summary>
public
int
No
{
get
;
set
;
}
/// <summary>
/// 手机号
/// </summary>
...
...
iqiyiWin/Model/IqiyiLockDraw.cs
0 → 100644
View file @
35fce98e
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
using
Newtonsoft.Json
;
namespace
iqiyiWin.Model
{
public
class
IqiyiLockDraw
{
/// <summary>
/// Examples: "6元代金券"
/// </summary>
[
JsonProperty
(
"giftName"
)]
public
string
GiftName
{
get
;
set
;
}
/// <summary>
/// Examples: "2021041817123370016830073"
/// </summary>
[
JsonProperty
(
"orderCode"
)]
public
string
OrderCode
{
get
;
set
;
}
/// <summary>
/// Examples: 17
/// </summary>
[
JsonProperty
(
"giftType"
)]
public
string
GiftType
{
get
;
set
;
}
/// <summary>
/// Examples: 13509
/// </summary>
[
JsonProperty
(
"giftId"
)]
public
string
GiftId
{
get
;
set
;
}
/// <summary>
/// Examples: 0
/// </summary>
[
JsonProperty
(
"times"
)]
public
string
Times
{
get
;
set
;
}
/// <summary>
/// Examples: 4
/// </summary>
[
JsonProperty
(
"giftLevel"
)]
public
string
GiftLevel
{
get
;
set
;
}
/// <summary>
/// Examples: "G_a83e437fe3f0ccfb"
/// </summary>
[
JsonProperty
(
"giftCode"
)]
public
string
GiftCode
{
get
;
set
;
}
/// <summary>
/// Examples: null
/// </summary>
[
JsonProperty
(
"ticket"
)]
public
string
Ticket
{
get
;
set
;
}
/// <summary>
/// Examples: 1
/// </summary>
[
JsonProperty
(
"sendType"
)]
public
string
SendType
{
get
;
set
;
}
/// <summary>
/// Examples: 0
/// </summary>
[
JsonProperty
(
"fillPhone"
)]
public
string
FillPhone
{
get
;
set
;
}
}
}
iqiyiWin/Response/User/CouponList/CouponListResponse.cs
View file @
35fce98e
...
...
@@ -52,13 +52,13 @@ namespace iqiyiWin.Response.User.CouponList
/// Examples: [{"jumpType":"giftpackets","displaySubName":"","disCount":300.0,"availableTips":"有效期至 2021.04.24","jumpParam":"","tipTags":["限购超值礼包","不可叠加"],"displayName":"超值礼包抵扣券(新人专享)","isGiftPackage":false,"disCountStr":"3","withPriceChange":false,"showUse":true,"bossTicket":"221B-GZWW-ZBFN-U3R4-GRGJ","displaySubType":"限购超值礼包","couponType":1,"giftPackageH5Url":"https://app.iqiyi.com/ext/common/qipiao/libao_goumai/app.html?channel=piaoh5_lbkq","withPriceChangeTip":"不可叠加","desc":"仅限爱奇艺票务APP使用;\r\n仅限购买超值礼包产品抵扣使用。"}]
/// </summary>
[
JsonProperty
(
"valid"
)]
public
I
List
<
Valid
>
Valid
{
get
;
set
;
}
public
List
<
Valid
>
Valid
{
get
;
set
;
}
/// <summary>
/// Examples: [{"reason":"已使用","displaySubName":"满50元可用","disCount":800.0,"availableTips":"有效期至 2021.03.01","tipTags":["限购电影票","满50元可用","不可叠加"],"displayName":"8元电影优惠券","isGiftPackage":false,"disCountStr":"8","withPriceChange":false,"showUse":false,"bossTicket":"4ZWH-NXVR-MBFS-T3X6-NG6U","displaySubType":"限购电影票","invalidReasonType":1,"couponType":1,"withPriceChangeTip":"不可叠加","desc":"单笔订单满50元可用;\r\n不可与其他优惠同享。"},{"reason":"已过期","displaySubName":"满35元可用","disCount":200.0,"availableTips":"有效期至 2021.02.13","tipTags":["限购电影票","满35元可用","不可叠加"],"displayName":"签到奖品-电影票代金券","isGiftPackage":false,"disCountStr":"2","withPriceChange":false,"showUse":false,"bossTicket":"426A-Z7G8-CBFX-7K35-EYBK","displaySubType":"限购电影票","invalidReasonType":2,"couponType":1,"withPriceChangeTip":"不可叠加","desc":"单笔订单满35元可用;\r\n不可与其他优惠同享。"},{"reason":"已过期","displaySubName":"满28元可用","disCount":500.0,"availableTips":"有效期至 2021.02.08","tipTags":["限购电影票","满28元可用","不可叠加"],"displayName":"电影票代金券(新人专享)","isGiftPackage":false,"disCountStr":"5","withPriceChange":false,"showUse":false,"bossTicket":"323R-CVE2-BBFN-U3R4-V38D","displaySubType":"限购电影票","invalidReasonType":2,"couponType":1,"withPriceChangeTip":"不可叠加","desc":"仅限爱奇艺票务APP内使用;\r\n单笔订单满28元可用,可与改价优惠活动叠加使用,支持的影院以实际可用为准;"},{"reason":"已过期","displaySubName":"满35元可用","disCount":200.0,"availableTips":"有效期至 2021.02.07","tipTags":["限购电影票","满35元可用","不可叠加"],"displayName":"签到奖品-电影票代金券","isGiftPackage":false,"disCountStr":"2","withPriceChange":false,"showUse":false,"bossTicket":"226A-ZFE3-RBFT-LMB3-X71K","displaySubType":"限购电影票","invalidReasonType":2,"couponType":1,"withPriceChangeTip":"不可叠加","desc":"单笔订单满35元可用;\r\n不可与其他优惠同享。"},{"reason":"已过期","displaySubName":"满35元可用","disCount":200.0,"availableTips":"有效期至 2021.02.03","tipTags":["限购电影票","满35元可用","不可叠加"],"displayName":"签到奖品-电影票代金券","isGiftPackage":false,"disCountStr":"2","withPriceChange":false,"showUse":false,"bossTicket":"426A-ZCS7-5BFQ-SYTL-RDFF","displaySubType":"限购电影票","invalidReasonType":2,"couponType":1,"withPriceChangeTip":"不可叠加","desc":"单笔订单满35元可用;\r\n不可与其他优惠同享。"},{"reason":"已过期","displaySubName":"满35元可用","disCount":200.0,"availableTips":"有效期至 2021.02.02","tipTags":["限购电影票","满35元可用","不可叠加"],"displayName":"签到奖品-电影票代金券","isGiftPackage":false,"disCountStr":"2","withPriceChange":false,"showUse":false,"bossTicket":"426A-ZLYA-8BFQ-7VBF-S4FP","displaySubType":"限购电影票","invalidReasonType":2,"couponType":1,"withPriceChangeTip":"不可叠加","desc":"单笔订单满35元可用;\r\n不可与其他优惠同享。"},{"reason":"已过期","displaySubName":"满35元可用","disCount":200.0,"availableTips":"有效期至 2021.02.01","tipTags":["限购电影票","满35元可用","不可叠加"],"displayName":"电影票代金券","isGiftPackage":false,"disCountStr":"2","withPriceChange":false,"showUse":false,"bossTicket":"323S-T4C9-8BFP-EQRI-XFAV","displaySubType":"限购电影票","invalidReasonType":2,"couponType":1,"withPriceChangeTip":"不可叠加","desc":"单笔订单满35元可用;\r\n不可与其他优惠同享。"},{"reason":"已过期","displaySubName":"满35元可用","disCount":200.0,"availableTips":"有效期至 2021.01.31","tipTags":["限购电影票","满35元可用","不可叠加"],"displayName":"签到奖品-电影票代金券","isGiftPackage":false,"disCountStr":"2","withPriceChange":false,"showUse":false,"bossTicket":"226A-Z4WM-MBFP-41CA-DJY5","displaySubType":"限购电影票","invalidReasonType":2,"couponType":1,"withPriceChangeTip":"不可叠加","desc":"单笔订单满35元可用;\r\n不可与其他优惠同享。"},{"reason":"已过期","displaySubName":"满35元可用","disCount":200.0,"availableTips":"有效期至 2021.01.31","tipTags":["限购电影票","满35元可用","不可叠加"],"displayName":"电影票代金券","isGiftPackage":false,"disCountStr":"2","withPriceChange":false,"showUse":false,"bossTicket":"523S-T4LK-8BFN-UAKP-TTDC","displaySubType":"限购电影票","invalidReasonType":2,"couponType":1,"withPriceChangeTip":"不可叠加","desc":"单笔订单满35元可用;\r\n不可与其他优惠同享。"}]
/// </summary>
[
JsonProperty
(
"invalid"
)]
public
I
List
<
Invalid
>
Invalid
{
get
;
set
;
}
public
List
<
Invalid
>
Invalid
{
get
;
set
;
}
}
public
class
Invalid
{
...
...
@@ -91,7 +91,7 @@ namespace iqiyiWin.Response.User.CouponList
/// Examples: ["限购电影票","满50元可用","不可叠加"], ["限购电影票","满35元可用","不可叠加"], ["限购电影票","满28元可用","不可叠加"], ["限购电影票","满35元可用","不可叠加"], ["限购电影票","满35元可用","不可叠加"]
/// </summary>
[
JsonProperty
(
"tipTags"
)]
public
I
List
<
string
>
TipTags
{
get
;
set
;
}
public
List
<
string
>
TipTags
{
get
;
set
;
}
/// <summary>
/// Examples: "8元电影优惠券", "签到奖品-电影票代金券", "电影票代金券(新人专享)", "电影票代金券"
...
...
iqiyiWin/Response/User/LockDraw/LockDrawResponse.cs
0 → 100644
View file @
35fce98e
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
using
iqiyiWin.Model
;
using
Newtonsoft.Json
;
namespace
iqiyiWin.Response.User.LockDraw
{
public
class
LockDrawResponse
{
public
bool
Success
{
get
{
return
Code
==
"A00000"
||
Code
==
"Q00703"
||
Code
==
"Q00702"
;
}
}
/// <summary>
/// Examples: "A00000"
/// </summary>
[
JsonProperty
(
"code"
)]
public
string
Code
{
get
;
set
;
}
/// <summary>
/// Examples: "成功"
/// </summary>
[
JsonProperty
(
"msg"
)]
public
string
Msg
{
get
;
set
;
}
/// <summary>
/// Examples: {"giftName":"6元代金券","orderCode":"2021041817123370016830073","giftType":17,"giftId":13509,"times":0,"giftLevel":4,"giftCode":"G_a83e437fe3f0ccfb","ticket":null,"sendType":1,"fillPhone":0}
/// </summary>
[
JsonProperty
(
"data"
)]
public
IqiyiLockDraw
Data
{
get
;
set
;
}
}
}
iqiyiWin/SetInterval.Designer.cs
View file @
35fce98e
...
...
@@ -31,8 +31,8 @@
this
.
tb_set_interval
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
tableLayoutPanel1
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
label1
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
backgroundWorker1
=
new
System
.
ComponentModel
.
BackgroundWorker
();
this
.
btn_submit
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
backgroundWorker1
=
new
System
.
ComponentModel
.
BackgroundWorker
();
this
.
btn_stop
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
tableLayoutPanel1
.
SuspendLayout
();
this
.
SuspendLayout
();
...
...
@@ -79,7 +79,7 @@
this
.
label1
.
Name
=
"label1"
;
this
.
label1
.
Size
=
new
System
.
Drawing
.
Size
(
114
,
26
);
this
.
label1
.
TabIndex
=
2
;
this
.
label1
.
Text
=
"
任务开始时间
:"
;
this
.
label1
.
Text
=
"
设置抽奖Id
:"
;
this
.
label1
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleCenter
;
//
// btn_submit
...
...
@@ -89,7 +89,7 @@
this
.
btn_submit
.
Name
=
"btn_submit"
;
this
.
btn_submit
.
Size
=
new
System
.
Drawing
.
Size
(
74
,
20
);
this
.
btn_submit
.
TabIndex
=
3
;
this
.
btn_submit
.
Text
=
"
启动
"
;
this
.
btn_submit
.
Text
=
"
保存
"
;
this
.
btn_submit
.
UseVisualStyleBackColor
=
true
;
this
.
btn_submit
.
Click
+=
new
System
.
EventHandler
(
this
.
Button1_Click
);
//
...
...
@@ -110,7 +110,7 @@
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
502
,
70
);
this
.
Controls
.
Add
(
this
.
tableLayoutPanel1
);
this
.
Name
=
"SetInterval"
;
this
.
Text
=
"
SetInterval
"
;
this
.
Text
=
"
设置抽奖Id
"
;
this
.
tableLayoutPanel1
.
ResumeLayout
(
false
);
this
.
tableLayoutPanel1
.
PerformLayout
();
this
.
ResumeLayout
(
false
);
...
...
iqiyiWin/SetInterval.cs
View file @
35fce98e
...
...
@@ -17,7 +17,7 @@ namespace iqiyiWin
InitializeComponent
();
init
();
}
p
ublic
void
init
()
p
rivate
void
init
()
{
var
intervalTime
=
Main
.
_this
.
IntervalTime
;
...
...
@@ -27,7 +27,7 @@ namespace iqiyiWin
tb_set_interval
.
Text
=
$"
{
repairZero
(
hour
)}
:
{
repairZero
(
minute
)}
:
{
repairZero
(
second
)}
"
;
}
p
ublic
string
repairZero
(
int
num
)
p
rivate
string
repairZero
(
int
num
)
{
return
num
<
10
?
(
"0"
+
num
)
:
num
.
ToString
();
}
...
...
iqiyiWin/SetLuckDraw.Designer.cs
0 → 100644
View file @
35fce98e
namespace
iqiyiWin
{
partial
class
SetLuckDraw
{
/// <summary>
/// Required designer variable.
/// </summary>
private
System
.
ComponentModel
.
IContainer
components
=
null
;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected
override
void
Dispose
(
bool
disposing
)
{
if
(
disposing
&&
(
components
!=
null
))
{
components
.
Dispose
();
}
base
.
Dispose
(
disposing
);
}
#
region
Windows
Form
Designer
generated
code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private
void
InitializeComponent
()
{
this
.
label1
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
tb_set_lock_draw
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
tableLayoutPanel1
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
btn_submit
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
backgroundWorker1
=
new
System
.
ComponentModel
.
BackgroundWorker
();
this
.
tableLayoutPanel1
.
SuspendLayout
();
this
.
SuspendLayout
();
//
// label1
//
this
.
label1
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
label1
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
20
);
this
.
label1
.
Name
=
"label1"
;
this
.
label1
.
Size
=
new
System
.
Drawing
.
Size
(
114
,
26
);
this
.
label1
.
TabIndex
=
2
;
this
.
label1
.
Text
=
"设置抽奖Id:"
;
this
.
label1
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleCenter
;
//
// tb_set_lock_draw
//
this
.
tb_set_lock_draw
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
tb_set_lock_draw
.
Location
=
new
System
.
Drawing
.
Point
(
123
,
23
);
this
.
tb_set_lock_draw
.
MaxLength
=
32
;
this
.
tb_set_lock_draw
.
Name
=
"tb_set_lock_draw"
;
this
.
tb_set_lock_draw
.
Size
=
new
System
.
Drawing
.
Size
(
151
,
21
);
this
.
tb_set_lock_draw
.
TabIndex
=
1
;
//
// tableLayoutPanel1
//
this
.
tableLayoutPanel1
.
ColumnCount
=
4
;
this
.
tableLayoutPanel1
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
120F
));
this
.
tableLayoutPanel1
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
100F
));
this
.
tableLayoutPanel1
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
80F
));
this
.
tableLayoutPanel1
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
40F
));
this
.
tableLayoutPanel1
.
ColumnStyles
.
Add
(
new
System
.
Windows
.
Forms
.
ColumnStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
20F
));
this
.
tableLayoutPanel1
.
Controls
.
Add
(
this
.
label1
,
0
,
1
);
this
.
tableLayoutPanel1
.
Controls
.
Add
(
this
.
tb_set_lock_draw
,
1
,
1
);
this
.
tableLayoutPanel1
.
Controls
.
Add
(
this
.
btn_submit
,
2
,
1
);
this
.
tableLayoutPanel1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
tableLayoutPanel1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
tableLayoutPanel1
.
Name
=
"tableLayoutPanel1"
;
this
.
tableLayoutPanel1
.
RowCount
=
3
;
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
20F
));
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
26F
));
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Absolute
,
20F
));
this
.
tableLayoutPanel1
.
Size
=
new
System
.
Drawing
.
Size
(
397
,
70
);
this
.
tableLayoutPanel1
.
TabIndex
=
3
;
//
// btn_submit
//
this
.
btn_submit
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
btn_submit
.
Location
=
new
System
.
Drawing
.
Point
(
280
,
23
);
this
.
btn_submit
.
Name
=
"btn_submit"
;
this
.
btn_submit
.
Size
=
new
System
.
Drawing
.
Size
(
74
,
20
);
this
.
btn_submit
.
TabIndex
=
3
;
this
.
btn_submit
.
Text
=
"保存"
;
this
.
btn_submit
.
UseVisualStyleBackColor
=
true
;
this
.
btn_submit
.
Click
+=
new
System
.
EventHandler
(
this
.
Btn_submit_Click
);
//
// SetLuckDraw
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
6F
,
12F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
397
,
70
);
this
.
Controls
.
Add
(
this
.
tableLayoutPanel1
);
this
.
Name
=
"SetLuckDraw"
;
this
.
Text
=
"设置抽奖Id"
;
this
.
tableLayoutPanel1
.
ResumeLayout
(
false
);
this
.
tableLayoutPanel1
.
PerformLayout
();
this
.
ResumeLayout
(
false
);
}
#
endregion
private
System
.
Windows
.
Forms
.
Label
label1
;
private
System
.
Windows
.
Forms
.
TextBox
tb_set_lock_draw
;
private
System
.
Windows
.
Forms
.
TableLayoutPanel
tableLayoutPanel1
;
private
System
.
Windows
.
Forms
.
Button
btn_submit
;
private
System
.
ComponentModel
.
BackgroundWorker
backgroundWorker1
;
}
}
\ No newline at end of file
iqiyiWin/SetLuckDraw.cs
0 → 100644
View file @
35fce98e
using
System
;
using
System.Collections.Generic
;
using
System.ComponentModel
;
using
System.Data
;
using
System.Drawing
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.Windows.Forms
;
namespace
iqiyiWin
{
public
partial
class
SetLuckDraw
:
Form
{
public
SetLuckDraw
()
{
InitializeComponent
();
}
private
void
Btn_submit_Click
(
object
sender
,
EventArgs
e
)
{
var
actCode
=
tb_set_lock_draw
.
Text
;
if
(
actCode
.
Length
==
0
)
{
MessageBox
.
Show
(
$"请输入有效的抽奖id"
);
return
;
}
Main
.
_this
.
SetActCode
(
0
,
actCode
);
this
.
Close
();
}
}
}
iqiyiWin/SetLuckDraw.resx
0 → 100644
View file @
35fce98e
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema
id=
"root"
xmlns=
""
xmlns:xsd=
"http://www.w3.org/2001/XMLSchema"
xmlns:msdata=
"urn:schemas-microsoft-com:xml-msdata"
>
<xsd:import
namespace=
"http://www.w3.org/XML/1998/namespace"
/>
<xsd:element
name=
"root"
msdata:IsDataSet=
"true"
>
<xsd:complexType>
<xsd:choice
maxOccurs=
"unbounded"
>
<xsd:element
name=
"metadata"
>
<xsd:complexType>
<xsd:sequence>
<xsd:element
name=
"value"
type=
"xsd:string"
minOccurs=
"0"
/>
</xsd:sequence>
<xsd:attribute
name=
"name"
use=
"required"
type=
"xsd:string"
/>
<xsd:attribute
name=
"type"
type=
"xsd:string"
/>
<xsd:attribute
name=
"mimetype"
type=
"xsd:string"
/>
<xsd:attribute
ref=
"xml:space"
/>
</xsd:complexType>
</xsd:element>
<xsd:element
name=
"assembly"
>
<xsd:complexType>
<xsd:attribute
name=
"alias"
type=
"xsd:string"
/>
<xsd:attribute
name=
"name"
type=
"xsd:string"
/>
</xsd:complexType>
</xsd:element>
<xsd:element
name=
"data"
>
<xsd:complexType>
<xsd:sequence>
<xsd:element
name=
"value"
type=
"xsd:string"
minOccurs=
"0"
msdata:Ordinal=
"1"
/>
<xsd:element
name=
"comment"
type=
"xsd:string"
minOccurs=
"0"
msdata:Ordinal=
"2"
/>
</xsd:sequence>
<xsd:attribute
name=
"name"
type=
"xsd:string"
use=
"required"
msdata:Ordinal=
"1"
/>
<xsd:attribute
name=
"type"
type=
"xsd:string"
msdata:Ordinal=
"3"
/>
<xsd:attribute
name=
"mimetype"
type=
"xsd:string"
msdata:Ordinal=
"4"
/>
<xsd:attribute
ref=
"xml:space"
/>
</xsd:complexType>
</xsd:element>
<xsd:element
name=
"resheader"
>
<xsd:complexType>
<xsd:sequence>
<xsd:element
name=
"value"
type=
"xsd:string"
minOccurs=
"0"
msdata:Ordinal=
"1"
/>
</xsd:sequence>
<xsd:attribute
name=
"name"
type=
"xsd:string"
use=
"required"
/>
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader
name=
"resmimetype"
>
<value>
text/microsoft-resx
</value>
</resheader>
<resheader
name=
"version"
>
<value>
2.0
</value>
</resheader>
<resheader
name=
"reader"
>
<value>
System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
</value>
</resheader>
<resheader
name=
"writer"
>
<value>
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
</value>
</resheader>
<metadata
name=
"backgroundWorker1.TrayLocation"
type=
"System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
>
<value>
17, 17
</value>
</metadata>
</root>
\ No newline at end of file
iqiyiWin/iqiyiWin.csproj
View file @
35fce98e
...
...
@@ -57,6 +57,14 @@
<Compile
Include=
"Constant\IqiyiVersion.cs"
/>
<Compile
Include=
"Enums\TaskEnums.cs"
/>
<Compile
Include=
"Extension\EnumExtension.cs"
/>
<Compile
Include=
"Model\IqiyiLockDraw.cs"
/>
<Compile
Include=
"Response\User\LockDraw\LockDrawResponse.cs"
/>
<Compile
Include=
"SetLuckDraw.cs"
>
<SubType>
Form
</SubType>
</Compile>
<Compile
Include=
"SetLuckDraw.Designer.cs"
>
<DependentUpon>
SetLuckDraw.cs
</DependentUpon>
</Compile>
<Compile
Include=
"Main.cs"
>
<SubType>
Form
</SubType>
</Compile>
...
...
@@ -100,6 +108,9 @@
<EmbeddedResource
Include=
"SetInterval.resx"
>
<DependentUpon>
SetInterval.cs
</DependentUpon>
</EmbeddedResource>
<EmbeddedResource
Include=
"SetLuckDraw.resx"
>
<DependentUpon>
SetLuckDraw.cs
</DependentUpon>
</EmbeddedResource>
<None
Include=
"packages.config"
/>
<None
Include=
"Properties\Settings.settings"
>
<Generator>
SettingsSingleFileGenerator
</Generator>
...
...
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