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
062d9e35
Commit
062d9e35
authored
Jun 18, 2020
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
bea77fbc
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
563 additions
and
138 deletions
+563
-138
FinanceModule.cs
Mall.Module.Product/FinanceModule.cs
+5
-7
MiniProgramModule.cs
Mall.Module.User/MiniProgramModule.cs
+13
-105
RB_Goods_OrderAfterSaleRepository.cs
Mall.Repository/Product/RB_Goods_OrderAfterSaleRepository.cs
+29
-15
PublishController.cs
Mall.WebApi/Controllers/AppletWeChat/PublishController.cs
+1
-1
AppletUserController.cs
Mall.WebApi/Controllers/User/AppletUserController.cs
+5
-3
SupplierController.cs
Mall.WebApi/Controllers/User/SupplierController.cs
+4
-0
WindowsService.cs
Mall.WindowsService/WindowsService.cs
+1
-1
Mall.sln
Mall.sln
+1
-1
FreightRulesHelper.cs
Test/Helper/FreightRulesHelper.cs
+265
-0
MallHelper.cs
Test/Helper/MallHelper.cs
+4
-4
FreightRules.cs
Test/Model/FreightRules.cs
+172
-0
RB_Member_User.cs
Test/Model/RB_Member_User.cs
+62
-0
Program.cs
Test/Program.cs
+1
-1
No files found.
Mall.Module.Product/FinanceModule.cs
View file @
062d9e35
...
...
@@ -252,23 +252,21 @@ namespace Mall.Module.Finance
model
.
RecordDetailList
.
ForEach
(
x
=>
x
.
FinanceId
=
model
.
FinanceId
);
financeRecordDetailRepository
.
InsertBatch
(
model
.
RecordDetailList
,
trans
);
}
if
(
flag
)
//更新订单商品的财务单据
foreach
(
var
item
in
model
.
RecordDetailList
)
{
foreach
(
var
item
in
model
.
RecordDetailList
)
{
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Goods_OrderDetail
.
CostFinanceId
),
model
.
FinanceId
}
};
List
<
WhereHelper
>
whereHelpers
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
()
List
<
WhereHelper
>
whereHelpers
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
()
{
FiledName
=
nameof
(
RB_Finance_Configurine_Extend
.
Id
),
FiledValue
=
item
.
OrderDetailId
,
OperatorEnum
=
OperatorEnum
.
Equal
}
};
goods_OrderDetailRepository
.
Update
(
keyValues
,
whereHelpers
,
trans
);
}
goods_OrderDetailRepository
.
Update
(
keyValues
,
whereHelpers
,
trans
);
}
}
financeRecordRepository
.
DBSession
.
Commit
();
...
...
Mall.Module.User/MiniProgramModule.cs
View file @
062d9e35
...
...
@@ -984,96 +984,6 @@ namespace Mall.Module.User
return
subscriptionRepository
.
GetList
(
new
RB_Member_Subscription_Extend
()
{
OpenId
=
openId
,
Type
=
1
,
MallBaseId
=
MallBaseId
,
TenantId
=
TenantId
});
}
/// <summary>
/// 下单成功发送订阅消息
/// </summary>
/// <param name="TenantId"></param>
/// <param name="MallBaseId"></param>
/// <param name="OpenId"></param>
/// <param name="OrderNo">订单编号</param>
/// <param name="OrderCreate">下单时间</param>
/// <param name="OrderPay">支付金额</param>
/// <param name="GoodsName">商品</param>
/// <returns></returns>
public
bool
SendOrderSucceedMsg
(
int
TenantId
,
int
MallBaseId
,
string
OpenId
,
string
OrderNo
,
string
OrderCreate
,
string
OrderPay
,
string
GoodsName
)
{
var
appletWeChatModel
=
programRepository
.
GetListRepository
(
new
RB_MiniProgram_Extend
{
TenantId
=
TenantId
,
MallBaseId
=
MallBaseId
}).
FirstOrDefault
();
string
token
=
WeiXinReidsCache
.
Get
(
appletWeChatModel
.
MiniAppId
);
if
(
string
.
IsNullOrEmpty
(
token
))
{
token
=
Mall
.
Common
.
Pay
.
WeChatPat
.
TokenHelper
.
GetLXYToken
(
token
,
appletWeChatModel
.
MiniAppId
,
appletWeChatModel
.
MiniAppSecret
);
System
.
Threading
.
Tasks
.
Task
.
Run
(()
=>
WeiXinReidsCache
.
Set
(
appletWeChatModel
.
MiniAppId
,
token
));
}
if
(
string
.
IsNullOrEmpty
(
token
))
{
return
false
;
}
string
wenXinResult
=
string
.
Empty
;
if
(!
string
.
IsNullOrWhiteSpace
(
token
))
{
string
Url
=
"https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token="
+
token
;
var
postdata
=
new
{
touser
=
OpenId
,
template_id
=
appletWeChatModel
.
OrderSuccessTpl
,
page
=
"pages/index/index.html"
,
data
=
new
{
character_string6
=
new
{
value
=
OrderNo
},
date5
=
new
{
value
=
OrderCreate
},
amount3
=
new
{
value
=
OrderPay
},
thing1
=
new
{
value
=
GoodsName
}
},
miniprogram_state
=
"developer"
};
wenXinResult
=
HttpHelper
.
HttpPost
(
Url
,
JsonHelper
.
Serialize
(
postdata
),
""
);
JObject
jo
=
(
JObject
)
JsonConvert
.
DeserializeObject
(
wenXinResult
);
int
errcode
=
Convert
.
ToInt32
(
jo
[
"errcode"
].
ToString
());
if
(
errcode
==
0
)
{
//成功
//var list = subscriptionRepository.GetList(new RB_Member_Subscription_Extend() { OpenId = OpenId, Type = 1, TempleteId = appletWeChatModel.OrderSuccessTpl, MallBaseId = MallBaseId, TenantId = TenantId });
//if (list.Any())
//{
// // 减少订阅次数
// var model = list.FirstOrDefault();
// Dictionary<string, object> files = new Dictionary<string, object>() {
// { nameof(RB_Member_Subscription.Count),model.Count>0?( model.Count--):0 }
// };
// List<WhereHelper> wheres = new List<WhereHelper>() {
// new WhereHelper(){
// FiledName=nameof(RB_Member_Subscription.Id),
// FiledValue=model.Id,
// OperatorEnum=OperatorEnum.Equal
// }
// };
// subscriptionRepository.Update(files, wheres);
//}
return
true
;
}
else
{
LogHelper
.
Write
(
string
.
Format
(
"SendOrderSucceedMsg:wenXinResult:{0}"
,
wenXinResult
));
}
}
return
false
;
}
/// <summary>
/// 下单取消发送订阅消息
/// </summary>
...
...
@@ -1107,7 +1017,7 @@ namespace Mall.Module.User
{
touser
=
OpenId
,
template_id
=
appletWeChatModel
.
OrderCancelTpl
,
page
=
"index"
,
page
=
"
pages/order/index/
index"
,
data
=
new
{
character_string1
=
new
...
...
@@ -1120,7 +1030,7 @@ namespace Mall.Module.User
},
amount4
=
new
{
value
=
OrderMoney
value
=
"¥"
+
OrderMoney
},
name8
=
new
{
...
...
@@ -1198,7 +1108,7 @@ namespace Mall.Module.User
{
touser
=
OpenId
,
template_id
=
appletWeChatModel
.
OrderDeliverGoodsTpl
,
page
=
"index"
,
page
=
"
pages/order/index/
index"
,
data
=
new
{
thing8
=
new
...
...
@@ -1287,7 +1197,7 @@ namespace Mall.Module.User
{
touser
=
OpenId
,
template_id
=
appletWeChatModel
.
RefundTpl
,
page
=
"index"
,
page
=
"
pages/order/index/
index"
,
data
=
new
{
character_string4
=
new
...
...
@@ -1300,7 +1210,7 @@ namespace Mall.Module.User
},
amount2
=
new
{
value
=
OrderMoney
value
=
OrderMoney
+
"元"
},
thing1
=
new
{
...
...
@@ -1375,7 +1285,7 @@ namespace Mall.Module.User
{
touser
=
OpenId
,
template_id
=
appletWeChatModel
.
ActiveStateTpl
,
page
=
"index"
,
page
=
Mall
.
Common
.
Config
.
FirstPage
,
data
=
new
{
thing1
=
new
...
...
@@ -1459,7 +1369,7 @@ namespace Mall.Module.User
{
touser
=
OpenId
,
template_id
=
appletWeChatModel
.
AuditResultTpl
,
page
=
"index"
,
page
=
Mall
.
Common
.
Config
.
FirstPage
,
data
=
new
{
thing4
=
new
...
...
@@ -1522,7 +1432,7 @@ namespace Mall.Module.User
/// <param name="OpenId"></param>
/// <param name="Monry">提现金额</param>
/// <param name="ServiceCharge">手续费</param>
/// <param name="Type">
Type
</param>
/// <param name="Type">
打款方式
</param>
/// <param name="Remark">打款原因</param>
/// <returns></returns>
public
bool
SendWithdrawSucceedMsg
(
int
TenantId
,
int
MallBaseId
,
string
OpenId
,
string
Monry
,
string
ServiceCharge
,
string
Type
,
string
Remark
)
...
...
@@ -1547,16 +1457,16 @@ namespace Mall.Module.User
{
touser
=
OpenId
,
template_id
=
appletWeChatModel
.
ReflectSuccessTpl
,
page
=
"index"
,
page
=
Mall
.
Common
.
Config
.
FirstPage
,
data
=
new
{
amount1
=
new
{
value
=
Monry
value
=
"¥"
+
Monry
},
amount2
=
new
{
value
=
ServiceCharge
value
=
"¥"
+
ServiceCharge
},
thing3
=
new
{
...
...
@@ -1633,7 +1543,7 @@ namespace Mall.Module.User
{
touser
=
OpenId
,
template_id
=
appletWeChatModel
.
ReflectFailTpl
,
page
=
"index"
,
page
=
Mall
.
Common
.
Config
.
FirstPage
,
data
=
new
{
amount1
=
new
...
...
@@ -1711,7 +1621,7 @@ namespace Mall.Module.User
{
touser
=
OpenId
,
template_id
=
appletWeChatModel
.
MembersLevelChangeTpl
,
page
=
"index"
,
page
=
Mall
.
Common
.
Config
.
FirstPage
,
data
=
new
{
thing3
=
new
...
...
@@ -1757,8 +1667,6 @@ namespace Mall.Module.User
return
false
;
}
/// <summary>
/// 检查是否返回图片路径
/// </summary>
...
...
Mall.Repository/Product/RB_Goods_OrderAfterSaleRepository.cs
View file @
062d9e35
...
...
@@ -22,10 +22,12 @@ namespace Mall.Repository.Product
/// <param name="count"></param>
/// <param name="dmodel"></param>
/// <returns></returns>
public
List
<
RB_Goods_OrderAfterSale_Extend
>
GetERPPageList
(
int
pageIndex
,
int
pageSize
,
out
long
count
,
RB_Goods_OrderAfterSale_Extend
dmodel
)
{
public
List
<
RB_Goods_OrderAfterSale_Extend
>
GetERPPageList
(
int
pageIndex
,
int
pageSize
,
out
long
count
,
RB_Goods_OrderAfterSale_Extend
dmodel
)
{
string
where
=
$" where 1=1 and oas.
{
nameof
(
RB_Goods_OrderAfterSale
.
Status
)}
=0"
;
if
(
dmodel
.
TenantId
>
0
)
{
if
(
dmodel
.
TenantId
>
0
)
{
where
+=
$" and oas.
{
nameof
(
RB_Goods_OrderAfterSale
.
TenantId
)}
=
{
dmodel
.
TenantId
}
"
;
}
if
(
dmodel
.
MallBaseId
>
0
)
...
...
@@ -36,19 +38,24 @@ namespace Mall.Repository.Product
{
where
+=
$" and oas.
{
nameof
(
RB_Goods_OrderAfterSale
.
UserId
)}
=
{
dmodel
.
UserId
}
"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
UserName
))
{
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
UserName
))
{
where
+=
$" and mu.
{
nameof
(
RB_Member_User
.
Name
)}
like '%
{
dmodel
.
UserName
}
%'"
;
}
if
(
dmodel
.
OrderId
>
0
)
{
if
(
dmodel
.
OrderId
>
0
)
{
where
+=
$" and oas.
{
nameof
(
RB_Goods_OrderAfterSale
.
OrderId
)}
=
{
dmodel
.
OrderId
}
"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
ReOrderNo
))
{
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
ReOrderNo
))
{
where
+=
$" and oas.
{
nameof
(
RB_Goods_OrderAfterSale
.
ReOrderNo
)}
like '%
{
dmodel
.
ReOrderNo
}
%'"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
OrderNo
))
{
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
OrderNo
))
{
where
+=
$" and o.
{
nameof
(
RB_Goods_Order
.
OrderNo
)}
like '%
{
dmodel
.
OrderNo
}
%'"
;
}
if
(
dmodel
.
OrderSource
>
0
)
{
if
(
dmodel
.
OrderSource
>
0
)
{
where
+=
$" and o.
{
nameof
(
RB_Goods_Order
.
OrderSource
)}
=
{
dmodel
.
OrderSource
}
"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
Consignee
))
...
...
@@ -59,13 +66,16 @@ namespace Mall.Repository.Product
{
where
+=
$" and o.
{
nameof
(
RB_Goods_Order
.
Mobile
)}
like '%
{
dmodel
.
Mobile
}
%'"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
GoodsName
))
{
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
GoodsName
))
{
where
+=
$" and od.
{
nameof
(
RB_Goods_OrderDetail
.
GoodsName
)}
like '%
{
dmodel
.
GoodsName
}
%'"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
StartTime
))
{
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
StartTime
))
{
where
+=
$" and oas.
{
nameof
(
RB_Goods_OrderAfterSale
.
CreateDate
)}
>='
{
dmodel
.
StartTime
}
'"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
EndTime
))
{
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
EndTime
))
{
where
+=
$" and oas.
{
nameof
(
RB_Goods_OrderAfterSale
.
CreateDate
)}
<='
{
dmodel
.
EndTime
}
23:59:59'"
;
}
if
(
dmodel
.
SelectStatus
==
1
)
//待审核
...
...
@@ -76,7 +86,8 @@ namespace Mall.Repository.Product
{
where
+=
$" and oas.
{
nameof
(
RB_Goods_OrderAfterSale
.
ReOrderStatus
)}
=2"
;
}
else
if
(
dmodel
.
SelectStatus
==
3
)
{
//待卖家处理
else
if
(
dmodel
.
SelectStatus
==
3
)
{
//待卖家处理
where
+=
$" and oas.
{
nameof
(
RB_Goods_OrderAfterSale
.
ReOrderStatus
)}
in(3,4)"
;
}
else
if
(
dmodel
.
SelectStatus
==
4
)
//已完成
...
...
@@ -121,7 +132,8 @@ INNER JOIN rb_member_user mu on mu.Id=oas.UserId
{
where
+=
$" and oas.
{
nameof
(
RB_Goods_OrderAfterSale
.
OrderId
)}
=
{
dmodel
.
OrderId
}
"
;
}
if
(
dmodel
.
ReOrderStatus
>
0
)
{
if
(
dmodel
.
ReOrderStatus
.
HasValue
&&
dmodel
.
ReOrderStatus
>
0
)
{
where
+=
$" and oas.
{
nameof
(
RB_Goods_OrderAfterSale
.
ReOrderStatus
)}
=
{(
int
)
dmodel
.
ReOrderStatus
}
"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
ReOrderNo
))
...
...
@@ -139,7 +151,8 @@ INNER JOIN rb_member_user mu on mu.Id=oas.UserId
/// </summary>
/// <param name="dmodel"></param>
/// <returns></returns>
public
List
<
RB_Goods_OrderAfterSale_Extend
>
GetList
(
RB_Goods_OrderAfterSale_Extend
dmodel
)
{
public
List
<
RB_Goods_OrderAfterSale_Extend
>
GetList
(
RB_Goods_OrderAfterSale_Extend
dmodel
)
{
string
where
=
$" where 1=1 and oas.
{
nameof
(
RB_Goods_OrderAfterSale
.
Status
)}
=0"
;
if
(
dmodel
.
TenantId
>
0
)
...
...
@@ -162,7 +175,7 @@ INNER JOIN rb_member_user mu on mu.Id=oas.UserId
{
where
+=
$" and oas.
{
nameof
(
RB_Goods_OrderAfterSale
.
OrderDetialId
)}
=
{
dmodel
.
OrderDetialId
}
"
;
}
if
(
dmodel
.
Type
>
0
)
if
(
dmodel
.
Type
>
0
)
{
where
+=
$" and oas.
{
nameof
(
RB_Goods_OrderAfterSale
.
Type
)}
=
{
dmodel
.
Type
}
"
;
}
...
...
@@ -170,7 +183,8 @@ INNER JOIN rb_member_user mu on mu.Id=oas.UserId
{
where
+=
$" and oas.
{
nameof
(
RB_Goods_OrderAfterSale
.
ReOrderNo
)}
like '%
{
dmodel
.
ReOrderNo
}
%'"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
OrderDetailIds
))
{
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
OrderDetailIds
))
{
where
+=
$" and oas.
{
nameof
(
RB_Goods_OrderAfterSale
.
OrderDetialId
)}
in(
{
dmodel
.
OrderDetailIds
}
)"
;
}
...
...
Mall.WebApi/Controllers/AppletWeChat/PublishController.cs
View file @
062d9e35
...
...
@@ -240,7 +240,7 @@ namespace Mall.WebApi.Controllers.AppletWeChat
}
var
appletWeChatModel
=
appletWeChatModule
.
GetTenantListModule
(
new
RB_MiniProgram_Extend
{
TenantId
=
Convert
.
ToInt32
(
parmsInfo
.
uid
),
MallBaseId
=
parmsInfo
.
MallBaseId
}).
FirstOrDefault
();
string
OpenId
=
"ow_7I5XC1-RGwwk8QANBmWKYKmOc"
;
//GetHelpByWx(code, appletWeChatModel);
bool
flag
=
appletWeChatModule
.
SendOrder
SucceedMsg
(
Convert
.
ToInt32
(
parmsInfo
.
uid
),
parmsInfo
.
MallBaseId
,
OpenId
,
"SNO215445555"
,
"2020-05-12 14:01:12"
,
"¥500
"
,
"测试商品请勿购买"
);
bool
flag
=
appletWeChatModule
.
SendOrder
DeliverMsg
(
Convert
.
ToInt32
(
parmsInfo
.
uid
),
parmsInfo
.
MallBaseId
,
OpenId
,
"发货拉拉了"
,
"SNO215445555"
,
"中通
"
,
"测试商品请勿购买"
);
if
(
flag
)
{
return
ApiResult
.
Success
();
...
...
Mall.WebApi/Controllers/User/AppletUserController.cs
View file @
062d9e35
...
...
@@ -853,10 +853,12 @@ namespace Mall.WebApi.Controllers.User
return
ApiResult
.
Failed
(
"您已领取优惠券"
);
}
if
(
oldLogisticsModel
.
EndDate
.
Value
<
System
.
DateTime
.
Now
)
if
(
oldLogisticsModel
.
IndateType
==
Common
.
Enum
.
MarketingCenter
.
IndateTypeEnum
.
TimeHorizon
)
{
return
ApiResult
.
Failed
(
"优惠券时间已过期"
);
if
(
oldLogisticsModel
.
EndDate
.
Value
<
System
.
DateTime
.
Now
)
{
return
ApiResult
.
Failed
(
"优惠券时间已过期"
);
}
}
var
allMemberInfo
=
userModule
.
GetMemberUserInfo
(
userInfo
.
UserId
);
//判断优惠券是否有等级限制
...
...
Mall.WebApi/Controllers/User/SupplierController.cs
View file @
062d9e35
...
...
@@ -357,6 +357,10 @@ namespace Mall.WebApi.Controllers.User
return
ApiResult
.
Failed
(
"财务单据生成失败"
);
}
}
else
{
return
ApiResult
.
Failed
(
parmsJob
.
GetStringValue
(
"message"
));
}
}
return
ApiResult
.
Success
(
""
);
...
...
Mall.WindowsService/WindowsService.cs
View file @
062d9e35
...
...
@@ -27,7 +27,7 @@ namespace Mall.WindowsService
Helper
.
LogHelper
.
Write
(
"主服务开始运行......"
);
TimersHelper
helper
=
new
TimersHelper
();
timer1
=
new
System
.
Timers
.
Timer
();
timer1
.
Interval
=
1000
*
(
60
*
3
0
);
//60分钟
timer1
.
Interval
=
1000
*
(
60
*
6
0
);
//60分钟
timer1
.
Elapsed
+=
new
System
.
Timers
.
ElapsedEventHandler
(
helper
.
RevenueFinance
);
timer1
.
Enabled
=
true
;
...
...
Mall.sln
View file @
062d9e35
...
...
@@ -39,7 +39,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Mall.Module.MarketingCenter
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test", "Test\Test.csproj", "{E56AB52A-2396-4A34-82AE-344EBF51F248}"
EndProject
Project("{
FAE04EC0-301F-11D3-BF4B-00C04F79EFBC
}") = "Mall.WindowsService", "Mall.WindowsService\Mall.WindowsService.csproj", "{FC1D11B4-E016-485A-A5E3-906697362658}"
Project("{
9A19103F-16F7-4668-BE54-9A1E7A4F7556
}") = "Mall.WindowsService", "Mall.WindowsService\Mall.WindowsService.csproj", "{FC1D11B4-E016-485A-A5E3-906697362658}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
...
...
Test/Helper/FreightRulesHelper.cs
0 → 100644
View file @
062d9e35
This diff is collapsed.
Click to expand it.
Test/Helper/MallHelper.cs
View file @
062d9e35
...
...
@@ -23,9 +23,9 @@ namespace Test.Helper
/// </summary>
public
static
void
GetData
()
{
string
cookie
=
"_
_login_route=%2Fadmin%2Fpassport%2Flogin; __login_role=admin; HJ_SESSION_ID=7vk71fa0f18fbqh525spku825f; _csrf=a8195370a076c6ca402e1bcfe99202bab6fe6db797e12d3b3c962b8ab05858c6a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22LKtJyYWEFsOkis_aatuA-fbrGZvhC3fp
%22%3B%7D"
;
string
cookie
=
"_
identity=c964edefdd891bb281844324071fea4e2c1e7d2b21aef031ed81730f4e753d06a%3A2%3A%7Bi%3A0%3Bs%3A9%3A%22_identity%22%3Bi%3A1%3Bs%3A48%3A%22%5B19740%2C%22Cktp5k6Wf3lVS_yjQI_uTgEEE6_ANe-5%22%2C86400%5D%22%3B%7D; HJ_SESSION_ID=tnajne35hev8qdajddg9pkg2cu; _csrf=df6aaa8c5fdb2364e3cd74f8e1a6e3036d4553a3e2ad7df9e5934907a5beabd8a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22URmzdlSexWftTrS829hdWnMLSiKhY0gP
%22%3B%7D"
;
// GetGategoryImgList(cookie);
GetDestination
List
(
cookie
);
GetDestination
Model
(
cookie
);
}
public
static
void
GetPage
(
string
cookie
)
...
...
@@ -279,7 +279,7 @@ namespace Test.Helper
/// <summary>
/// 获取
分类
/// 获取
省市区
/// </summary>
/// <param name="cookie"></param>
static
void
GetDestinationList
(
string
cookie
)
...
...
@@ -414,7 +414,7 @@ namespace Test.Helper
/// <summary>
/// 获取
商品分类
/// 获取
省市区
/// </summary>
/// <param name="cookie"></param>
/// <returns></returns>
...
...
Test/Model/FreightRules.cs
0 → 100644
View file @
062d9e35
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
Test.Model
{
public
class
FreightRules
{
//http://wx.weibaoge.cn/web/index.php?r=mall%2Fpostage-rule%2Findex&page=1&keyword= 列表接口
//http://wx.weibaoge.cn/web/index.php?r=mall%2Fpostage-rule%2Fedit&id=209 详情接口
public
int
id
{
get
;
set
;
}
public
string
name
{
get
;
set
;
}
/// <summary>
/// 默认0-否,1-是
/// </summary>
public
int
status
{
get
;
set
;
}
/// <summary>
/// 计费方式 2-件 1-重量
/// </summary>
public
int
type
{
get
;
set
;
}
public
string
updated_at
{
get
;
set
;
}
public
string
created_at
{
get
;
set
;
}
public
List
<
FreightPrice
>
detail
{
get
;
set
;
}
}
public
class
FreightPrice
{
public
int
first
{
get
;
set
;
}
public
decimal
firstPrice
{
get
;
set
;
}
public
int
second
{
get
;
set
;
}
public
decimal
secondPrice
{
get
;
set
;
}
public
List
<
FreightArea
>
list
{
get
;
set
;
}
}
public
class
FreightArea
{
public
int
id
{
get
;
set
;
}
public
string
name
{
get
;
set
;
}
}
/// <summary>
/// 提现
/// </summary>
public
class
Remit
{
//http://wx.weibaoge.cn/web/index.php?r=mall%2Fshare%2Fcash-data&status=-1&page=1 接口请求地址
public
int
id
{
get
;
set
;
}
public
string
order_no
{
get
;
set
;
}
public
string
pay_type
{
get
;
set
;
}
/// <summary>
/// 提现方式,auto-自动打款,wechat-微信线下转账
/// </summary>
public
string
type
{
get
;
set
;
}
/// <summary>
/// 提现状态0-未审核,1-待打款,2-已打款,3-驳回
/// </summary>
public
int
status
{
get
;
set
;
}
public
string
status_text
{
get
;
set
;
}
public
UserInfo
user
{
get
;
set
;
}
public
CashInfo
cash
{
get
;
set
;
}
public
ExtraInfo
extra
{
get
;
set
;
}
public
TimeInfo
time
{
get
;
set
;
}
public
ContentInfo
content
{
get
;
set
;
}
}
public
class
UserInfo
{
/// <summary>
/// 头像
/// </summary>
public
string
avatar
{
get
;
set
;
}
/// <summary>
/// 昵称
/// </summary>
public
string
nickname
{
get
;
set
;
}
/// <summary>
/// 平台
/// </summary>
public
string
platform
{
get
;
set
;
}
}
public
class
CashInfo
{
public
string
price
{
get
;
set
;
}
/// <summary>
/// 手续费
/// </summary>
public
string
service_charge
{
get
;
set
;
}
public
string
actual_price
{
get
;
set
;
}
}
public
class
ExtraInfo
{
/// <summary>
/// 微信昵称
/// </summary>
public
string
name
{
get
;
set
;
}
/// <summary>
/// 微信号
/// </summary>
public
string
mobile
{
get
;
set
;
}
public
string
bank_name
{
get
;
set
;
}
}
public
class
TimeInfo
{
/// <summary>
/// 申请时间
/// </summary>
public
string
created_at
{
get
;
set
;
}
/// <summary>
/// 审核时间
/// </summary>
public
string
apply_at
{
get
;
set
;
}
/// <summary>
/// 打款时间
/// </summary>
public
string
remittance_at
{
get
;
set
;
}
/// <summary>
/// 驳回时间
/// </summary>
public
string
reject_at
{
get
;
set
;
}
}
public
class
ContentInfo
{
/// <summary>
/// 审核备注
/// </summary>
public
string
apply_content
{
get
;
set
;
}
/// <summary>
/// 打款备注
/// </summary>
public
string
remittance_content
{
get
;
set
;
}
public
string
remittance_at
{
get
;
set
;
}
/// <summary>
/// 驳回备注
/// </summary>
public
string
reject_content
{
get
;
set
;
}
}
}
Test/Model/RB_Member_User.cs
0 → 100644
View file @
062d9e35
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
Test.Model
{
public
class
RB_Member_User
{
/// <summary>
/// Id
/// </summary>
public
int
Id
{
get
;
set
;
}
/// <summary>
/// 用户名称
/// </summary>
public
string
Name
{
get
;
set
;
}
/// <summary>
/// 别名
/// </summary>
public
string
AliasName
{
get
;
set
;
}
/// <summary>
/// 头像
/// </summary>
public
string
Photo
{
get
;
set
;
}
/// <summary>
/// 唯一识别码
/// </summary>
public
string
OpenId
{
get
;
set
;
}
/// <summary>
/// 手机号码
/// </summary>
public
string
Moblie
{
get
;
set
;
}
}
}
Test/Program.cs
View file @
062d9e35
...
...
@@ -11,7 +11,7 @@ namespace Test
static
void
Main
(
string
[]
args
)
{
Console
.
WriteLine
(
"Start......"
);
Helper
.
Mall
Helper
.
GetData
();
Helper
.
FreightRules
Helper
.
GetData
();
Console
.
WriteLine
(
"End......"
);
Console
.
ReadLine
();
}
...
...
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