Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Property
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
liudong1993
Property
Commits
d0a250c8
Commit
d0a250c8
authored
Apr 13, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
dffc7dba
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
2 deletions
+25
-2
PropertyModule.cs
Property.Modele.FixedAssets/PropertyModule.cs
+21
-1
LoginController.cs
Property.WebApi/Controllers/Login/LoginController.cs
+3
-0
Startup.cs
Property.WebApi/Startup.cs
+1
-1
No files found.
Property.Modele.FixedAssets/PropertyModule.cs
View file @
d0a250c8
...
...
@@ -648,6 +648,26 @@ namespace Property.Module.FixedAssets
demodel
.
Images
=
JsonConvert
.
SerializeObject
(
imgList
);
var
dmodel
=
property_InfoRepository
.
GetEntity
(
demodel
.
Id
);
if
(
string
.
IsNullOrEmpty
(
dmodel
.
QRCode
))
{
#
region
生成二维码
string
QRPath
=
DateTime
.
Now
.
Ticks
.
ToString
()
+
".png"
;
string
basepath
=
AppContext
.
BaseDirectory
;
string
path_server
=
basepath
+
"\\upfile\\code\\"
+
QRPath
;
string
ImageAddress
=
"/upfile/code/"
+
QRPath
;
string
logoPath
=
basepath
+
"\\ExportFile\\Branch\\Logo.png"
;
try
{
QRCodeHelper
.
Create_CodeImages
(
"PropertyCheck|Id="
+
demodel
.
Id
,
3
,
logoPath
,
path_server
,
System
.
Drawing
.
Imaging
.
ImageFormat
.
Png
);
}
catch
(
Exception
ex
)
{
LogHelper
.
Write
(
ex
,
"QRCodeHelper.Create_CodeImages"
);
ImageAddress
=
""
;
}
#
endregion
dmodel
.
QRCode
=
ImageAddress
;
}
dmodel
.
BrandName
=
demodel
.
BrandName
;
dmodel
.
BuyDate
=
demodel
.
BuyDate
;
dmodel
.
BuyType
=
demodel
.
BuyType
;
...
...
@@ -723,7 +743,7 @@ namespace Property.Module.FixedAssets
string
logoPath
=
basepath
+
"\\ExportFile\\Branch\\Logo.png"
;
try
{
QRCodeHelper
.
Create_CodeImages
(
"
vt:193213/3213/4123?
Id="
+
PropertyId
,
3
,
logoPath
,
path_server
,
System
.
Drawing
.
Imaging
.
ImageFormat
.
Png
);
QRCodeHelper
.
Create_CodeImages
(
"
PropertyCheck|
Id="
+
PropertyId
,
3
,
logoPath
,
path_server
,
System
.
Drawing
.
Imaging
.
ImageFormat
.
Png
);
}
catch
(
Exception
ex
)
{
...
...
Property.WebApi/Controllers/Login/LoginController.cs
View file @
d0a250c8
...
...
@@ -57,6 +57,9 @@ namespace Property.WebApi.Controllers.Login
{
Domain
=
Domain
.
Replace
(
"zc"
,
""
);
//资产管理专用
}
if
(
Domain
.
Contains
(
"test"
))
{
Domain
=
Domain
.
Replace
(
"test"
,
""
);
//资产管理测试专用
}
var
gmodel
=
loginModule
.
GetGroupByDomain
(
new
RB_Group_Extend
{
Domain
=
Domain
}).
FirstOrDefault
();
if
(
gmodel
==
null
)
{
...
...
Property.WebApi/Startup.cs
View file @
d0a250c8
...
...
@@ -49,7 +49,7 @@ namespace Property.WebApi
options
.
JsonSerializerOptions
.
PropertyNamingPolicy
=
null
;
});
services
.
AddCors
(
options
=>
options
.
AddPolicy
(
"AllowCors"
,
policy
=>
policy
.
AllowAnyHeader
().
AllowAnyMethod
().
AllowCredentials
().
WithOrigins
(
new
[]
{
"http://www.test.com:8080"
,
"http://www.test.com:8081"
,
"http://www.test.com:8082"
,
"http://zcyx.oytour.com"
,
"http://yx.oytour.com"
})));
services
.
AddCors
(
options
=>
options
.
AddPolicy
(
"AllowCors"
,
policy
=>
policy
.
AllowAnyHeader
().
AllowAnyMethod
().
AllowCredentials
().
WithOrigins
(
new
[]
{
"http://www.test.com:8080"
,
"http://www.test.com:8081"
,
"http://www.test.com:8082"
,
"http://
testzcyx.oytour.com:8080"
,
"http://testzcyx.oytour.com:8081"
,
"http://
zcyx.oytour.com"
,
"http://yx.oytour.com"
})));
//services.AddCors(options =>
//{
// options.AddPolicy("AllowCors",
...
...
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