Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
T
ticket_half_auto
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李佳
ticket_half_auto
Commits
dcbe0719
Commit
dcbe0719
authored
Jul 26, 2021
by
李佳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
比分玩法胜平负其它选项乱码问题
parent
78f09699
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
4 deletions
+19
-4
CaptureDataInfo.cs
ChuPiao.AutoPrint.Machine/Models/CaptureDataInfo.cs
+5
-4
MacLotPlayModeJzBfService.cs
...e/TjJingCaiV1/MacLotPlayMode/MacLotPlayModeJzBfService.cs
+14
-0
ChuPiao_Linux.suo
ChuPiao_Linux.suo
+0
-0
No files found.
ChuPiao.AutoPrint.Machine/Models/CaptureDataInfo.cs
View file @
dcbe0719
...
...
@@ -23,11 +23,12 @@ namespace ChuPiao.AutoPrint.Machine.Models
//湖北元字有乱码
_captureDataString
=
_captureDataString
.
Replace
(
@"灶\?@\?"
,
"元"
).
Replace
(
"灶?@?"
,
"元"
);
//广西“其它”有乱码 (3:3)@60.00元+(平祁?@渌?@175.0元+(2:4)@60 (负祁?渌?)@50.00元 (平祁?@渌?)@
Regex
re
=
new
Regex
(
@"祁.*?渌.*?@"
);
_captureDataString
=
re
.
Replace
(
_captureDataString
,
"其它)@"
);
//放到比分玩法里面去替换了
////广西“其它”有乱码 (3:3)@60.00元+(平祁?@渌?@175.0元+(2:4)@60 (负祁?渌?)@50.00元 (平祁?@渌?)@
//Regex re = new Regex(@"祁.*?渌.*?@");
//_captureDataString = re.Replace(_captureDataString, "其它)@");
//_captureDataString = _captureDataString.Replace(@"
祁?@渌?", "其它)").Replace(@"祁?渌?", "其它");
//_captureDataString = _captureDataString.Replace(@"
祟?@?", "它"); //(平其祟?@?)@150.0元
}
private
byte
[]
_captureDataBytes
;
...
...
ChuPiao.AutoPrint.Machine/TjJingCaiV1/MacLotPlayMode/MacLotPlayModeJzBfService.cs
View file @
dcbe0719
...
...
@@ -246,6 +246,20 @@ namespace ChuPiao.AutoPrint.Machine.TjJingCaiV1.MacLotPlayMode
/// <returns></returns>
private
string
DealRateCode
(
string
Istr
)
{
//(平祁?@渌?@175.0元
//(负祁?渌?)@50.00元
//(平祁?@渌?)@50.00元
//(平其祟?@?)@150.0元
Regex
re
=
new
Regex
(
@"[胜平负](\D{1,})@\d{1,}.\d{1,}元"
);
MatchCollection
mc
=
re
.
Matches
(
Istr
);
foreach
(
Match
ma
in
mc
)
{
if
(
ma
.
Groups
[
1
].
Value
!=
"其它)"
)
{
Istr
=
Istr
.
Replace
(
ma
.
Groups
[
1
].
Value
,
"其它)"
);
}
}
Istr
=
Regex
.
Replace
(
Istr
,
@"[^():胜平负其它元@.+\d]{1}"
,
""
);
string
tmpstr
=
""
;
...
...
ChuPiao_Linux.suo
View file @
dcbe0719
No preview for this file type
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