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
a7c185f0
Commit
a7c185f0
authored
Dec 13, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
11
parents
d15c1d00
ddfdc1bc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
128 additions
and
15 deletions
+128
-15
BuildingCarrierModule_V2.cs
Mall.Module.TradePavilion/BuildingCarrierModule_V2.cs
+11
-9
CarrierModule.cs
Mall.Module.TradePavilion/CarrierModule.cs
+9
-4
WeChatNotifyController.cs
...WebApi/Controllers/AppletWeChat/WeChatNotifyController.cs
+103
-0
AppletTradeController.cs
...WebApi/Controllers/TradePavilion/AppletTradeController.cs
+5
-2
No files found.
Mall.Module.TradePavilion/BuildingCarrierModule_V2.cs
View file @
a7c185f0
...
...
@@ -238,8 +238,9 @@ namespace Mall.Module.TradePavilion
else
{
#
region
新增品牌
var
inserBModel
=
BrandM
odel
.
RefMapperTo
<
RB_Brand_Enterprise_Extend
>();
var
inserBModel
=
m
odel
.
RefMapperTo
<
RB_Brand_Enterprise_Extend
>();
inserBModel
.
ID
=
0
;
inserBModel
.
CategoryId
=
model
.
BrandClassId
;
inserBModel
.
UserId
=
cmodel
.
CreateBy
;
brand_EnterpriseRepository
.
Insert
(
inserBModel
);
#
endregion
...
...
@@ -359,7 +360,7 @@ namespace Mall.Module.TradePavilion
else
{
#
region
新增品牌
var
inserBModel
=
BrandM
odel
.
RefMapperTo
<
RB_EnterpriseServices
>();
var
inserBModel
=
m
odel
.
RefMapperTo
<
RB_EnterpriseServices
>();
inserBModel
.
ServiceId
=
0
;
inserBModel
.
UserId
=
cmodel
.
CreateBy
;
enterpriseServicesRepository
.
Insert
(
inserBModel
);
...
...
@@ -491,7 +492,7 @@ namespace Mall.Module.TradePavilion
else
{
#
region
新增楼宇
var
inserBModel
=
BrandM
odel
.
RefMapperTo
<
RB_Building_Extend
>();
var
inserBModel
=
m
odel
.
RefMapperTo
<
RB_Building_Extend
>();
inserBModel
.
BuildId
=
0
;
inserBModel
.
UserId
=
cmodel
.
CreateBy
;
buildingRepository
.
Insert
(
inserBModel
);
...
...
@@ -681,17 +682,17 @@ namespace Mall.Module.TradePavilion
{
#
region
新增载体
var
inserCModel
=
CarrierM
odel
.
RefMapperTo
<
RB_Building_Carrier_Extend
>();
var
inserCModel
=
m
odel
.
RefMapperTo
<
RB_Building_Carrier_Extend
>();
inserCModel
.
ID
=
0
;
inserCModel
.
UserId
=
cmodel
.
CreateBy
;
if
(
CarrierM
odel
.
OpenTime
.
HasValue
)
if
(
m
odel
.
OpenTime
.
HasValue
)
{
if
(
CarrierM
odel
.
OpenTime
.
Value
<=
System
.
DateTime
.
Now
)
if
(
m
odel
.
OpenTime
.
Value
<=
System
.
DateTime
.
Now
)
{
inserCModel
.
OpeningStatus
=
1
;
}
}
if
(!
string
.
IsNullOrWhiteSpace
(
CarrierM
odel
.
StartingInfo
))
if
(!
string
.
IsNullOrWhiteSpace
(
m
odel
.
StartingInfo
))
{
inserCModel
.
FirstStoreTest
=
1
;
}
...
...
@@ -704,8 +705,8 @@ namespace Mall.Module.TradePavilion
x
.
ID
=
0
;
x
.
CarrierId
=
Id
;
x
.
Status
=
0
;
x
.
TenantId
=
CarrierM
odel
.
TenantId
;
x
.
MallBaseId
=
CarrierM
odel
.
MallBaseId
;
x
.
TenantId
=
m
odel
.
TenantId
;
x
.
MallBaseId
=
m
odel
.
MallBaseId
;
});
carrierEnterpriseMetroApplyForRepository
.
InsertBatch
(
mlist
);
}
...
...
@@ -1389,6 +1390,7 @@ namespace Mall.Module.TradePavilion
#
region
新增品牌
var
inserBModel
=
BrandModel
.
RefMapperTo
<
RB_Brand_Enterprise_Extend
>();
inserBModel
.
ID
=
0
;
inserBModel
.
CategoryId
=
BrandModel
.
BrandClassId
;
inserBModel
.
UserId
=
cmodel
.
CreateBy
;
brand_EnterpriseRepository
.
Insert
(
inserBModel
,
trans
);
#
endregion
...
...
Mall.Module.TradePavilion/CarrierModule.cs
View file @
a7c185f0
...
...
@@ -1076,7 +1076,7 @@ namespace Mall.Module.TradePavilion
List
<
object
>
resultList
=
new
List
<
object
>();
var
rootList
=
Common
.
Plugin
.
EnumHelper
.
EnumToList
(
typeof
(
BrandCategoryEnum
));
List
<
RB_BrandClass_Extend
>
categoryList
=
GetBrandClassListModule
(
new
RB_BrandClass_Extend
()
{
TenantId
=
query
.
TenantId
,
MallBaseId
=
query
.
MallBaseId
});
if
(
rootList
!=
null
&&
rootList
.
Count
>
0
)
{
foreach
(
var
firstItem
in
rootList
)
...
...
@@ -1332,7 +1332,7 @@ namespace Mall.Module.TradePavilion
#
endregion
...
...
@@ -1421,7 +1421,7 @@ namespace Mall.Module.TradePavilion
fukuanList
.
Add
(
new
YBConfigItem
()
{
Name
=
"半年付"
});
List
<
YBConfigItem
>
zichanList
=
new
List
<
YBConfigItem
>();
zichanList
.
Add
(
new
YBConfigItem
()
{
Name
=
"国有资产"
});
zichanList
.
Add
(
new
YBConfigItem
()
{
Name
=
"国有资产"
});
zichanList
.
Add
(
new
YBConfigItem
()
{
Name
=
"私企"
});
zichanList
.
Add
(
new
YBConfigItem
()
{
Name
=
"个人"
});
zichanList
.
Add
(
new
YBConfigItem
()
{
Name
=
"其它"
});
...
...
@@ -1436,12 +1436,17 @@ namespace Mall.Module.TradePavilion
wuyeList
.
Add
(
new
YBConfigItem
()
{
Name
=
"排烟量"
});
wuyeList
.
Add
(
new
YBConfigItem
()
{
Name
=
"空调"
});
wuyeList
.
Add
(
new
YBConfigItem
()
{
Name
=
"新风"
});
List
<
Model
.
Entity
.
TradePavilion
.
RB_Building_Carrier
>
MallBaselList
=
new
List
<
Model
.
Entity
.
TradePavilion
.
RB_Building_Carrier
>();
MallBaselList
.
Add
(
new
Model
.
Entity
.
TradePavilion
.
RB_Building_Carrier
{
MallBaseId
=
0
,
TenantId
=
0
,
CarrierName
=
"全部"
});
MallBaselList
.
Add
(
new
Model
.
Entity
.
TradePavilion
.
RB_Building_Carrier
{
MallBaseId
=
8
,
TenantId
=
18
,
CarrierName
=
"成都"
});
MallBaselList
.
Add
(
new
Model
.
Entity
.
TradePavilion
.
RB_Building_Carrier
{
MallBaseId
=
20
,
TenantId
=
30
,
CarrierName
=
"宜宾"
});
object
obj
=
new
{
zhuangXiuList
,
fukuanList
,
zichanList
,
wuyeList
wuyeList
,
mallBaselList
=
MallBaselList
.
Select
(
x
=>
new
{
x
.
TenantId
,
x
.
MallBaseId
,
Name
=
x
.
CarrierName
}),
};
return
obj
;
}
...
...
Mall.WebApi/Controllers/AppletWeChat/WeChatNotifyController.cs
View file @
a7c185f0
using
System
;
using
System.Collections.Generic
;
using
System.IO
;
using
System.Linq
;
using
System.Threading.Tasks
;
using
System.Web
;
using
Google.Protobuf.WellKnownTypes
;
using
Mall.Common
;
using
Mall.Common.API
;
using
Mall.Common.Pay.WeChatPat
;
using
Mall.Common.Plugin
;
...
...
@@ -525,5 +527,106 @@ namespace Mall.WebApi.Controllers.AppletWeChat
// return ApiResult.Failed("", reqXmlFAIL);
}
}
/// <summary>
///
/// </summary>
/// <returns></returns>
[
HttpPost
]
[
HttpGet
]
public
void
EventMessageCall
(
string
signature
,
string
echostr
,
string
timestamp
,
string
nonce
)
{
try
{
var
requestMsg
=
Request
.
HttpContext
.
Items
[
GlobalKey
.
UserPostInfo
];
var
req
=
new
RequestHandler
();
LogHelper
.
WriteInfo
(
"_accessor:"
+
_accessor
);
LogHelper
.
WriteInfo
(
"requestMsg:"
+
JsonHelper
.
Serialize
(
requestMsg
));
var
res
=
new
ResponseHandler
(
_accessor
);
#
region
先注释
// string timestamp = "";
// string nonce = "";
// string echostr = "";
// string signature = "";
string
encrypt_type
=
""
;
string
msg_signature
=
""
;
string
openid
=
""
;
//try
//{
// signature = res.GetParameter("signature");
//}
//catch (Exception ex)
//{
// signature = "";
// LogHelper.WriteInfo("signature" + JsonHelper.Serialize(ex));
//}
//try
//{
// timestamp = res.GetParameter("timestamp");
//}
//catch (Exception ex)
//{
// LogHelper.WriteInfo("timestamp" + JsonHelper.Serialize(ex));
// timestamp = "";
//}
//try
//{
// nonce = res.GetParameter("nonce");
//}
//catch (Exception ex)
//{
// nonce = "";
// LogHelper.WriteInfo("nonce" + JsonHelper.Serialize(ex));
//}
//try
//{
// encrypt_type = res.GetParameter("encrypt_type");
//}
//catch (Exception ex)
//{
// encrypt_type = "";
// LogHelper.WriteInfo("encrypt_type" + JsonHelper.Serialize(ex));
//}
//try
//{
// msg_signature = res.GetParameter("msg_signature");
//}
//catch (Exception ex)
//{
// msg_signature = "";
// LogHelper.WriteInfo("msg_signature" + JsonHelper.Serialize(ex));
//}
//try
//{
// openid = res.GetParameter("openid");
//}
//catch (Exception ex)
//{
// openid = "";
// LogHelper.WriteInfo("openid" + JsonHelper.Serialize(ex));
//}
#
endregion
//var str = new StreamReader(System.Web.HttpContext.Current.Request.InputStream);
//string postStr = str.ReadToEnd();
//lock (_lock)
//{
// WechatMessageHelper.WXOpera(postStr, timestamp, nonce, signature, encrypt_type, msg_signature, openid);
//}
}
catch
(
Exception
ex
)
{
LogHelper
.
Write
(
ex
.
ToString
());
var
response
=
HttpContext
.
Response
;
response
.
WriteAsync
(
"echostr is null"
);
// response.Flush();
//response.BodyWriter("");
}
}
}
}
\ No newline at end of file
Mall.WebApi/Controllers/TradePavilion/AppletTradeController.cs
View file @
a7c185f0
...
...
@@ -1873,7 +1873,7 @@ namespace Mall.WebApi.Controllers.TradePavilion
extModel
.
Address
,
extModel
.
LatAndLon
,
extModel
.
Developers
,
OpenTime
=
extModel
.
OpenTime
.
HasValue
?
extModel
.
OpenTime
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm"
)
:
""
,
OpenTime
=
extModel
.
OpenTime
.
HasValue
?
extModel
.
OpenTime
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm"
)
:
""
,
extModel
.
ProjectType
,
ProjectTypeName
=
extModel
.
ProjectType
.
GetEnumName
(),
extModel
.
CarrierSize
,
...
...
@@ -3554,7 +3554,7 @@ namespace Mall.WebApi.Controllers.TradePavilion
}
if
(
query
.
PropertyDemandList
!=
null
&&
query
.
PropertyDemandList
.
Any
())
{
query
.
PropertyDemand
=
string
.
Join
(
","
,
query
.
PropertyDemandList
.
Select
(
x
=>
x
));
query
.
PropertyDemand
=
JsonConvert
.
SerializeObject
(
query
.
PropertyDemandList
);
//
string.Join(",", query.PropertyDemandList.Select(x => x));
}
else
{
...
...
@@ -4276,5 +4276,8 @@ namespace Mall.WebApi.Controllers.TradePavilion
var
list
=
carrierModule
.
GetYBConfigModule
();
return
ApiResult
.
Success
(
data
:
list
);
}
}
}
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