细节优化

feat/task1-c-wallet
devil 2020-01-28 20:14:31 +08:00
parent 49035187ef
commit e166f3633b
3 changed files with 11 additions and 3 deletions

View File

@ -1019,6 +1019,9 @@ class BuyService
// 删除购物车
self::BuyCartDelete($params);
// 获取数据库订单信息
$order = Db::name('Order')->find($order_id);
// 订单添加成功钩子, 不校验返回值
$hook_name = 'plugins_service_buy_order_insert_success';
Hook::listen($hook_name, [
@ -1031,9 +1034,6 @@ class BuyService
'params' => $params,
]);
// 获取数据库订单信息
$order = Db::name('Order')->find($order_id);
// 返回信息
$result = [
'order' => $order,

View File

@ -1,5 +1,9 @@
{
"enablePullDownRefresh": true,
"navigationBarBackgroundColor": "#d2364c",
"backgroundColorTop": "#d2364c",
"backgroundColorBottom": "#f5f5f5",
"backgroundTextStyle": "light",
"usingComponents": {
"component-icon-nav": "/components/icon-nav/icon-nav",
"component-banner": "/components/slider/slider"

View File

@ -1,5 +1,9 @@
{
"enablePullDownRefresh": true,
"navigationBarBackgroundColor": "#d2364c",
"backgroundColorTop": "#d2364c",
"backgroundColorBottom": "#f5f5f5",
"backgroundTextStyle": "light",
"usingComponents": {
"component-badge": "/components/badge/badge"
}