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
ecea990c
Commit
ecea990c
authored
Sep 11, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
短信通知
parent
7185f65a
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
32 additions
and
6 deletions
+32
-6
RB_Goods_Order.cs
Mall.Model/Entity/Product/RB_Goods_Order.cs
+4
-0
OrderModule.cs
Mall.Module.Product/OrderModule.cs
+2
-2
Config.cs
Mall.ThirdCore/Commom/Config.cs
+1
-1
MessageCore.cs
Mall.ThirdCore/Message/MessageCore.cs
+1
-1
AppletGuideCarController.cs
Mall.WebApi/Controllers/Product/AppletGuideCarController.cs
+16
-0
AppletOrderController.cs
Mall.WebApi/Controllers/Product/AppletOrderController.cs
+2
-1
appsettings.json
Mall.WebApi/appsettings.json
+6
-1
No files found.
Mall.Model/Entity/Product/RB_Goods_Order.cs
View file @
ecea990c
...
...
@@ -312,5 +312,9 @@ namespace Mall.Model.Entity.Product
/// 订单分类 0正常订单 1司导订单
/// </summary>
public
int
OrderClassify
{
get
;
set
;
}
/// <summary>
/// 目的地(司导订单)
/// </summary>
public
string
DestinationAddress
{
get
;
set
;
}
}
}
Mall.Module.Product/OrderModule.cs
View file @
ecea990c
...
...
@@ -6057,7 +6057,7 @@ namespace Mall.Module.Product
demodel
.
OrderNo
,
Name
=
demodel
.
Consignee
,
demodel
.
Mobile
,
TripDate
=
item
.
TripSTime
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm"
)
+
" "
+
(
item
.
UseDay
??
0
)
+
"天
"
,
TripDate
=
item
.
TripSTime
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm"
)
+
" "
+
(
(
item
.
UseDay
??
0
)
==
Convert
.
ToDecimal
(
0.5
)
?
"半"
:
Convert
.
ToInt32
(
item
.
UseDay
??
0
).
ToString
())
+
"日
"
,
Address
=
demodel
.
ShoppingAddress
,
item
.
Number
};
...
...
@@ -10779,7 +10779,7 @@ namespace Mall.Module.Product
orderModel
.
OrderNo
,
Name
=
orderModel
.
Consignee
,
orderModel
.
Mobile
,
TripDate
=
item
.
TripSTime
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm"
)
+
" "
+
(
item
.
UseDay
??
0
)
+
"天
"
,
TripDate
=
item
.
TripSTime
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm"
)
+
" "
+
(
(
item
.
UseDay
??
0
)
==
Convert
.
ToDecimal
(
0.5
)
?
"半"
:
Convert
.
ToInt32
(
item
.
UseDay
??
0
).
ToString
())
+
"日
"
,
Address
=
orderModel
.
ShoppingAddress
,
item
.
Number
};
...
...
Mall.ThirdCore/Commom/Config.cs
View file @
ecea990c
...
...
@@ -74,7 +74,7 @@ namespace Mall.ThirdCore.Commom
{
try
{
string
path
=
Path
.
Combine
(
AppDomain
.
CurrentDomain
.
BaseDirectory
,
"
ConfigValue
.json"
);
string
path
=
Path
.
Combine
(
AppDomain
.
CurrentDomain
.
BaseDirectory
,
"
appsettings
.json"
);
//读取json文件
using
(
StreamReader
sr
=
new
StreamReader
(
path
))
...
...
Mall.ThirdCore/Message/MessageCore.cs
View file @
ecea990c
...
...
@@ -66,7 +66,7 @@ namespace Mall.ThirdCore.Message
IAcsClient
acsClient
=
new
DefaultAcsClient
(
profile
);
//必填:待发送手机号。支持以逗号分隔的形式进行批量调用,批量上限为1000个手机号码,批量调用相对于单条调用及时性稍有延迟,验证码类型的短信推荐使用单条调用的方式
request
.
PhoneNumbers
=
obj
[
"phoneNumber"
].
ToString
();
request
.
SignName
=
aliSms
[
"signName"
].
ToString
();
request
.
SignName
=
"印象之旅"
;
//
aliSms["signName"].ToString();
//必填:短信模板-可在短信控制台中找到
request
.
TemplateCode
=
obj
[
"templateCode"
].
ToString
();
//可选:模板中的变量替换JSON串,如模板内容为"您的验证码为${code}"时,此处的值为
...
...
Mall.WebApi/Controllers/Product/AppletGuideCarController.cs
View file @
ecea990c
...
...
@@ -304,6 +304,22 @@ namespace Mall.WebApi.Controllers.Product
return
ApiResult
.
Success
(
""
,
Robj
);
}
/// <summary>
/// 获取提前预约天数
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
GetGuideCarInfoForPagePath
(
object
requestMsg
)
{
var
req
=
JsonConvert
.
DeserializeObject
<
RequestParm
>(
requestMsg
.
ToString
());
var
model
=
guideCarModule
.
GetGuideCarInfo
(
req
.
TenantId
,
req
.
MallBaseId
);
return
ApiResult
.
Success
(
""
,
new
{
model
.
PagePath
});
}
/// <summary>
/// 获取车辆分类下拉
...
...
Mall.WebApi/Controllers/Product/AppletOrderController.cs
View file @
ecea990c
...
...
@@ -534,7 +534,7 @@ namespace Mall.WebApi.Controllers.MallBase
}
if
(
string
.
IsNullOrEmpty
(
demodel
.
ShoppingAddress
))
{
return
ApiResult
.
ParamIsNull
(
"接送地址
地址
不能为空"
);
return
ApiResult
.
ParamIsNull
(
"接送地址不能为空"
);
}
if
(!
demodel
.
TripSTime
.
HasValue
)
{
...
...
@@ -584,6 +584,7 @@ namespace Mall.WebApi.Controllers.MallBase
demodel
.
UserId
=
userInfo
.
UserId
;
demodel
.
SmallShopsId
=
req
.
SmallShopsId
;
demodel
.
OrderClassify
=
1
;
demodel
.
DestinationAddress
??=
""
;
#
endregion
return
orderModule
.
SetAppletSDGoodsOrderInfo
(
demodel
);
...
...
Mall.WebApi/appsettings.json
View file @
ecea990c
...
...
@@ -16,6 +16,11 @@
"Microsoft.Hosting.Lifetime"
:
"Information"
}
},
"AliSms"
:
{
"signName"
:
"印象之旅"
,
"accessKeyId"
:
"LTAIwE7l9dImZSa3"
,
"accessKeySecret"
:
"j47Ajn0d0WzUCIX8Biyj3P2r8QDltI"
},
"JwtSecretKey"
:
"@VIITTOREBORN*2018"
,
"JwtExpirTime"
:
2592000
,
"ApiExpirTime"
:
2592000
,
...
...
@@ -56,7 +61,7 @@
"Port"
:
5672
,
"UserName"
:
"guest"
,
"Password"
:
"viitto2019"
},
},
"RedisSetting"
:
{
"RedisServer"
:
"47.96.23.199"
,
"RedisPort"
:
"6379"
,
...
...
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